Lexical Perturbations Disrupt LLM Reasoning: An Empirical Study of Attention Diversion

Jiaqian Zhu, Yang Zhang, Junhua Ding, Xiaowei Yu
8/22/2026
cs.CLcs.AIcs.LG

Official code: Jiaqian-Janelle/Attention-Diversion (0 stars, Python, last commit 2026-08-23).

Abstract

Large Language Models (LLMs) achieve strong reasoning performance, but their robustness to realistic lexical corruption remains poorly understood. We evaluate four open-weight instruction-tuned models and frontier models across four reasoning benchmarks under keyboard noise, character swaps, and filler insertion.

Show full abstract

Character-level perturbations substantially degrade accuracy, especially on multi-step reasoning tasks, while filler insertion has little effect. We trace this asymmetry to Attention Diversion: lexical corruption fragments subword tokenization, and the resulting fragments attract disproportionate attention mass, concentrated in middle and final transformer layers. Length-matched controls confirm that fragmentation, not prompt length, drives the loss. A factorial intervention then shows why the damage is hard to undo: fragmentation corrupts token content and attention allocation together, and the two are coupled. Restoring clean attention while the content remains corrupted is actively harmful, restoring content alone is insufficient, and only restoring both recovers a substantial share of the gap. This coupling explains why inference-time strategies, including chain-of-thought prompting, spell-checking, self-repair, and stronger repair models, fail to consistently recover performance: each addresses one channel at a time. Code and data are available at https://github.com/Jiaqian-Janelle/Attention-Diversion

View on arXivView PDF

Code Implementations(1)

00PythonAug 11, 20263 months agoNOASSERTION

Similar Papers

Cite this paper

@article{zhu2026lexical,
  title  = {Lexical Perturbations Disrupt LLM Reasoning: An Empirical Study of Attention Diversion},
  author = {Jiaqian Zhu and Yang Zhang and Junhua Ding and Xiaowei Yu},
  year   = {2026},
  eprint = {2608.22140},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2608.22140v1}
}

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

Discussion