MACM: Utilizing a Multi-Agent System for Condition Mining in Solving Complex Mathematical Problems
Bin Lei, Yi Zhang, Shan Zuo, Ali Payani, Caiwen Ding
TL;DR
This paper addresses the challenge of guiding large language models to perform complex, multi-step mathematical reasoning. It introduces MACM, a generalizable prompting framework that abstracts problems into Conditions and an Objective, and employs a three-agent loop—Thinker, Judge, Executor—to iteratively mine new conditions and compute solutions without problem-specific prompts. Across MATH Level-5 problems, the 24-point game, and sequence sorting, MACM yields substantial accuracy gains and improved error correction compared to CoT, SC-CoT, ToT, and GoT, demonstrating strong generalizability. While the approach increases inference time due to multiple LLM invocations and shows geometry-specific limitations, it provides a scalable blueprint for enhancing mathematical reasoning in LLMs and offers avenues for dataset-driven refinement of model cognition.
Abstract
Recent advancements in large language models, such as GPT-4, have demonstrated remarkable capabilities in processing standard queries. Despite these advancements, their performance substantially declines in \textbf{advanced mathematical problems requiring complex, multi-step logical reasoning}. To enhance their inferential capabilities, current research has delved into \textit{prompting engineering}, exemplified by methodologies such as the Tree of Thought and Graph of Thought. Nonetheless, these existing approaches encounter two significant limitations. Firstly, their effectiveness in tackling complex mathematical problems is somewhat constrained. Secondly, the necessity to design distinct prompts for individual problems hampers their generalizability. In response to these limitations, this paper introduces the \textit{Multi-Agent System for conditional Mining} (\textbf{MACM}) prompting method. It not only resolves intricate mathematical problems but also demonstrates strong generalization capabilities across various mathematical contexts. With the assistance of MACM, the accuracy of GPT-4 Turbo on the most challenging level five mathematical problems in the MATH dataset increase from $\mathbf{54.68\%} \text{ to } \mathbf{76.73\%}$. The code is available in \url{https://github.com/bin123apple/MACM}.
