Introduction
Current Artificial Intelligence models designed to solve Math Word Problems (MWPs) often rely on shallow statistical shortcuts rather than genuine mathematical reasoning. This "cheating" behavior is driven by biases in existing datasets and training methodologies. This paper introduces UnbiasedMWP, a benchmark designed to enforce semantic understanding of questions, and Dynamic Target Selection (DTS), a training strategy that accommodates mathematically equivalent expressions to reduce rigid learning biases.
The Problem: Data and Learning Bias
The authors identify two primary forms of bias that hinder the development of robust MWP solvers:
- Data Bias: Models frequently ignore the specific question asked, relying instead on the numerical context. In many standard datasets, a solver can predict the correct equation with high accuracy (e.g., 69.4%) using only the numbers provided in the narrative, without even processing the question.
- Learning Bias: Traditional training paradigms enforce a single "ground truth" equation string. If a model generates a mathematically identical but syntactically different equation (such as $N1 \times N0$ instead of $N0 \times N1$), it is often penalized by automated evaluation systems. This encourages models to memorize labeling patterns rather than learning the underlying logic of operations like commutativity.
Proposed Methodology
To address these biases, the researchers proposed a two-pronged approach:
Dataset Rewriting and Augmentation
The team developed a pipeline to generate multiple question variations for a single problem narrative. For instance, given a context about packets of noodles and candy, they manually annotated several distinct questions (e.g., "How many candies are there?" vs. "How many more candies than noodles?"). This variety forces the model to integrate the question's semantics with the numerical context to arrive at the correct solution.
Dynamic Target Selection (DTS)
To mitigate learning bias, the authors introduced an Equivalent Expression Tree. During the training phase, the system generates all mathematically equivalent versions of the target equation based on rules like the commutative law. The system then dynamically selects the version that most closely matches the model’s current output (using a longest prefix match) to calculate the loss. This approach prevents the model from being unfairly penalized for valid alternative reasoning paths.
Datasets
The study utilizes three primary datasets:
- Math23K & MAWPS: Standard benchmarks used as baselines.
- UnbiasedMWP: The new benchmark consisting of 2,907 crawled examples expanded into 10,264 problem-question pairs through manual annotation. It is categorized into UnbiasedMWP-Source (initial samples) and UnbiasedMWP-All (the full augmented set).
Key Results
The effectiveness of the UnbiasedMWP benchmark is most evident in the "Question-less" test. On the new UnbiasedMWP-All dataset, the accuracy of the "Bert2Tree" model plummets from 78.1% to 22.5% when the question is removed. In contrast, on the older Math23K dataset, the accuracy only drops from 83.3% to 69.4%, indicating that the older dataset allows for significant shortcut learning.
Furthermore, models trained with the DTS strategy showed consistent performance gains, improving by 1.0% on Math23K and 2.5% on UnbiasedMWP-Source. Solvers trained on the augmented "All" dataset also demonstrated significantly higher robustness when tested on problem variations.
Conclusion and Future Work
The UnbiasedMWP benchmark reveals that many current MWP solvers are "clever Hans" models that exploit dataset artifacts. While the manual effort required for such high-quality annotation is significant, it is necessary for pushing the field toward true mathematical reasoning. Future work may involve extending DTS to handle more complex algebraic equivalencies, such as distributive laws or multi-step rearrangements.
Summary updated