While Large Language Models (LLMs) like GPT-3.5 and ChatGPT excel at many natural language tasks, they remain notoriously fragile when tackling multi-step, computation-intensive math problems. A single calculation or logic error in the first step of a complex derivation often leads to a completely wrong answer—a phenomenon known as error accumulation.
Current research faces two major hurdles in addressing this:
- The Evaluation Gap: Most math benchmarks (like GSM8K or MATH) only evaluate the final answer. Without intermediate step annotations, it is difficult to systematically diagnose exactly where a model's logic failed.
- The Tool Gap: While "tool-augmented" methods exist, they typically use external tools in a single pass. If the model generates a flawed plan, the tool simply executes a wrong instruction, returning a technically correct calculation for an incorrect logical step.
To address these gaps, researchers have introduced CARP, a new dataset featuring detailed intermediate reasoning annotations, and DELI, an iterative framework that allows LLMs to "deliberate" by checking their work against external math tools.
The CARP Dataset
To better evaluate intermediate reasoning, the authors created CARP (Computation-intensive AlgebRa Problems), a Chinese dataset comprising 4,886 algebra problems.
Unlike previous datasets that only provide a final answer or a flat text solution, CARP introduces Expression Flow Graphs (EFGs). These directed acyclic graphs represent intermediate math expressions as nodes and the derivation steps (e.g., substitution, factoring) as edges.
By structuring solutions as EFGs, researchers can pinpoint the exact step where a logic or calculation error occurs, enabling a much more granular evaluation of an LLM's reasoning capabilities.
The DELI Framework
To conquer the challenges highlighted by CARP, the researchers developed DELI (DELIberation with tool Interfaces). DELI is an iterative approach that mimics how a human might double-check a complex math derivation, treating external tools as collaborative verifiers rather than mere calculators.
The framework operates in three main stages:
- Retrieval-Augmented Initialization: Instead of solving from scratch, the model retrieves similar problems and their solutions to generate a high-quality initial draft.
- Deliberation with Tool Manipulation: The model translates its natural language steps into specific API calls for math interfaces (using the SymPy library), handling tasks like
expand(),factor(), andsolve_eq(). - Deliberation with Chain-of-Thought (CoT): The model takes the tool's output and translates it back into natural language, checking for logical consistency.
The model repeats this cycle—bouncing between tool execution and logical reasoning—until the solution converges (stops changing) or hits a maximum number of iterations. Convergence serves as a strong signal: if natural language reasoning and tool-based calculations align over multiple iterations, the final answer is significantly more likely to be correct.
Key Findings and Results
The study evaluated DELI across seven computation-intensive datasets, including CARP, subsets of the MATH dataset, and AGIEval.
- The "First Step" Hurdle: Granular EFG evaluation revealed that LLMs are highly prone to early failure. In CARP, over 69% of incorrect solutions stemmed from an error in the very first reasoning step.
- Superior Accuracy: DELI achieved 73.46% accuracy on the CARP dataset. This is a massive improvement over standard Chain-of-Thought prompting (49.39%) and outperforms the popular ReAct framework (64.11%).
- Consistent Generalization: Across all seven datasets, DELI consistently outperformed competitive baselines. Furthermore, when used as a refinement layer for other prompting methods (like Retrieval CoT), DELI reliably boosted their overall performance.
Limitations and Future Work
While DELI represents a significant step forward, the authors note a few limitations. The CARP dataset focuses primarily on middle-school-level algebra; higher-level mathematics (like college calculus) involves abstract concepts that current tool interfaces and LLMs still struggle to formalize. Additionally, because DELI is an iterative framework, it requires multiple API calls to the LLM, increasing computational cost and inference time compared to single-pass methods. Future work will explore how more advanced models, like GPT-4, behave within this iterative deliberation structure.
Summary updated