aiqbench analysis
This research investigates the origins of uncontrolled repetition in large vision-language models, proposing a method called Tokenwise Residual Comparison (TRC) that detects anomalies in residual stream dynamics before they become prominent. By selectively suppressing specific coordinates in the residual stream, TRC reduces loop rates by 57% and effectively mitigates resource consumption attacks across various model architectures. The study provides critical insights into how repetition semantics emerge in shallow layers and propagate, offering a new avenue for intervention in autoregressive generation processes.
Uncovering Uncontrolled Repetition through Residual Stream Dynamics
arXiv:2609.38802v1 Announce Type: cross Abstract: Uncontrolled repetition can prolong autoregressive generation in large language models (LLMs) and enable resource consumption attacks. Prior analyses of repetitive generation have identified strongly activated features in intermediate and late layers. However, how uncontrolled repetition activity emerges and develops before becoming prominent in these layers remains insufficiently understood. In this paper, we investigate this question primarily in large vision-language models (LVLMs), which support a richer set of uncontrolled repetitions through both visual and textual inputs. We propose Tokenwise Residual Comparison (TRC), a method that identifies and localizes anomalies associated with repetition from residual dynamics during generation. TRC compares attention and multilayer perceptron writes to the residual stream across generated tokens to identify patterns associated with repetition. It then selectively suppresses coordinates in the residual stream at the identified layer. Experiments show that TRC effectively mitigates uncontrolled repetition, reducing loop rates by 57\% on average. Our analysis further shows that repetition semantics emerge in shallow layers and propagate through the residual stream, disrupting normal representations. TRC also generalizes to large language models (LLMs) and large reasoning models (LRMs), where it consistently captures analogous repetition dynamics and achieves effective mitigation. Our work broadens the study of repetitive generation from its prominent internal representations to earlier opportunities for intervention, providing insights for mitigating resource consumption attacks.
Abstract:Uncontrolled repetition can prolong autoregressive generation in large language models (LLMs) and enable resource consumption attacks. Prior analyses of repetitive generation have identified strongly activated features in intermediate and late layers. However, how uncontrolled repetition activity emerges and develops before becoming prominent in these layers remains insufficiently understood. In this paper, we investigate this question primarily in large vision-language models (LVLMs), which support a richer set of uncontrolled repetitions through both visual and textual inputs. We propose Tokenwise Residual Comparison (TRC), a method that identifies and localizes anomalies associated with repetition from residual dynamics during generation. TRC compares attention and multilayer perceptron writes to the residual stream across generated tokens to identify patterns associated with repetition. It then selectively suppresses coordinates in the residual stream at the identified layer. Experiments show that TRC effectively mitigates uncontrolled repetition, reducing loop rates by 57\% on average. Our analysis further shows that repetition semantics emerge in shallow layers and propagate through the residual stream, disrupting normal representations. TRC also generalizes to large language models (LLMs) and large reasoning models (LRMs), where it consistently captures analogous repetition dynamics and achieves effective mitigation. Our work broadens the study of repetitive generation from its prominent internal representations to earlier opportunities for intervention, providing insights for mitigating resource consumption attacks.
Computation and Language (cs.CL); Artificial Intelligence (cs.AI)
arXiv:2609.38802 [cs.CL]
(or arXiv:2609.38802v1 [cs.CL] for this version)
https://doi.org/10.48550/arXiv.2609.38802 Focus to learn more arXiv-issued DOI via DataCite (pending registration)
arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.
Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.
Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.
Full text under the publisher's open licence · 311 words
Related coverage
SymbolicLight V1: Spike-Gated Dual-Path Language Modeling at High Activation Sparsity
arXiv · Aug 18, 2026
Uncovering Spontaneous Physics Representations in In-Context Learning
arXiv · Aug 6, 2026

Always ask your agent to be honest
LessWrong · Sep 16, 2026

Accelerated X-Ray Analysis for Nanoscale Imaging (XANI) of Novel Materials
NVIDIA · May 13, 2026