Introduction
Automatically solving Math Word Problems (MWPs) requires models to translate natural language narratives into mathematical equations. While deep learning has significantly improved performance in this domain, current solvers remain notoriously brittle. They often fail when faced with minor local variances, such as changing an entity name or swapping the known and unknown variables. This paper identifies two specific weaknesses: semantic sensitivity and logical blindness. To address these, the authors propose two novel semantic-based data augmentation techniques: knowledge-guided entity replacement and logic-guided problem reorganization.
Methodology
The core of the proposed approach is the generation of "challenging samples"—pairs of questions that are textually similar but logically distinct, or vice versa.
Knowledge-Guided Entity Replacement
To combat semantic sensitivity, the authors use WordNet to identify "concepts" and replace entities with others from the same category. For example, "pears" might be replaced with "bananas," or "Ming Zhang" with "Hong Li." By restricting replacements to physical entities and avoiding abstract concepts like "time," the method ensures that the problem's underlying logic remains intact while diversifying the lexical context.
Logic-Guided Problem Reorganization
This technique addresses logical blindness by teaching models the relationships between quantities. It transforms a problem by turning a known quantity into the unknown ($x$) and providing the original answer as a known value.
To ensure the generated labels are mathematically consistent, the authors utilize Equation Tree Normalization. When the unknown variable is moved, the equation tree is recursively restructured using mathematical properties (such as operator inversion) to isolate $x$ on one side of the equation.
Experimental Evaluation
The researchers evaluated their methods using the Math23k dataset (23,161 Chinese MWPs) and a newly created "hard-mode" test set, $D^*_{test}$. This new set contains 380 manually labeled samples with low lexical overlap with the training data and a high density of challenging samples.
Results and Discussion
The augmentation strategies led to dramatic performance improvements across multiple architectures, including vanilla seq2seq, GTS, and Graph2Tree models.
- Challenging Test Set ($D^*_{test}$): All three models saw accuracy increases of over 20%. For instance, the Graph2Tree model's accuracy rose from 30.3% to 52.4%, with its performance on specific "challenging" subsets jumping from 11.4% to 40.9%.
- Standard Test Set ($D_{test}$): Even on standard benchmarks, the vanilla seq2seq model's accuracy improved from 66.1% to 71.2%.
- Ablation Insights: Logic-guided reorganization was found to be more effective than simple entity replacement, as it forces the model to learn the structural logic of the math rather than relying on keyword memorization. Furthermore, the proposed methods outperformed standard "Back Translation," which often introduced noise that broke mathematical consistency.
Conclusion
This work demonstrates that semantic-based data augmentation can significantly enhance the robustness of MWP solvers. By focusing on logical structure and controlled entity replacement, models can better generalize to unseen variations. However, the remaining performance gap on challenging test sets indicates that handling discrete local variances remains a significant challenge for future research.
Summary updated