Lune

EMNLP Findings2021

Adversarial Examples for Evaluating Math Word Problem Solvers

Vivek Kumar, Rishabh Maheshwary, Vikram Pudi

Abstract

Standard accuracy metrics have shown that Math Word Problem (MWP) solvers have achieved high performance on benchmark datasets. However, the extent to which existing MWP solvers truly understand language and its relation with numbers is still unclear. In this paper, we generate adversarial attacks to evaluate the robustness of state-of-the-art MWP solvers. We propose two methods Question Reordering and Sentence Paraphrasing to generate adversarial attacks. We conduct experiments across three neural MWP solvers over two benchmark datasets. On average, our attack method is able to reduce the accuracy of MWP solvers by over 40 percentage points on these datasets. Our results demonstrate that existing MWP solvers are sensitive to linguistic variations in the problem text. We verify the validity and quality of generated adversarial examples through human evaluation.

Original Problem Text: Tim has 5 books. Mike has 7 books. How many books do they have together? Equation: X = 5+7

Question Reordering Text: How many books do they have together given that Tim has 5 books and Mike has 7 books. Equation: X = 5*7

Sentence Paraphrasing Text: Tim has got 5 books. There are 7 books in Mike's possession. How many books do they have? Equation: X = 5*5

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

6 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Towards Robust Numerical Question Answering: Diagnosing Numerical Capabilities of NLP Systems cites Graph-to-Tree Learning for Solving Math Word Problems
  • SAC-KG: Exploiting Large Language Models as Skilled Automatic Constructors for Domain Knowledge Graph cites Large Language Models Can Be Easily Distracted by Irrelevant Context
  • MathAttack: Attacking Large Language Models towards Math Solving Ability cites Large Language Models Can Be Easily Distracted by Irrelevant Context
  • MathAttack: Attacking Large Language Models towards Math Solving Ability cites Graph-to-Tree Learning for Solving Math Word Problems
  • MathAttack: Attacking Large Language Models towards Math Solving Ability cites Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and Entailment
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers6

  1. Large Language Models Can Be Easily Distracted by Irrelevant ContextFreda Shi, Xinyun Chen, Kanishka Misra, Nathan Scales et al.ICML 2023 · 970 citations
  2. MathAttack: Attacking Large Language Models towards Math Solving AbilityZihao Zhou, Qiufeng Wang, Mingyu Jin, Jie Yao et al.AAAI 2024 · 38 citations
  3. SAC-KG: Exploiting Large Language Models as Skilled Automatic Constructors for Domain Knowledge GraphHanzhu Chen, Xu Shen, Qitan Lv, Jie Wang et al.ACL 2024 · 17 citations
  4. Towards Robust Numerical Question Answering: Diagnosing Numerical Capabilities of NLP SystemsJialiang Xu, Mengyu Zhou, Xinyi He, Shi Han et al.EMNLP 2022 · 5 citations
  5. FERMAT: An Alternative to Accuracy for Numerical ReasoningJasivan Alex Sivakumar, Nafise Sadat MoosaviACL 2023 · 2 citations

Builds on4

  1. PEGASUS: Pre-training with Extracted Gap-sentences for Abstractive SummarizationJingqing Zhang, Yao Zhao, Mohammad Saleh, Peter J. LiuICML 2020 · 2,453 citations
  2. Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and EntailmentDi Jin, Zhijing Jin, Joey Tianyi Zhou, Peter SzolovitsAAAI 2020 · 1,333 citations
  3. Graph-to-Tree Learning for Solving Math Word ProblemsJipeng Zhang, Lei Wang, Roy Ka-Wei Lee, Yi Bin et al.ACL 2020 · 129 citations
  4. Generating Natural Language Attacks in a Hard Label Black Box SettingRishabh Maheshwary, Saket Maheshwary, Vikram PudiAAAI 2021 · 128 citations

Related papers

  1. Adversarial Math Word Problem GenerationRoy Xie, Chengxuan Huang, Junlin Wang, Bhuwan DhingraEMNLP Findings 2024 · 4 citations
  2. MSCR: Exploring the Vulnerability of LLMs’ Mathematical Reasoning Abilities Using Multi-Source Candidate ReplacementZhishen Sun, Guang Dai, Haishan YeICLR 2026 · 1 citation
  3. A Novel Metric for Measuring the Robustness of Large Language Models in Non-adversarial ScenariosSamuel Ackerman, Ella Rabinovich, Eitan Farchi, Ateret Anaby-TavorEMNLP Findings 2024 · 1 citation
  4. Math Word Problem Generation with Mathematical Consistency and Problem Context ConstraintsZichao Wang, Andrew S. Lan, Richard G. BaraniukEMNLP 2021 · 35 citations
  5. Robustness to Modification with Shared Words in Paraphrase IdentificationZhouxing Shi, Minlie HuangEMNLP Findings 2020 · 25 citations
Dusk over the sea between two cliffs drawn in fine vertical lines