arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2610.16268cs.LGcs.CL
收藏

已训练TTT层中的错误修正

Error Correction in Trained TTT Layers

Duke University(杜克大学)

Yuhe Hu

AI总结:

该研究分析了TTT层中预测衍生更新的作用,推导了相关梯度条件,通过干预实验明确其对模型性能的影响,指出需结合实现分析与实时干预评估测试时记忆。

摘要:

测试时训练(Test-time-training,TTT)层会在处理输入序列时更新快速权重记忆。然而,仅基于梯度的更新本身无法明确记忆如何修正现有关联。我们研究了已发布TTT实现中由预测衍生的更新的结构与经验作用。对于点积目标,我们刻画了预测误差残差的缺失情况,并确定了在重新参数化后内循环上升与下降等价的条件。对于TTT-Linear和TTT-MLP使用的基于LayerNorm的平方误差目标,我们推导了内梯度,并识别出在零ε极限下,已发布初始化时会抵消的预测衍生分量。随后,我们在三个已训练检查点上测量了完整归一化预测的贡献。在保留LayerNorm雅可比矩阵的同时移除该贡献,模型的平均梯度范数比为0.25至0.32。在《战争与和平》的100303个token上,采用局部逐token范数匹配的相同干预,使TTT-Linear-760M和1.3B的困惑度提升2.8%至2.9%,而冻结所有快速权重更新则使困惑度提升4.2至4.5倍。单独的合成测试表明,普通delta规则的覆盖依赖于步长。这些结果区分了预测衍生更新与其行为价值,说明评估测试时记忆需要同时进行实现分析和实时干预。

英文摘要:

Test-time-training (TTT) layers update fast-weight memory while processing an input sequence. A gradient-based update, however, does not by itself establish how the memory revises an existing association. We study the structure and empirical role of prediction-derived updates in released TTT implementations. For dot-product objectives, we characterize the absence of a prediction-error residual and establish conditions under which inner-loop ascent and descent are equivalent after reparameterization. For the LayerNorm-based squared-error objective used by TTT-Linear and TTT-MLP, we derive the inner gradient and identify a prediction-derived component that cancels at the released initialization in the zero-epsilon limit. We then measure the full normalized prediction's contribution on three trained checkpoints. Removing this contribution while retaining the LayerNorm Jacobian gives a mean gradient norm ratio of 0.25 to 0.32 across the models. On 100,303 tokens from War and Peace, the same intervention with local per-token norm matching raises perplexity by 2.8-2.9% on TTT-Linear-760M and 1.3B, whereas freezing all fast-weight updates raises it by factors of 4.2-4.5. Separate synthetic tests illustrate the dependence of plain delta-rule overwriting on step size. The results distinguish a prediction-derived update from its behavioral value and show why implementation analysis and live interventions are both needed to assess test-time memory.

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

↑