← Latest papers
💬 NLP

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

This paper demonstrates that lexical perturbations severely degrade LLM reasoning by fragmenting tokenization and diverting attention in transformer layers, a coupled effect that renders inference-time repair strategies ineffective because they fail to simultaneously restore both corrupted content and attention allocation.

Original authors: Jiaqian Zhu, Yang Zhang, Junhua Ding, Xiaowei Yu

Published 2026-08-25
📖 5 min read🧠 Deep dive

Original authors: Jiaqian Zhu, Yang Zhang, Junhua Ding, Xiaowei Yu

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Large language models are the engines behind a new generation of artificial intelligence, capable of reading complex instructions, solving math problems, and holding conversations that feel remarkably human. These systems work by breaking down text into small pieces called tokens, which act like building blocks for the model to understand meaning. When a human reads a sentence with a typo, the brain effortlessly skips over the error and grasps the intended message. For years, researchers assumed these powerful computer models shared this same resilience, believing that minor spelling mistakes or awkward phrasing would not significantly derail their ability to reason. The question of how fragile these systems truly are when faced with realistic, everyday errors has remained largely unanswered, leaving a gap between their impressive performance on clean data and their reliability in the messy real world.

A recent study set out to fill this gap by testing how four different large language models handle three specific types of text corruption. The researchers took standard reasoning tasks, such as answering questions about physical science or solving multi-step math problems, and introduced realistic errors. They simulated fast typing mistakes where a key is hit adjacent to the intended one, swapped neighboring letters within a word, and added conversational fillers like "um" or "you know" to lengthen the sentences. The goal was to see if the models could still find the correct answer when the text looked slightly broken, and to understand exactly why they might fail.

The results revealed a sharp and surprising divide in how the models reacted. When the researchers added conversational fillers, the models performed almost exactly as they did on clean text, even though the sentences became longer. However, when they introduced character-level errors like typos or swapped letters, the models' accuracy plummeted. This drop was most severe in tasks requiring multi-step mathematical reasoning, where a single typo could cause the model to lose its way entirely. The study showed that the failure was not caused by the extra length of the text, but by the specific way the computer breaks the words into pieces. When a word is misspelled, the computer's internal dictionary cannot recognize it as a single unit. Instead, it splits the word into strange, unfamiliar fragments.

The researchers traced the cause of this failure to a phenomenon they call attention diversion. In a functioning model, the system focuses its computational energy on the most important parts of a sentence, such as the numbers in a math problem or the key facts in a story. When a word is fragmented into strange pieces, these fragments act like a magnet, pulling the model's focus away from the important evidence and onto the broken parts of the text. The model ends up staring at the typo instead of the solution. This distraction is most damaging in the middle and final stages of the model's processing, where it tries to combine information to form an answer. The study confirmed that it is the fragmentation of the word, not the length of the sentence, that drives this loss of focus.

To understand why this is so hard to fix, the researchers performed a series of experiments where they tried to repair the problem in isolation. They attempted to restore the model's focus to the correct parts of the sentence while leaving the typos in place, and they tried to fix the typos while leaving the model's focus confused. Neither approach worked well on its own. In fact, fixing the focus while the text remained broken actually made the model perform worse, because it was now looking intently at the wrong information. The study found that the damage to the text and the distraction of the model are deeply linked; they cannot be separated. The model relies on the specific shape of the words to understand the input, and when that shape is broken, the model's attention is pulled along with it.

This coupling explains why common strategies for improving performance, such as asking the model to think step-by-step or using a spell-checker before the main task, often fail to recover the lost accuracy. These methods usually try to fix only one side of the problem, either the text or the focus, while the other remains broken. The researchers also discovered that the severity of the failure depends on what kind of information is corrupted. If a typo hits a number in a math problem, the model is almost certain to fail, because that number cannot be guessed from the surrounding context. If a typo hits a common word, the model might still recover. This suggests that the most critical errors are those that destroy unique, irreplaceable pieces of information.

Ultimately, the study concludes that the vulnerability of these models lies in how they represent text at the very beginning of their processing. Once a word is broken into unfamiliar fragments, the damage is effectively irreversible without access to the original, correct text. The researchers found that even a powerful repair model could not reliably fix the errors because the corrupted text often contained no clues to what the original word was supposed to be. This means that building truly robust artificial intelligence requires protecting the text before it enters the model, rather than trying to fix it afterward. The findings suggest that future improvements must focus on making the system's initial understanding of text more flexible, so that it can recognize meaning even when the surface form is slightly damaged, rather than relying on perfect spelling to function.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →