Disentangling Representation Evolution in Transformers
Disentangling Representation Evolution in Transformers through Directional Decomposition
This research provides a new method for understanding and potentially improving the internal workings of large language models, which could lead to more efficient and robust AI systems.
A new paper introduces a method called Directional Decomposition to analyze how Transformer model representations evolve.
It breaks down learned updates into parallel and perpendicular components, finding that substantial parallel components exist beyond the standard residual path.
The study applies this to attention and MLP updates and to value aggregation, revealing a space-dependent asymmetry where exclude-self value-space parallel manipulation is more robust.
It also shows how the decomposition can be used to diagnose compression-induced errors and to improve training by suppressing certain components.
Disentangling Representation Evolution in Transformers through Directional Decomposition
Transformer representations evolve through learned additive transformations that either preserve their current direction or redirect it. We study this evolution as a functional geometry, decomposing learned updates into parallel and perpendicular components. Across pretrained models, we find substantial parallel components beyond the residual identity path. We then apply the decomposition in two spaces: to attention and MLP updates relative to the hidden state, and to attention value aggregation relative to the current token's value. Targeted edits reveal a strongly space-dependent asymmetry: exclude-self value-space parallel manipulation is markedly more robust than residual-space and perpendicular counterparts, preserving the direct self message while scaling only the non-self aggregate. The same decomposition gives a component-resolved description of compression-induced update error: perpendicular error separates compression methods more clearly than parallel error. Extensive experiments further demonstrate that full-aggregate parallel suppression during from-scratch pretraining lowers validation-loss trajectories and improves downstream averages, with the value-space variant strongest. Together, these results connect representation geometry to editing robustness, compression diagnosis, and training-time intervention. Code is available in the \href{https://github.com/Shwai-He/Transformer-Geometry}{project repository}.
This report is categorized under AITOP's "Papers" desk, focusing on US frontier AI labs and Silicon Valley technology leaders. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include Transformer-Geometry, representation learning, prompt engineering, fine-tuning.
Source attribution: curated from arXiv cs.LG (@Shwai He, Haichao Zhang, Shen Yan).