Introduction
Solving Math Word Problems (MWPs) is a cornerstone challenge in Natural Language Processing, requiring both linguistic comprehension and multi-step symbolic reasoning. Traditionally, training MWP solvers relies on full supervision, where human annotators provide the exact mathematical expression for every problem. However, this approach is limited by high annotation costs and a lack of solution diversity, as datasets typically provide only one "correct" equation.
To address these issues, researchers have introduced Learning by Fixing (LBF), a framework that trains models using only the final numerical answer as a label (weak supervision). Unlike Reinforcement Learning (RL) methods that often struggle with sparse rewards in complex search spaces, LBF utilizes abductive reasoning to "fix" incorrect internal equations, discovering diverse and valid solution paths.
The Learning-by-Fixing Framework
The LBF framework enables a model to learn from its own mistakes by transforming incorrect guesses into useful training signals. It consists of three primary components:
- The Fixing Mechanism: When the model generates an incorrect solution tree, it doesn't simply receive a negative reward. Instead, it performs a top-down search to identify the minimal change (e.g., swapping an operator or a leaf node) that would yield the correct final answer. This "fixed" tree serves as a pseudo-label.
- Tree Regularization: To manage the vast search space of potential equations, the authors apply a size constraint. By correlating the number of quantities in the problem text with the expected complexity of the equation, the model prunes irrelevant branches and explores more efficiently.
- Memory Buffer: All valid "fixes" discovered during training are stored in a memory buffer. The model is then trained to maximize the likelihood of all solutions in the buffer, rather than converging on a single human-provided path.
Experimental Results
The model was evaluated on the Math23K dataset, a benchmark of over 23,000 Chinese math word problems. For these experiments, the ground-truth equations were discarded, leaving only the final numerical answers for training.
Performance and Diversity
LBF significantly outperformed existing weakly-supervised baselines. Using the GTS (Goal-driven Tree-structured) backbone, LBF achieved an accuracy of 59.4%, compared to just 15.8% for standard REINFORCE and 20.8% for MAPO. Notably, LBF's performance approached that of fully supervised models, demonstrating the power of abductive reasoning over simple trial-and-error.
One of the most significant advantages of LBF is its ability to discover multiple valid ways to solve the same problem. As shown in Figure 1, a single problem can be solved by either calculating the total time first or by summing the distances of individual journey segments.
Key Insights
- Abductive Reasoning: By asking "what small change makes this right?", LBF provides a much denser feedback loop than binary RL rewards.
- Search Efficiency: Tree regularization effectively bounds the search space, preventing the model from getting lost in "nonsense" equations.
- Robustness: The memory buffer allows the model to maintain high Top-3 and Top-5 accuracies, proving it learns a broader mathematical understanding rather than rote memorization.
Limitations and Future Work
While highly effective, LBF occasionally encounters "spurious solutions"—mathematically incorrect logic that happens to produce the correct answer by coincidence (occurring in approximately 0.5% of cases). Additionally, the memory buffer can become cluttered with commutative variations (e.g., A + B vs B + A). Future research aims to incorporate stronger semantic grounding to ensure that generated solution trees are not only mathematically accurate but also logically aligned with the problem's narrative.
Summary updated