cs.LGAug 21, 2026

Rethinking Expressivity and Efficiency in Test-Time Training

Authors: Zeyun Zhong, Joya Chen, Manuel Martin, Frederik Diederichs, Juergen Gall, Juergen Beyerer

Organizations: Karlsruhe Institute of Technology (KIT) · Fraunhofer IOSB · National University of Singapore · Lamarr Institute for Machine Learning and Artificial Intelligence · 

Abstract

Test-Time Training (TTT) enables long-context processing via continuous weight updates during inference, but current methods struggle to balance the expressivity of per-token update dynamics with the hardware efficiency of chunk-wise approximations. We propose E2^2-TTT (Expressive and Efficient TTT) to bridge this gap. Under the standard approximation of taking gradients at the chunk-start weights, we derive a closed-form state transition that exactly reproduces the chunk-end fast-weight and momentum states of the per-token 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 E2^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×8\times the training context length. Meanwhile, E2^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.

Figures & tables

Appendix figures & tables10 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Select-TTT: Query-Conditioned Selective Fast Weight Updates for In-Place Test-Time Training

    Oct 27, 2026Yue Wu, Yang Zhang, Weinan Gan +4Test-Time TrainingInference-Time Adaptation of Language Models

  2. Test-Time Training with Next-Token Prediction

    Jun 19, 2026Xuan Ouyang, Zefan Cai, Junjie HuLong-Context Language ModelingNext-Token Prediction

  3. Universal Test-Time Training

    Oct 4, 2026Zefan Cai, Qinzhe Hu, Ziqiao Ma +2Memory-Augmented Language ModelsRecurrent Transformers