Abstract
Large Language Models (LLMs) typically solve numerical reasoning problems by generating Intermediate Meaning Representations (IMRs) such as code or mathematical expressions. While programs are currently the standard, they impose strict ordering constraints that often conflict with the natural flow of word problems. This paper argues that equations serve as a superior IMR due to their semantic alignment with natural language. We introduce BRIDGE (Boosting Numerical Reasoning by Decomposing the Generation of Equations), a four-stage framework that leverages equation-based reasoning to achieve state-of-the-art results on benchmarks like GSM8K and SVAMP.
Introduction: The Semantic Gap in Numerical Reasoning
When an LLM tackles a math word problem, it generates an Intermediate Meaning Representation (IMR)—a bridge between the natural language question and the final numerical answer. Currently, the dominant IMR is a program (e.g., Python code). However, programs are inherently sequential: a variable must be defined before it can be utilized in a calculation.
In contrast, natural language often describes relationships between quantities out of order. For instance, a problem might state "Alice has twice as much as Bob" before providing Bob's value. This creates a "semantic gap" where the model must mentally reorder the problem to fit a coding structure. The authors propose that equations are a superior IMR because they allow for non-sequential relationships, making them semantically closer to human problem-solving.
The BRIDGE Framework
To overcome the "coding bias" inherent in LLMs trained on vast repositories of software, the researchers developed BRIDGE (Boosting Numerical Reasoning by Decomposing the Generation of Equations). This framework utilizes a four-stage pipeline to guide the model toward algebraic reasoning:
- Erase: The model removes the final question (e.g., "How much candy does Alice have?"). This disrupts the standard "question-answer" pattern learned during pre-training, forcing the model to focus on the underlying logical constraints.
- Decompose: The problem is broken into simpler sub-questions, ensuring no intermediate information is overlooked.
- Translate: Each sub-question is mapped to a specific equation. Unlike programs, these equations can use variables that have not yet been solved.
- Answer: The resulting system of equations is solved using
sympy, a symbolic mathematics library.
Theoretically, the authors demonstrate that if programs are a subset of equations, then equations should inherently offer higher generation accuracy by reducing the "reasoning hops" required to map language to logic.
Experimental Evaluation
The BRIDGE framework was evaluated against three major benchmarks: GSM8K (grade school math), SVAMP (structural variations), and a specialized Algebra dataset.
Key Results
BRIDGE consistently outperformed state-of-the-art (SOTA) program-based methods such as Program-of-Thought (PoT) and PAL. On GSM8K, BRIDGE achieved a 2.2% improvement over previous SOTA. When combined with self-consistency—a technique where the model generates multiple paths and selects the majority answer—performance on GSM8K rose to 83.6%, a significant +6.4% jump. Improvements were also noted on SVAMP (+0.9%) and Algebra (+1.7%).
Discussion and Conclusion
The success of BRIDGE highlights two critical insights. First, the preference for programs in current LLMs is likely a result of pre-training bias rather than inherent architectural superiority for math. Second, the semantic alignment of equations allows models to mirror the sentence structure of a problem, reducing cognitive load. While the "Translate" stage remains a potential bottleneck, the shift toward equation-based IMRs represents a promising direction for more robust numerical reasoning in large language models.
Summary updated