AI RESEARCH

Farther the Shift, Sparser the Representation: Analyzing OOD Mechanisms in LLMs

arXiv CS.AI

ArXi:2603.03415v2 Announce Type: replace-cross In this work, we investigate how Large Language Models (LLMs) adapt their internal representations when encountering inputs of increasing difficulty, quantified as the degree of out-of-distribution (OOD) shift. We reveal a consistent and quantifiable phenomenon: as task difficulty increases, whether through harder reasoning questions, longer contexts, or adding answer choices, the last hidden states of LLMs become substantially sparser. In short, \textbf{\textit{the farther the shift, the sparser the representations.