mlsanityData to 7 Oct 2026

Seeking Patterns, Not just Memorizing Procedures: Contrastive Learning for Solving Math Word Problems

arXiv 2110.08464 ↗First posted 16 Oct 2021cs.CLcited by 30

Not on the map. Why?

Abstract (arXiv)

Math Word Problem (MWP) solving needs to discover the quantitative relationships over natural language narratives. Recent work shows that existing models memorize procedures from context and rely on shallow heuristics to solve MWPs. In this paper, we look at this issue and argue that the cause is a lack of overall understanding of MWP patterns. We first investigate how a neural network understands patterns only from semantics, and observe that, if the prototype equations are the same, most problems get closer representations and those representations apart from them or close to other prototypes tend to produce wrong solutions. Inspired by it, we propose a contrastive learning approach, where the neural network perceives the divergence of patterns. We collect contrastive examples by converting the prototype equation into a tree and seeking similar tree structures. The solving model is trained with an auxiliary objective on the collected examples, resulting in the representations of problems with similar prototypes being pulled closer. We conduct experiments on the Chinese dataset Math23k and the English dataset MathQA. Our method greatly improves the performance in monolingual and multilingual settings.

Key facts. Cited by 30 papers in the map (data through 7 Oct 2026). Builds on 12 of its 34 references that are in the map. First posted on arXiv 16 Oct 2021.

Builds on

12 of 34 references.

References · 12

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2014Learning Phrase Representations using RNN Encoder-Decoder for Statistical Machine Translationcited by 4,016
  3. 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
  4. 2021SimCSE: Simple Contrastive Learning of Sentence Embeddingscited by 2,168
  5. 2017Decoupled Weight Decay Regularizationcited by 1,722
  6. 2021Are NLP Models really able to Solve Simple Math Word Problems?cited by 861
  7. 2019MathQA: Towards Interpretable Math Word Problem Solving with Operation-Based Formalismscited by 653
  8. 2020Hard Negative Mixing for Contrastive Learningcited by 399
  9. 2020Fine-Tuning Pre-trained Language Model with Weak Supervision: A Contrastive-Regularized Self-Training Approachcited by 83
  10. 2020Improving BERT with Syntax-aware Local Attentioncited by 26
  11. 2018Adversarial Contrastive Estimationcited by 23
  12. 2021Investigating Math Word Problems using Pretrained Multilingual Language Modelscited by 21

Built on by

Cited by year

Citing papers per year: 2022: 10; 2023: 14; 2024: 3; 2025: 3.

30 papers.

Sort:

By area:

  1. 2022A Survey of Deep Learning for Mathematical Reasoningcited by 124
  2. 2024A Comprehensive Survey of Scientific Large Language Models and Their Applications in Scientific Discoverycited by 96
  3. 2023A Multi-Modal Neural Geometric Solver with Textual Clauses Parsed from Diagramcited by 55
  4. 2022Learning to Reason Deductively: Math Word Problem Solving as Complex Relation Extractioncited by 44
  5. 2022Towards Data-and Knowledge-Driven Artificial Intelligence: A Survey on Neuro-Symbolic Computingcited by 34
  6. 2023Let GPT be a Math Tutor: Teaching Math Word Problem Solvers with Customized Exercise Generationcited by 27
  7. 2023Mathematical Language Models: A Surveycited by 24
  8. 2023GraphReason: Enhancing Reasoning Capabilities of Large Language Models through A Graph-Based Verification Approachcited by 21
  9. 2023A Symbolic Character-Aware Model for Solving Geometry Problemscited by 20
  10. 2023Learning by Analogy: Diverse Questions Generation in Math Word Problemcited by 18
  11. 2023Interpretable Math Word Problem Solution Generation Via Step-by-step Planningcited by 17
  12. 2023MinT: Boosting Generalization in Mathematical Reasoning via Multi-View Fine-Tuningcited by 16
18 more
  1. 2022Chaining Simultaneous Thoughts for Numerical Reasoningcited by 14
  2. 2022Multi-View Reasoning: Consistent Contrastive Learning for Math Word Problemcited by 13
  3. 2025A Survey on Mathematical Reasoning and Optimization with Large Language Modelscited by 12
  4. 2022Why are NLP Models Fumbling at Elementary Math? A Survey of Deep Learning based Word Problem Solverscited by 9
  5. 2022Generalizing Math Word Problem Solvers via Solution Diversificationcited by 7
  6. 2023Non-Autoregressive Math Word Problem Solver with Unified Tree Structurecited by 7
  7. 2023Neural Machine Translation for Mathematical Formulaecited by 7
  8. 2023Math Word Problem Solving by Generating Linguistic Variants of Problem Statementscited by 7
  9. 2024How to Leverage Digit Embeddings to Represent Numbers?cited by 5
  10. 2022Analogical Math Word Problems Solving with Enhanced Problem-Solution Associationcited by 4
  11. 2023An Expression Tree Decoding Strategy for Mathematical Equation Generationcited by 4
  12. 2022Seeking Diverse Reasoning Logic: Controlled Equation Expression Generation for Solving Math Word Problemscited by 3
  13. 2023Solving Math Word Problems with Reexaminationcited by 2
  14. 2022Textual Enhanced Contrastive Learning for Solving Math Word Problemscited by 1
  15. 2023MWPRanker: An Expression Similarity Based Math Word Problem Retrievercited by 1
  16. 2025Foundation of Intelligence: Review of Math Word Problems from Human Cognition Perspectivecited by 1
  17. 2024A Theoretical Review on Solving Algebra Problemscited by 0
  18. 2025A Diversity-Enhanced Knowledge Distillation Model for Practical Math Word Problem Solvingcited by 0