Rethinking Expressivity and Efficiency in Test-Time Training

Zeyun Zhong, Joya Chen, Manuel Martin, Frederik Diederichs, Juergen Gall +1 more
8/21/2026
cs.LG

Official code: zeyun-zhong/E2-TTT (5 stars, last commit 2026-08-30).

Abstract

Test-Time Training (TTT) enables long-context processing via continuous weight updates during inference, but current methods struggle to balance the hardware efficiency of chunk-wise approximations with the expressivity of per-token update dynamics such as learning rate and momentum. We propose E$^2$-TTT (Expressive and Efficient TTT) to bridge this gap.

Show full abstract

Following prior chunk-wise TTT methods, we compute all gradients within a chunk at the chunk-start weights. Under this setting, we derive a closed-form chunk update that retains these per-token dynamics and exactly reproduces the chunk-end state of the corresponding token-wise recurrence. This enables fully parallelized chunk-level training while preserving the temporal structure of the update rule that prior chunk-wise methods discard. We validate E$^2$-TTT by training models up to 1.3B parameters from scratch. It performs on par with previous TTT and hybrid attention baselines in language modeling while outperforming them on in-context retrieval. Its advantage is most pronounced in length extrapolation: on the standard "Needle in a Haystack" passkey test, it retains over 90% accuracy at $8\times$ the training context length. Meanwhile, E$^2$-TTT can match the training throughput of efficient chunk-wise methods, demonstrating that it effectively reconciles expressivity with efficiency. The code is available at https://github.com/zeyun-zhong/E2-TTT.

View on arXivView PDF

Code Implementations(1)

zeyun-zhong/E2-TTTOfficial100%

Official implementation of Rethinking Expressivity and Efficiency in Test-Time Training

50Aug 16, 20263 months agoNOASSERTION
fast-weightslanguage-modelsubquadratic-attentiontest-time-training

Similar Papers

Cite this paper

@article{zhong2026rethinking,
  title  = {Rethinking Expressivity and Efficiency in Test-Time Training},
  author = {Zeyun Zhong and Joya Chen and Manuel Martin and Frederik Diederichs and Juergen Gall and Juergen Beyerer},
  year   = {2026},
  eprint = {2608.21308},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2608.21308v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2608.21308.svg)](https://codeofpaper.com/paper/2608.21308)

Discussion