跳到正文
arXiv (AI + Vision + Imaging)· Noel Loo, Neehal Tumma, T. Konstantin Rusch, Mathias Lechner, Alexander Amini, Daniela Rus·· 9 天前AI 评分38

ParaTTT:用深度记忆并行化测试时训练层

ParaTTT: Parallelizing Test-Time Training Layers with Deep Memories

AI 导读

ParaTTT(PTTT)通过迭代精化内循环梯度轨迹估计,将任意深度非线性记忆的TTT层并行化,每次精化包含三次分块并行计算。在4K上下文、两步精化下,其内循环轨迹评估比采用块近似的TTT-MLP快32倍且误差相当,完整340M模型训练快4.9倍。340M与1.3B参数模型在语言建模困惑度和零样本准确率上匹配或超过Gated DeltaNet与Mamba-2,召回表现优于线性循环。

正文 · 原文

arXiv:2610.38255v2 Announce Type: replace Abstract: Test-time training (TTT) layers replace the linear fast-weight memory of modern recurrent architectures with a small neural network trained online by gradient descent. This nonlinear memory is more expressive than the linear memories of Gated DeltaNet and Mamba-2, but is difficult to parallelize: existing implementations such as TTT-MLP rely on sequential, block-wise weight updates that run several times slower than chunkwise-parallel linear recurrences. Their block-wise execution only approximates the token-by-token online recurrence, whereas linear recurrences admit an exact chunkwise-parallel evaluation. We introduce ParaTTT (PTTT), an algorithm for parallelizing arbitrarily deep nonlinear memories by iteratively refining estimates of the inner-loop gradient trajectory. Each refinement consists of three chunkwise-parallel passes: a forward pass that evaluates the resulting feature trajectory, an exact gated-delta-rule pass that computes the readout trajectory and its feature gradients, and a backward pass that propagates these gradients into a new estimate. The exact online gradient descent recurrence is a fixed point of the iteration. Training and prefill approximate this recurrence with a finite number of iterations, while decoding applies the exact token-by-token update without refinement. We prove geometric convergence for a two-layer variant under sufficient contraction conditions. With two refinement steps at 4K context, PTTT evaluates the inner-loop trajectory $32\times$ faster than TTT-MLP with the block approximation at matched error, while the full 340M model trains $4.9\times$ faster. Models trained at 340M and 1.3B parameters match or exceed Gated DeltaNet and Mamba-2 and remain competitive with same-size Transformers on language-modeling perplexity and zero-shot accuracy, with better recall than the linear recurrences.

来源:arXiv (AI + Vision + Imaging) · arxiv.org