测试时训练的决策论视角:何时、多远以及哪些方向进行自适应
A Decision-Theoretic View of Test-Time Training: When, How Far, and Which Directions to Adapt
AI总结:
通过决策论将测试时训练视为核机制下的隐式贝叶斯推断,揭示了更新步长和子空间选择对性能的影响,并提出了自适应策略、PAC-Bayes保证和最优子空间选择规则。
摘要:
测试时训练(TTT)通过参数更新使预训练模型适应每个提示,提高了在预训练到测试分布偏移下的准确性。然而,其性能常常受到不稳定性和对超参数(如更新步长和子空间)敏感性的影响。我们通过决策论的视角解释这一行为,将TTT视为核机制下的隐式贝叶斯推断。在高斯过程基准下,我们表明当更新与提示的信噪比谱匹配并与查询相关的特征方向对齐时,TTT能降低预测误差。这一视角支撑了以下结果:(1)我们展示了固定更新步长和子空间在分布偏移下失败的情况,从而激励自适应策略;(2)我们证明通过提示证据选择更新步长具有对抗过拟合的PAC-Bayes保证;(3)我们在线性-高斯校正模型下刻画了贝叶斯最优更新子空间,从而为选择Transformer块和头提供了评分规则。我们的理论有助于解释TTT的经验不稳定性,为何时、多远以及哪些方向进行自适应提供了原则性指导。
英文摘要:
Test-time training (TTT) adapts a pretrained model to each prompt via parameter updates, improving accuracy under pretraining-to-test distribution shifts. Yet, its performance often suffers from instability and sensitivity to hyperparameters such as update steps and subspace. We explain this behavior through a decision-theoretic lens, treating TTT as implicit Bayesian inference in the kernel regime. Under a Gaussian process benchmark, we show that TTT reduces prediction error when updates are spectrally matched to the prompt's signal-to-noise ratio and aligned with query-relevant eigen-directions. This perspective underpins the following results: (1) we show when fixed update steps and subspaces fail under distribution shifts, motivating adaptive strategies; (2) we prove that selecting update steps via prompt evidence admits a PAC-Bayes guarantee against overfitting; and (3) we characterize the Bayes-optimal update subspace under a linear-Gaussian correction model, yielding a scoring rule for selecting Transformer blocks and heads. Our theory helps explain the empirical instability of TTT, taking a step toward principled guidance for when, how far, and which directions to adapt.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。