How Is LLM Reasoning Distracted by Irrelevant Context? An Analysis Using a Controlled Benchmark

Minglai Yang, Ethan Huang, Liang Zhang, Mihai Surdeanu, William Wang +1 more
5/24/2025
cs.CLcs.AIcs.LG

No official code found. Best implementation: yminglai/GSM-DC (10 stars, last commit 2026-01-22).

Abstract

We introduce Grade School Math with Distracting Context (GSM-DC), a synthetic benchmark to evaluate Large Language Models' (LLMs) reasoning robustness against systematically controlled irrelevant context (IC). GSM-DC constructs symbolic reasoning graphs with precise distractor injections, enabling rigorous, reproducible evaluation. Our experiments demonstrate that LLMs are significantly sensitive to IC, affecting both reasoning path selection and arithmetic accuracy. Additionally, training models with strong distractors improves performance in both in-distribution and out-of-distribution scenarios. We further propose a stepwise tree search guided by a process reward model, which notably enhances robustness in out-of-distribution conditions.

View on arXivView PDF

Code Implementations(1)

yminglai/GSM-DCCommunity100%

This repository contains the GSM-DC benchmark and evaluation framework for analyzing how Large Language Models (LLMs) are distracted by irrelevant context in math reasoning tasks. GSM-DC constructs symbolic DAG-based math problems with fine-grained distractor injections, enabling stepwise evaluation of reasoning robustness. https://ymingl.com/GSMDC

101Shell, PythonMay 18, 20259 months ago

Similar Papers

Cite this paper

@article{yang2025reasoning,
  title  = {How Is LLM Reasoning Distracted by Irrelevant Context? An Analysis Using a Controlled Benchmark},
  author = {Minglai Yang and Ethan Huang and Liang Zhang and Mihai Surdeanu and William Wang and Liangming Pan},
  year   = {2025},
  eprint = {2505.18761},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.18761v2}
}

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/2505.18761.svg)](https://codeofpaper.com/paper/2505.18761)

Discussion