Abstract
Solving Math Word Problems (MWPs) requires a sophisticated mapping of natural language to structured mathematical expressions. Traditional approaches often rely on a single reasoning perspective—either top-down decomposition or bottom-up construction—which can struggle with complex logic or equivalent mathematical variations. This paper introduces a Multi-View Reasoning framework that aligns these dual cognitive processes through Consistent Contrastive Learning (CCL). By enforcing multi-granularity alignment between top-down and bottom-up paths and utilizing Knowledge-Enhanced Augmentation (KE-Aug), the proposed model achieves state-of-the-art performance across major benchmarks, demonstrating a robust understanding of mathematical laws and improved stability on complex problems.
Introduction
Math Word Problem (MWP) solving is a cornerstone of artificial intelligence research in reasoning and natural language understanding. The task involves translating a narrative problem description into a solvable equation. Current state-of-the-art solvers typically adopt one of two paradigms: Sequence-to-Tree (top-down) models that decompose a global goal into sub-goals, or Relation Extraction (bottom-up) models that build expressions from local numerical relationships.
However, single-view models face significant hurdles. Top-down models often lose track of local constraints, while bottom-up models may fail to capture the overarching objective. Furthermore, the inherent diversity of mathematical expressions—where the same logic can be represented by multiple equivalent equations (e.g., $a \times (b+c)$ vs. $ab + ac$)—often confuses models that treat equation generation as a simple translation task. This paper proposes a framework that mimics human cognitive duality by integrating both reasoning directions into a unified, consistent latent space.
Methodology
Multi-View Reasoning Framework
The core of the proposed approach is the simultaneous modeling of two independent but complementary reasoning processes:
- Top-down Reasoning (Pre-order): This view follows a pre-order traversal of the equation tree. It starts with the global operator and recursively decomposes the problem into sub-expressions (e.g., $-, \times, +, 2, 3, 4, 5$).
- Bottom-up Reasoning (Post-order): This view follows a post-order traversal, constructing the solution from individual quantities toward the final global expression (e.g., $2, 3, +, 4, \times, 5, -$).
Consistent Contrastive Learning (CCL)
To bridge these two views, the authors implement Consistent Contrastive Learning (CCL). Rather than simply training two separate models, CCL forces the intermediate representations of sub-expressions from both paths to align within a shared latent space. This multi-granularity alignment ensures that the semantic meaning of a specific calculation (like "2 + 3") is represented consistently, regardless of whether the model arrived at it via decomposition or construction. This alignment makes the internal representations significantly more robust and logically grounded.
Knowledge-Enhanced Augmentation (KE-Aug)
To address the challenge of mathematical diversity, the framework employs Knowledge-Enhanced Augmentation (KE-Aug). By applying fundamental mathematical laws—such as the commutative, associative, and distributive laws—the system generates equivalent variations of training equations. This teaches the model that different structural sequences can represent identical underlying logic, moving the model away from template memorization toward true logical reasoning.
Experimental Results
Performance on Benchmarks
The model was evaluated on three primary datasets: Math23K (Chinese), MathQA (English, GRE-level), and MAWPS (English, arithmetic).
- Math23K: The model achieved 87.1% accuracy, a +1.7% improvement over previous state-of-the-art methods.
- MathQA: The model reached 80.6% accuracy, outperforming baselines by +2.0%.
Complexity and Stability
A key finding of the research is the model's performance on high-complexity problems. Standard single-view models often experience a sharp decline in accuracy as the number of operators increases. In contrast, the multi-view approach maintains high performance even on problems requiring 8 or 9 operators, outperforming baselines by nearly 28% on the most difficult subsets of the MathQA dataset. This suggests that the dual-view alignment is particularly effective at maintaining logical coherence in multi-step reasoning.
Discussion and Insights
Implicit Law Learning
Qualitative analysis indicates that the combination of CCL and KE-Aug allows the model to "understand" mathematical properties implicitly. The model frequently generates correct, mathematically valid equations that differ from the ground-truth labels provided in the training set, demonstrating a capacity for flexible reasoning rather than rigid pattern matching.
Limitations
Despite its success, the framework has two notable limitations:
- Inference Efficiency: Currently, the bottom-up predictor is discarded during inference to save computational costs, with only the top-down path used for generation. Integrating both views during the test phase could potentially yield even higher accuracy but would require more complex decoding strategies.
- Controllability: While the model can generate diverse equivalent equations, there is no mechanism to specify a preferred format (e.g., requesting a factored form over an expanded one).
Conclusion
The Multi-View Reasoning framework represents a significant step forward in MWP solving by aligning top-down and bottom-up logic. By enforcing consistency through contrastive learning, the model achieves superior accuracy and a deeper grasp of mathematical principles. Future research will explore the application of this consistent reasoning logic to other domains, such as automated code generation and formal logic proofs.
Summary updated