arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.16730stat.MLcs.AIcs.LG
收藏

注意力只是耦合的另一个名字?:关于层级预训练的快速-慢速ODE视角

Attention is Just Another Name for Coupling? A Fast-Slow ODE Perspective on Hierarchical Pretraining

Independent scholar(独立学者)

Zhengyuan Gao

AI总结:

本文提出一种快慢ODE视角,将因果自注意力视为耦合机制,并引入一个通过零初始化门控反馈到快路径的慢子系统,在理论证明和实验验证中揭示了其与主方程平稳分布的联系。

摘要:

因果自注意力是一种耦合机制:每个token的隐藏状态通过同一时间尺度上前置token的学习混合来更新。本文提出一个疑问:是否存在第二个时间上更慢的耦合——一个在序列的时间下采样视图上运行并通过零初始化门控反馈到快路径的慢子系统——来补充它?该问题以奇异摄动常微分方程(ODE)的语言提出,其中快变量$x$以token速率演化,慢变量$y$每$P$个token更新一次,时间尺度比$\varepsilon = 1/P$通过因果块均值池化在结构上强制执行。\n本文将快慢ODE形式具体化为一个神经网络:一个在$T$个token上的标准因果注意力快路径,一个在$T/P$个池化token上的全注意力慢路径(每层便宜$P^2$倍),以及一个零初始化的加法门控。此外,在快动力学的线性生成器假设下,我们证明了平衡流形$x = \phi(y)$恰好是主方程(ME)的平稳分布$p_{\mathrm{st}}(y)$;在该机制下,学习的MLP $\phi_\theta(y)$是其变分近似(训练块不是生成器,因此该恒等式是结构极限,而非对训练网络的断言)。实验上,在50万token时,耦合是中性的——门控保持关闭,耦合和冻结消融在运行间噪声范围内——其墙钟成本与密集基线相当。贡献在于精确的、带有间隙标记的映射本身,而非性能提升。

英文摘要:

We re-interpret Transformer pretraining as a fast-slow, singularly perturbed flow along depth, with untied weights as its non-autonomous feature. The linearised dynamics is a depth-ordered product of layer maps. Along a token-homogeneous reference trajectory, the linearised layer factorises along the eigenbasis of a frozen attention kernel. Past a computable saturation depth, the flow factors through the block coarse-graining -- in other words, running the layers is running the coarse variable, dually. Weight perturbations supported on the decaying bundle move neither the persistent component of the distinguished trajectory nor the frozen kernel to first order, so the framework partitions parameter space into visible and invisible directions, with the cross-block coupling of the slow path sitting entirely on the visible side. How large a gate the slow path can carry is bounded by a stability margin. On the data side: if block emissions follow an exponential family, block-mean pooling captures all the information the slow path can use; but if neighbouring blocks carry no shared structure, no cross-block channel can help the prediction, and the gate amplitude is invisible in the prediction risk. Stability delimits what the architecture may do; the data decides what it will.

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

↑