Seeking Patterns, Not just Memorizing Procedures: Contrastive Learning for Solving Math Word Problems
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
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2014Learning Phrase Representations using RNN Encoder-Decoder for Statistical Machine Translationcited by 4,016
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
- 2021SimCSE: Simple Contrastive Learning of Sentence Embeddingscited by 2,168
- 2017Decoupled Weight Decay Regularizationcited by 1,722
- 2021Are NLP Models really able to Solve Simple Math Word Problems?cited by 861
- 2019MathQA: Towards Interpretable Math Word Problem Solving with Operation-Based Formalismscited by 653
- 2020Hard Negative Mixing for Contrastive Learningcited by 399
- 2020Fine-Tuning Pre-trained Language Model with Weak Supervision: A Contrastive-Regularized Self-Training Approachcited by 83
- 2020Improving BERT with Syntax-aware Local Attentioncited by 26
- 2018Adversarial Contrastive Estimationcited by 23
- 2021Investigating Math Word Problems using Pretrained Multilingual Language Modelscited by 21
Built on by
Citing papers per year: 2022: 10; 2023: 14; 2024: 3; 2025: 3.
30 papers.
Sort:
By area:
- 2022A Survey of Deep Learning for Mathematical Reasoningcited by 124
- 2024A Comprehensive Survey of Scientific Large Language Models and Their Applications in Scientific Discoverycited by 96
- 2023A Multi-Modal Neural Geometric Solver with Textual Clauses Parsed from Diagramcited by 55
- 2022Learning to Reason Deductively: Math Word Problem Solving as Complex Relation Extractioncited by 44
- 2022Towards Data-and Knowledge-Driven Artificial Intelligence: A Survey on Neuro-Symbolic Computingcited by 34
- 2023Let GPT be a Math Tutor: Teaching Math Word Problem Solvers with Customized Exercise Generationcited by 27
- 2023Mathematical Language Models: A Surveycited by 24
- 2023GraphReason: Enhancing Reasoning Capabilities of Large Language Models through A Graph-Based Verification Approachcited by 21
- 2023A Symbolic Character-Aware Model for Solving Geometry Problemscited by 20
- 2023Learning by Analogy: Diverse Questions Generation in Math Word Problemcited by 18
- 2023Interpretable Math Word Problem Solution Generation Via Step-by-step Planningcited by 17
- 2023MinT: Boosting Generalization in Mathematical Reasoning via Multi-View Fine-Tuningcited by 16
18 more
- 2022Chaining Simultaneous Thoughts for Numerical Reasoningcited by 14
- 2022Multi-View Reasoning: Consistent Contrastive Learning for Math Word Problemcited by 13
- 2025A Survey on Mathematical Reasoning and Optimization with Large Language Modelscited by 12
- 2022Why are NLP Models Fumbling at Elementary Math? A Survey of Deep Learning based Word Problem Solverscited by 9
- 2022Generalizing Math Word Problem Solvers via Solution Diversificationcited by 7
- 2023Non-Autoregressive Math Word Problem Solver with Unified Tree Structurecited by 7
- 2023Neural Machine Translation for Mathematical Formulaecited by 7
- 2023Math Word Problem Solving by Generating Linguistic Variants of Problem Statementscited by 7
- 2024How to Leverage Digit Embeddings to Represent Numbers?cited by 5
- 2022Analogical Math Word Problems Solving with Enhanced Problem-Solution Associationcited by 4
- 2023An Expression Tree Decoding Strategy for Mathematical Equation Generationcited by 4
- 2022Seeking Diverse Reasoning Logic: Controlled Equation Expression Generation for Solving Math Word Problemscited by 3
- 2023Solving Math Word Problems with Reexaminationcited by 2
- 2022Textual Enhanced Contrastive Learning for Solving Math Word Problemscited by 1
- 2023MWPRanker: An Expression Similarity Based Math Word Problem Retrievercited by 1
- 2025Foundation of Intelligence: Review of Math Word Problems from Human Cognition Perspectivecited by 1
- 2024A Theoretical Review on Solving Algebra Problemscited by 0
- 2025A Diversity-Enhanced Knowledge Distillation Model for Practical Math Word Problem Solvingcited by 0
- 2025Foundation of Intelligence: Review of Math Word Problems from Human Cognition Perspective24 Oct 2025
- 2025A Survey on Mathematical Reasoning and Optimization with Large Language Models22 Mar 2025
- 2025A Diversity-Enhanced Knowledge Distillation Model for Practical Math Word Problem Solving7 Jan 2025
- 2024A Theoretical Review on Solving Algebra Problems29 Oct 2024
- 2024How to Leverage Digit Embeddings to Represent Numbers?1 Jul 2024
- 2024A Comprehensive Survey of Scientific Large Language Models and Their Applications in Scientific Discovery16 Jun 2024
- 2023Mathematical Language Models: A Survey12 Dec 2023
- 2023An Expression Tree Decoding Strategy for Mathematical Equation Generation14 Oct 2023
- 2023Solving Math Word Problems with Reexamination14 Oct 2023
- 2023GraphReason: Enhancing Reasoning Capabilities of Large Language Models through A Graph-Based Verification Approach18 Aug 2023
- 2023A Symbolic Character-Aware Model for Solving Geometry Problems5 Aug 2023
- 2023MinT: Boosting Generalization in Mathematical Reasoning via Multi-View Fine-Tuning16 Jul 2023
18 more
- 2023MWPRanker: An Expression Similarity Based Math Word Problem Retriever3 Jul 2023
- 2023Math Word Problem Solving by Generating Linguistic Variants of Problem Statements24 Jun 2023
- 2023Learning by Analogy: Diverse Questions Generation in Math Word Problem15 Jun 2023
- 2023Interpretable Math Word Problem Solution Generation Via Step-by-step Planning1 Jun 2023
- 2023Neural Machine Translation for Mathematical Formulae25 May 2023
- 2023Let GPT be a Math Tutor: Teaching Math Word Problem Solvers with Customized Exercise Generation22 May 2023
- 2023Non-Autoregressive Math Word Problem Solver with Unified Tree Structure8 May 2023
- 2023A Multi-Modal Neural Geometric Solver with Textual Clauses Parsed from Diagram22 Feb 2023
- 2022A Survey of Deep Learning for Mathematical Reasoning20 Dec 2022
- 2022Analogical Math Word Problems Solving with Enhanced Problem-Solution Association1 Dec 2022
- 2022Generalizing Math Word Problem Solvers via Solution Diversification1 Dec 2022
- 2022Chaining Simultaneous Thoughts for Numerical Reasoning29 Nov 2022
- 2022Textual Enhanced Contrastive Learning for Solving Math Word Problems29 Nov 2022
- 2022Towards Data-and Knowledge-Driven Artificial Intelligence: A Survey on Neuro-Symbolic Computing28 Oct 2022
- 2022Multi-View Reasoning: Consistent Contrastive Learning for Math Word Problem21 Oct 2022
- 2022Seeking Diverse Reasoning Logic: Controlled Equation Expression Generation for Solving Math Word Problems21 Sep 2022
- 2022Why are NLP Models Fumbling at Elementary Math? A Survey of Deep Learning based Word Problem Solvers31 May 2022
- 2022Learning to Reason Deductively: Math Word Problem Solving as Complex Relation Extraction19 Mar 2022
- 2022A Survey of Deep Learning for Mathematical Reasoningcited by 124
- 2023A Multi-Modal Neural Geometric Solver with Textual Clauses Parsed from Diagramcited by 55
- 2022Learning to Reason Deductively: Math Word Problem Solving as Complex Relation Extractioncited by 44
- 2023GraphReason: Enhancing Reasoning Capabilities of Large Language Models through A Graph-Based Verification Approachcited by 21
- 2023MinT: Boosting Generalization in Mathematical Reasoning via Multi-View Fine-Tuningcited by 16
- 2025A Survey on Mathematical Reasoning and Optimization with Large Language Modelscited by 12
- 2023Math Word Problem Solving by Generating Linguistic Variants of Problem Statementscited by 7
- 2022Analogical Math Word Problems Solving with Enhanced Problem-Solution Associationcited by 4
- 2025A Survey on Mathematical Reasoning and Optimization with Large Language Models22 Mar 2025
- 2023GraphReason: Enhancing Reasoning Capabilities of Large Language Models through A Graph-Based Verification Approach18 Aug 2023
- 2023MinT: Boosting Generalization in Mathematical Reasoning via Multi-View Fine-Tuning16 Jul 2023
- 2023Math Word Problem Solving by Generating Linguistic Variants of Problem Statements24 Jun 2023
- 2023A Multi-Modal Neural Geometric Solver with Textual Clauses Parsed from Diagram22 Feb 2023
- 2022A Survey of Deep Learning for Mathematical Reasoning20 Dec 2022
- 2022Analogical Math Word Problems Solving with Enhanced Problem-Solution Association1 Dec 2022
- 2022Learning to Reason Deductively: Math Word Problem Solving as Complex Relation Extraction19 Mar 2022
- 2024A Comprehensive Survey of Scientific Large Language Models and Their Applications in Scientific Discoverycited by 96
- 2022Towards Data-and Knowledge-Driven Artificial Intelligence: A Survey on Neuro-Symbolic Computingcited by 34
- 2023Let GPT be a Math Tutor: Teaching Math Word Problem Solvers with Customized Exercise Generationcited by 27
- 2023Mathematical Language Models: A Surveycited by 24
- 2023A Symbolic Character-Aware Model for Solving Geometry Problemscited by 20
- 2023Learning by Analogy: Diverse Questions Generation in Math Word Problemcited by 18
- 2023Interpretable Math Word Problem Solution Generation Via Step-by-step Planningcited by 17
- 2022Chaining Simultaneous Thoughts for Numerical Reasoningcited by 14
- 2022Multi-View Reasoning: Consistent Contrastive Learning for Math Word Problemcited by 13
- 2022Why are NLP Models Fumbling at Elementary Math? A Survey of Deep Learning based Word Problem Solverscited by 9
- 2022Generalizing Math Word Problem Solvers via Solution Diversificationcited by 7
- 2023Non-Autoregressive Math Word Problem Solver with Unified Tree Structurecited by 7
12 most cited of 22 All 22 (JSON)
- 2025Foundation of Intelligence: Review of Math Word Problems from Human Cognition Perspective24 Oct 2025
- 2025A Diversity-Enhanced Knowledge Distillation Model for Practical Math Word Problem Solving7 Jan 2025
- 2024A Theoretical Review on Solving Algebra Problems29 Oct 2024
- 2024How to Leverage Digit Embeddings to Represent Numbers?1 Jul 2024
- 2024A Comprehensive Survey of Scientific Large Language Models and Their Applications in Scientific Discovery16 Jun 2024
- 2023Mathematical Language Models: A Survey12 Dec 2023
- 2023An Expression Tree Decoding Strategy for Mathematical Equation Generation14 Oct 2023
- 2023Solving Math Word Problems with Reexamination14 Oct 2023
- 2023A Symbolic Character-Aware Model for Solving Geometry Problems5 Aug 2023
- 2023MWPRanker: An Expression Similarity Based Math Word Problem Retriever3 Jul 2023
- 2023Learning by Analogy: Diverse Questions Generation in Math Word Problem15 Jun 2023
- 2023Interpretable Math Word Problem Solution Generation Via Step-by-step Planning1 Jun 2023
12 newest of 22 All 22 (JSON)