arXiv(opens in a new tab)cs.LGOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.38255

ParaTTT: Parallelizing Test-Time Training Layers with Deep Memories

Noel Loo, Neehal Tumma, T. Konstantin Rusch, Mathias Lechner, Alexander Amini, Daniela Rus

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

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. Moreover, 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. Starting from a guess of the hidden-layer gradients, 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, while decoding requires no refinement iterations. We prove geometric convergence for a two-layer variant under sufficient contraction conditions. In practice, two iterations suffice. With two refinement steps at 4K context, PTTT evaluates the inner-loop trajectory 32×32\times faster than TTT-MLP with the block approximation at matched error, while the full 340M model trains 4.9×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.

github.com/ntumml20/paraTTT

1 INTRODUCTION

Softmax attention scales poorly to long contexts: its compute grows quadratically with sequence length, while its key-value cache grows linearly. Recurrent language models address both problems by processing the sequence in linear time and carrying a fixed-size state while decoding. Moreover, modern recurrent architectures such as gated linear attention, Gated DeltaNet, and Mamba-2 (Yang et al., 2024a; 2025; Dao & Gu, 2024) admit an efficiently parallelizable structure commonly referred to as the chunkwise-parallel form, in which tokens within each chunk are processed in parallel using dense matrix multiplications, while only the recurrent state is propagated sequentially across chunks. Given this scalable structure, the central question for this class of models is how to make the recurrent memory more expressive without sacrificing parallel evaluation.

Test-time training (TTT) addresses the expressivity side of this question by treating the recurrent state as the weights of a small model that learns from the sequence through online gradient descent (Sun et al., 2025). With a linear memory and a squared reconstruction loss, this recovers the delta rule of Widrow & Hoff (1960), the update used by DeltaNet (Schlag et al., 2021; Yang et al., 2024b), whereas a nonlinear memory can adapt its features as well as its readout. TTT-MLP, Titans, and

∗^{*}Equal contribution. Correspondence: ntumma@mit.edu.

Figure

Figure 1: Parallelism and approximation in nonlinear TTT. Each cell represents a hidden pre-activation gradient δzt(W)=∂ℓt/∂zt∣W\delta \mathbf{z}_t(\mathbf{W}) = \partial \ell_t / \partial \mathbf{z}_t |_{\mathbf{W}}, with the layer index omitted. Columns index tokens; downward steps mark computational dependencies, not approximation error or elapsed time. (a) Exact gradients δzt⋆\delta \mathbf{z}_t^\star use the latest online weights W^t−1\hat{\mathbf{W}}_{t-1}, including decay. (b) Block-wise TTT, as used by TTT-MLP (Sun et al., 2025) and Titans (Behrouz et al., 2025b), evaluates gradients at shared block-entry weights Wsblk\mathbf{W}_s^{\text{blk}} for s<t≤s+bs < t \leq s+b, omitting earlier within-block updates. (c) ParaTTT refines the full gradient trajectory using three chunkwise-parallel passes per round. The block size bb and refinement count NN control the respective approximations; the exact trajectory is a fixed point of the ParaTTT iteration.

LaCT (Sun et al., 2025; Behrouz et al., 2025b; Zhang et al., 2026) explore such neural memories, but their gradients depend nonlinearly on the current weights: each token changes the weights at which the next token's gradient should be evaluated, creating a sequential dependency. To recover parallelism, existing methods group gradient evaluations into blocks and evaluate every gradient in a block at the weights entering it. This creates a fidelity-speed tradeoff: larger blocks reduce the sequential depth but more coarsely approximate token-by-token learning, while smaller blocks are more faithful but require more sequential steps.

In this paper, we introduce ParaTTT (PTTT), an algorithm that evaluates an MLP-based TTT memory in parallel (Fig. 1). The difficulty in parallelizing the recurrence is the inner weight trajectory: the gradient step at each token is taken at weights that depend on every earlier step, so the trajectory cannot be computed without stepping through it sequentially. PTTT instead refines an estimate of this trajectory, represented by the gradients of the inner loss with respect to the hidden-layer pre-activations. Each refinement consists of three parallel passes: a forward pass that constructs the features implied by the current gradient estimate, a readout pass that computes each token's loss gradient with respect to its features, and a backward pass that propagates these gradients through the hidden layers to form a new estimate. Crucially, each refinement step is a composition of modified instances of existing parallel recurrences such as Gated DeltaNet (Yang et al., 2024b; 2025), Mamba-2 (Dao & Gu, 2024), or gated linear attention (Yang et al., 2024a). The exact nonlinear sequential recurrence is a fixed point of the iteration.

Our technical contributions can be summarized as follows:

  • We introduce ParaTTT (PTTT), an algorithm for parallelizing MLP-based recurrent memories of arbitrary depth, and prove geometric convergence for a two-layer variant under sufficient conditions (Section 3).

  • We demonstrate PTTT's superior speed-accuracy trade-off over the block-based evaluation of TTT-MLP: at 4K context, two PTTT refinements match the output error of TTT-MLP's block approximation while running 32×32\times faster, and full 340M models train 4.9×4.9\times faster than TTT-MLP (Sections 4.2 and 4.3).

  • At 340M and 1.3B parameters, PTTT attains lower perplexity and stronger recall on SWDE and FDA than Gated DeltaNet and Mamba-2, showing that the proposed nonlinear memory improves over the evaluated linear recurrent baselines (Section 4.1).

References (98)