The Devil is in the Spectrum: Mitigating Representation Collapse in LLMs via Topologically Regularized Side-Path

Yiheng Tao, Kaiwen Cheng, Yao Lu, Chang Liu, Jie Chen
6/2/2026
cs.AI
transformer-attention

Official code: Eziotao-tyd/TRSP (4 stars, Python, Apache-2.0, last commit 2026-07-11).

Abstract

Large Language Models (LLMs) are fundamentally limited by representation collapse, a bottleneck that severely degrades long-context performance. We identify that existing approaches risk drifting into one of two pathological extremes: homogenization collapse (e.g., attention sinks causing rank deficiency) and isolation collapse (e.g., local attention causing context disconnection).

Show full abstract

Through spectral analysis of attention dynamics, we derive an intrinsic trade-off between mixing efficiency (spectral gap) and information capacity (effective rank) that standard mechanisms struggle to balance. To resolve this dilemma, we propose the Topologically Regularized Side-Path (TRSP), a non-invasive architectural intervention that achieves spectral balance. TRSP employs a parameter-free Triangular Box mechanism, scaled by a lightweight, length-aware gate, to regularize the token interaction topology. By integrating proximal coupling to preserve effective rank and distal propagation to support non-degenerate mixing, TRSP promotes a geometrically healthier transition operator without altering core attention. Experiments show significant improvements across general capabilities and long-context benchmarks. Notably, on NoLiMa at $8\times$ the training length, TRSP retains $83\%$ accuracy and surpasses the Differential Transformer and Gated Attention by approximately 30 and 50 percentage points, respectively. Code available at: https://github.com/Eziotao-tyd/TRSP.

View on arXivView PDF

Code Implementations(1)

Eziotao-tyd/TRSPOfficial100%
Apache-2.0

This repository contains the official code and models for our ICML 2026 paper: [The Devil is in the Spectrum: Mitigating Representation Collapse in LLMs via Topologically Regularized Side-Path].

40PythonMay 21, 20264 months agoApache-2.0

Similar Papers

Cite this paper

@article{tao2026devil,
  title  = {The Devil is in the Spectrum: Mitigating Representation Collapse in LLMs via Topologically Regularized Side-Path},
  author = {Yiheng Tao and Kaiwen Cheng and Yao Lu and Chang Liu and Jie Chen},
  year   = {2026},
  eprint = {2607.20484},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2607.20484v1}
}

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

Discussion