Abstract
Current AI models excel at solving math word problems (MWPs) they’ve seen before, but they often crumble when familiar concepts are combined in novel ways. This paper introduces new benchmarks to measure this "compositional gap" and proposes an iterative data augmentation strategy that teaches models the underlying logic of problem composition, leading to performance gains of up to 15.6%.
The Compositional Gap in Math Word Problems
In the world of Math Word Problems (MWPs), models are typically trained and tested on data that looks very similar (I.I.D. settings). However, true intelligence requires compositional generalization: the ability to take known components (like "adding quantities" or "calculating ratios") and apply them to a brand-new, complex structure the model hasn't encountered during training.
As shown in Figure 1, a model might know how to solve "Total apples + peaches" and "Ratio of price A to price B." But if it's asked for the "Ratio of (total apples + peaches) to notebooks," it might fail because it hasn't seen that specific combination of templates. The authors argue that current MWP solvers rely too much on memorizing text templates rather than learning the structural "rules of composition."
Methodology: Measuring and Mitigating the Gap
The authors tackle this from two angles: measurement and mitigation.
1. Measuring the Gap (DBCA Splitting)
They adapted a method called Distribution-Based Compositional Assessment (DBCA). They treat problem components as "atoms" (using TF-IDF and k-means clustering to define the context of numbers) and their combinations as "compounds." By maximizing the difference in compound distributions between training and test sets, they created a "stress test" for compositional logic.
2. Isolating Effects (Synthetic Data)
They manually defined 13 rules to decompose complex problems into simpler ones or reformulate them, creating a synthetic dataset (SD) where the compositional challenges are perfectly controlled.
3. Iterative Data Augmentation
They proposed an automated way to "fill the gap" using two main operations:
- Operation 1: Swaps question sentences between problems that share similar environments.
- Operation 2: Replaces specific entities (e.g., "peaches" with "notebooks") across different problem types.
To ensure quality, a Data Ranker (a well-trained MWP solver) scores the newly generated problems. Only high-confidence, logical problems are added back into the training pool for the next iteration.
Structural vs. Lexical Generalization
A key finding of the research is the importance of model architecture. The authors found that tree-structured decoders (like the GTS model) are significantly more robust than standard sequence-to-sequence models (like LSTMs or Transformers).
As illustrated in Figure 2, tree structures provide a better "inductive bias" by naturally representing the hierarchical nature of math equations. The research distinguishes between:
- Lexical Generalization: Applying a known formula to new objects (e.g., "notebooks" instead of "apples").
- Structural Generalization: Handling new mathematical structures (e.g., a new nesting of parentheses). Models find structural generalization significantly harder.
Key Results and Performance
The results highlight a sobering reality for current AI:
- Performance Collapse: On the Synthetic Dataset (SD), standard models that scored 90%+ on validation sets plummeted to as low as 6.6% on the compositional test set.
- Augmentation Victory: The proposed Data Augmentation (DA) provided massive boosts. For the GTS model on the SD test set, accuracy jumped from 7.9% to 23.5% (a 15.6 point increase).
- Consistency: The DA method improved performance across the board, even on the more "natural" ComDiv splits of Math23K and MAWPS.
Limitations and Future Outlook
While the iterative augmentation shows promise, it comes with computational overhead as the dataset grows each round. Additionally, while the Data Ranker filters many examples, some augmented problems may still lack semantic "common sense." Even with a 15% improvement, a score of 23.5% on the SD test set shows we are still far from "solving" compositional generalization. Future work should explore even more advanced inductive biases in neural architectures to bridge this remaining gap.
Summary updated