Expression Syntax Information Bottleneck for Math Word Problems

Jing Xiong, Chengming Li, Min Yang, Xiping Hu, Bin Hu

Abstract

Math Word Problem (MWP) solvers often rely on shallow linguistic patterns rather than mathematical logic, leading to poor performance on adversarial examples. This paper proposes Expression Syntax Information Bottleneck (ESIB), a framework leveraging the Information Bottleneck principle and mutual learning to discard syntax-irrelevant text features. ESIB forces models to focus on core mathematical syntax, resulting in state-of-the-art accuracy and significantly improved robustness against "trick" questions and adversarial phrasing.

Introduction

Solving a Math Word Problem (MWP) requires translating natural language into a structured mathematical expression. However, deep learning models are prone to exploiting "spurious correlations"—memorizing specific phrases associated with certain operations rather than understanding the underlying logic. For instance, a model might always multiply when it sees "traveling from A to B," failing when a similar problem requires division. This paper introduces ESIB (Expression Syntax Information Bottleneck) to address this by stripping away redundant text features and forcing the model to prioritize mathematical syntax.

Methodology

The ESIB framework is built on three core pillars designed to filter out linguistic noise:

  1. Encoder-Compressor-Decoder with VIB: Using RoBERTa as an encoder, the system passes representations through a Variational Information Bottleneck (VIB) module. This module acts as a filter, finding a compressed representation ($z$) that retains predictive power for the math expression ($y$) while discarding as much irrelevant information from the input text ($x$) as possible.
  2. Mutual Learning Strategy: To identify redundant information more effectively, ESIB employs a dual-network strategy involving a Source Network (SN) and a Collaborator Network (CN). By encouraging consistency between these networks, the system learns to ignore model-specific noise and focus on the consistent mathematical logic.
  3. Self-Distillation for Diversity: Recognizing that multiple valid expressions can solve the same problem (e.g., $150 \times (1 + 2.5)$ vs. $150 + 150 \times 2.5$), a self-distillation loss is implemented. This encourages the decoder to rely on latent syntax, facilitating the generation of diverse but mathematically equivalent solutions.
The ESIB architecture featuring the dual-network mutual learning strategy and the Information Bottleneck compressor.

Experimental Setup

The model was evaluated on four major MWP benchmarks: Math23K, Ape210K, MAWPS, and CM17K. To test robustness, the authors utilized adversarial benchmarks specifically designed to break models relying on surface-level patterns: SVAMP, ASDiv-A, and MathQA-R. These datasets involve rephrasing questions, swapping numbers, and altering sentence structures.

Results and Discussion

ESIB demonstrates a significant leap in both accuracy and robustness. On standard datasets like Math23K and Ape210K, ESIB (CN) achieved state-of-the-art results with 85.9% and 76.8% accuracy, respectively.

The most striking results appear in adversarial testing. On the SVAMP dataset, ESIB reached 43.2% accuracy, a substantial improvement over the previous best baseline (NS-Solver at 34.5%) and simpler models like DNS (18.5%). ESIB also showed the smallest performance degradation when transitioning from standard to adversarial datasets, indicating a stronger reliance on logic than linguistic "fluff."

Performance comparison on standard and adversarial benchmarks, highlighting ESIB's superior robustness.

Key Insights

  • "Less is More": While most research seeks to add features, ESIB suggests that the key to reasoning is knowing what to ignore.
  • Information Bottleneck as Robustness: Limiting the "bandwidth" of representations forces the model to prioritize predictive math syntax over linguistic noise.
  • Collaborative Filtering: Mutual learning between two networks effectively filters out idiosyncratic shortcuts that a single model might adopt.

Conclusion

While ESIB offers significant improvements, it introduces a training overhead of approximately 1.8x due to the dual-network architecture. Future work may explore non-Gaussian latent space assumptions and extending this information-theoretic approach to more complex domains like geometry or multi-step reasoning. Overall, ESIB provides a robust path forward for creating MWP solvers that truly understand mathematical logic.

Summary updated

BibTeX
@inproceedings{xiong2022expression,
  author = {Jing Xiong and Chengming Li and Min Yang and Xiping Hu and Bin Hu},
  title = {{Expression Syntax Information Bottleneck for Math Word Problems}},
  booktitle = {International ACM SIGIR Conference on Research and Development in Information Retrieval},
  year = {2022},
}
Figure