Analyzing the Mechanism of Attention Collapse in VGGT from a Dynamics Perspective
Huan Li, Longjun Luo, Yuling Shi, Xiaodong Gu
TL;DR
The paper addresses attention collapse in VGGT's global self-attention when processing long sequences. It introduces a mean-field PDE framework that models token-feature diffusion on the sphere, showing a Dirac-type steady state is approached at rate $O(1/L)$ and that token merging slows diffusion by effectively reducing token count, delaying collapse while reducing computation. The main contributions are a quantitative diffusion-based explanation linking entropy decay, rank contraction, and token-merging, closed-form predictions that match ScanNet-50 experiments, and practical guidance for scalable 3D vision transformers. This framework provides a principled design lens for future cross-view, multi-modal transformers and clarifies how efficiency tricks can be integrated without retraining to preserve geometric fidelity.
Abstract
Visual Geometry Grounded Transformer (VGGT) delivers state-of-the-art feed-forward 3D reconstruction, yet its global self-attention layer suffers from a drastic collapse phenomenon when the input sequence exceeds a few hundred frames: attention matrices rapidly become near rank-one, token geometry degenerates to an almost one-dimensional subspace, and reconstruction error accumulates super-linearly.In this report,we establish a rigorous mathematical explanation of the collapse by viewing the global-attention iteration as a degenerate diffusion process.We prove that,in VGGT, the token-feature flow converges toward a Dirac-type measure at a $O(1/L)$ rate, where $L$ is the layer index, yielding a closed-form mean-field partial differential equation that precisely predicts the empirically observed rank profile.The theory quantitatively matches the attention-heat-map evolution and a series of experiments outcomes reported in relevant works and explains why its token-merging remedy -- which periodically removes redundant tokens -- slows the effective diffusion coefficient and thereby delays collapse without additional training.We believe the analysis provides a principled lens for interpreting future scalable 3D-vision transformers,and we highlight its potential for multi-modal generalization.
