Cutting Through the Noise: Boosting LLM Performance on Math Word Problems

Ujjwala Anantheswaran, Himanshu Gupta, Kevin Scaria, Shreyas Verma, Chitta Baral +1 more
5/30/2024
13 citations
cs.CL

Official code: him1411/problemathic (5 stars, Python, MIT, last commit 2024-07-17).

Abstract

Large Language Models (LLMs) excel at various tasks, including solving math word problems (MWPs), but struggle with real-world problems containing irrelevant information. To address this, we propose a prompting framework that generates adversarial variants of MWPs by adding irrelevant variables.

Show full abstract

We introduce a dataset, PROBLEMATHIC, containing both adversarial and non-adversarial MWPs. Our experiments reveal that LLMs are susceptible to distraction by numerical noise, resulting in an average relative performance drop of ~26% on adversarial MWPs. To mitigate this, we fine-tune LLMs (Llama-2, Mistral) on the adversarial samples from our dataset. Fine-tuning on adversarial training instances improves performance on adversarial MWPs by ~8%, indicating increased robustness to noise and improved ability to identify relevant data for reasoning. Finally, to assess the generalizability of our prompting framework, we introduce GSM-8K-Adv, an adversarial variant of the GSM-8K benchmark. LLMs continue to struggle when faced with adversarial information, reducing performance by up to 6%.

View on arXivView PDF

Code Implementations(1)

MIT
51Python, ShellJul 26, 20232 years agoMIT

Similar Papers

Cite this paper

@article{anantheswaran2024cutting,
  title  = {Cutting Through the Noise: Boosting LLM Performance on Math Word Problems},
  author = {Ujjwala Anantheswaran and Himanshu Gupta and Kevin Scaria and Shreyas Verma and Chitta Baral and Swaroop Mishra},
  year   = {2024},
  eprint = {2406.15444},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2406.15444v5}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2406.15444.svg)](https://codeofpaper.com/paper/2406.15444)

Discussion