arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.19941cs.CVcs.AIcs.LG
收藏

视觉变换器中的块递归动力学

Block-Recurrent Dynamics in Vision Transformers

Kempner Institute, Harvard University(哈佛大学凯普纳研究所);University of Osnabrück(奥斯纳布吕克大学)

Mozes Jacobs, Thomas Fel, Richard Hakim, Alessandra Brondetta, Demba Ba, T. Andy Keller

AI总结:

本文提出块递归假设,表明训练后的ViT具有块递归深度结构,通过少量块的递归计算可复现原始深度的计算。通过训练Raptor模型恢复DINOv2的准确率,验证了块递归结构的存在,并揭示了模型动态可解释性。

摘要:

随着视觉变换器(ViTs)成为标准视觉骨干网络,对其计算现象学的机制性解释至关重要。尽管架构提示暗示了动态结构,但尚无框架能解释变换器深度作为明确流的特性。本文提出块递归假说(BRH),认为训练后的ViTs具有块递归深度结构,使得原始L块的计算可仅用k<<L个块递归计算。在多样化的ViTs中,层间表示相似性矩阵表明存在少数连续阶段。为确定这些阶段是否反映真正可重用的计算,我们训练了块递归的预训练ViT替代模型:递归逼近相结构变换器(Raptor)。在小规模情况下,我们证明随机深度和训练促进递归结构,并随后与我们准确拟合Raptor的能力相关联。随后,我们通过训练Raptor模型在仅2个块的等效运行时间内恢复DINOv2 ImageNet-1k线性探测准确率的96%,提供了BRH的实证存在证明。最后,我们利用该假说开发了动态可解释性程序。我们发现i)在小扰动下,方向性收敛到类依赖的角盆地,具有自校正轨迹;ii)令牌特定动态,其中cls执行锐利的晚期重定向,而patch令牌表现出强烈的晚期阶段向其平均方向的相干性;iii)晚期深度的崩溃到低秩更新,与收敛到低维吸引子一致。总体而言,我们发现ViT深度中出现了一个紧凑的递归程序,指明了一种低复杂度的规范解决方案,使这些模型可通过原理性的动态系统分析进行研究。

英文摘要:

As Vision Transformers (ViTs) become standard vision backbones, a mechanistic account of their computational phenomenology is essential. Despite architectural cues that hint at dynamical structure, there is no settled framework that interprets Transformer depth as a well-characterized flow. In this work, we introduce the Block-Recurrent Hypothesis (BRH), arguing that trained ViTs admit a block-recurrent depth structure such that the computation of the original $L$ blocks can be accurately rewritten using only $k \ll L$ distinct blocks applied recurrently. Across diverse ViTs, between-layer representational similarity matrices suggest few contiguous phases. To determine whether these phases reflect genuinely reusable computation, we train block-recurrent surrogates of pretrained ViTs: Recurrent Approximations to Phase-structured TransfORmers (Raptor). In small-scale, we demonstrate that stochastic depth and training promote recurrent structure and subsequently correlate with our ability to accurately fit Raptor. We then provide an empirical existence proof for BRH by training a Raptor model to recover $96\%$ of DINOv2 ImageNet-1k linear probe accuracy in only 2 blocks at equivalent runtime. Finally, we leverage our hypothesis to develop a program of Dynamical Interpretability. We find i) directional convergence into class-dependent angular basins with self-correcting trajectories under small perturbations, ii) token-specific dynamics, where cls executes sharp late reorientations while patch tokens exhibit strong late-stage coherence toward their mean direction, and iii) a collapse to low rank updates in late depth, consistent with convergence to low-dimensional attractors. Altogether, we find a compact recurrent program emerges along ViT depth, pointing to a low-complexity normative solution that enables these models to be studied through principled dynamical systems analysis.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑