Introduction
Math Word Problem (MWP) solving is a critical task in natural language processing that requires both linguistic understanding and mathematical reasoning. Traditional state-of-the-art solvers typically employ Sequence-to-Sequence (Seq2Seq) architectures trained to map a problem description to a single "correct" equation. However, this one-to-one mapping approach suffers from two significant limitations: it fails to account for the inherent diversity of mathematical solutions and often falls into the "spurious solution trap."
The Spurious Solution Challenge
In many cases, multiple valid equations can lead to the same correct answer. Conversely, in weakly supervised settings where only the final answer is provided, models may generate "spurious solutions"—equations that yield the correct numerical result through flawed logic. For instance, if a problem's answer is 15, a model might suggest 25 - 10 = 15 simply because those numbers appear in the text, even if the operation is nonsensical in context.
As shown in Figure 3, while alternative solutions maintain logical consistency with the problem description, spurious solutions rely on coincidental numerical matches. Distinguishing between these is vital for building robust solvers.
Proposed Framework: The D-Solver
To address these issues, this research introduces an iterative training framework designed to encourage solution diversity while filtering out illogical shortcuts. The architecture consists of three core components:
- Weak Data Augmentation (WDA): A symbolic search process that identifies potential equations leading to the correct answer for problems lacking ground-truth labels.
- Solution Buffer: A dynamic repository that stores multiple valid equations for each problem, expanding as the model explores new mathematical paths during training.
- Solution Discriminator: A quality-control module that uses contrastive learning to score equations based on their semantic fit with the problem description. This module acts as a "teacher," prioritizing logically sound paths over spurious ones.
The framework operates in an iterative loop (Figure 1): the solver is trained on weighted equations from the buffer, generates new candidates via beam search, and the discriminator updates the qualification scores for the next round.
Experimental Evaluation
The framework was evaluated on two datasets: D-Math23k, a diversity-focused version of the standard Math23k benchmark, and Weak12k, a new dataset of 12,117 Chinese MWPs annotated only with final answers.
Key Results
- Superior Accuracy: The proposed
D-MWP-BERTmodel achieved 73.3% accuracy on D-Math23k, significantly outperforming the standard MWP-BERT (69.2%). - Weak Supervision Performance: On the Weak12k dataset, the method reached 35.0% accuracy, surpassing previous state-of-the-art methods like "Learning by Fixing" (29.5%).
- Enhanced Diversity: The model demonstrated a marked improvement in Top-5 accuracy (55.9% vs. 29.0% for baselines), confirming its ability to generate multiple distinct, correct solution paths.
Conclusion
By treating solution diversity as a form of regularization, the D-solver framework enables models to learn robust mathematical logic rather than symbol memorization. While the computational cost of symbolic search and the current focus on arithmetic present areas for future work, the integration of a solution discriminator effectively mitigates the risks of weak supervision and improves overall generalization in MWP solvers.
Summary updated