Disentangling Representation Evolution in Transformers through Directional Decomposition

Shwai He, Haichao Zhang, Shen Yan

arXiv:2609.15975 · 2026-09-16 공개 · arXiv · PDF

transformer attention-mechanics mlp-updates compression-diagnosis training-intervention hidden-state-geometry value-space residual-path

Abstract

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 https://github.com/Shwai-He/Transformer-Geometry{project repository}.

한국어 요약

한 줄 요약

Transformer의 표현 진화를 방향 분해를 통해 분석하고, 편집, 압축, 학습 과정에서의 영향을 실증적으로 규명한다.

핵심 기여도

핵심 아이디어

Transformer는 잔차 스트림 위에서 학습된 덧셈 업데이트를 통해 표현을 진화시킨다. 이 업데이트는 입력 표현의 방향을 유지하는 평행 성분(Δ∥)과 방향을 바꾸는 수직 성분(Δ⟂)으로 분해할 수 있다. 이 연구는 이러한 기하학적 구조를 기반으로, 업데이트의 방향적 역할을 분석하고, 편집, 압축, 학습 과정에서의 영향을 평가한다. 특히, attention value space에서의 평행 조절이 residual space보다 편집에 더 안정적임을 발견한다. 이는 self-value 흐름을 유지하면서 cross-token aggregation을 스케일링할 수 있기 때문으로 해석된다.

기술적 접근법

주요 결과

의의 및 한계

실용적 활용