Test-Time Training Done Right

Tian-Yuan Zhang, Sai Bi, Yi-Cong Hong, Kai Zhang, Fujun Luan, Song-Lin Yang, Kalyan Sunkavalli, William T. Freeman, Hao Tan

arXiv:2505.23884 · 2026-11-15 공개 · arXiv · PDF

vision-language long-context model-scaling video-diffusion test-time-training fast-weights auto-regressive large-chunk

Abstract

Test-Time Training (TTT) models context dependencies by adapting part of the model's weights (referred to as fast weights) during inference. This fast weight, akin to recurrent states in RNNs, stores temporary memories of past tokens in the current sequence. Existing TTT methods struggled to show effectiveness in handling long-context data, due to their inefficiency on modern GPUs. The TTT layers in many of these approaches operate with extremely low FLOPs utilization (often<5%) because they deliberately apply small online minibatch sizes (e.g., updating fast weights every 16 or 64 tokens). Moreover, a small minibatch implies fine-grained block-wise causal dependencies in the data, unsuitable for data beyond 1D ordered sequences, like sets or N-dimensional grids such as images or videos. In contrast, we pursue the opposite direction by using an extremely large chunk update, ranging from 2K to 1M tokens across tasks of varying modalities, which we refer to as Large Chunk Test-Time Training (LaCT). It improves hardware utilization by orders of magnitude, and more importantly, facilitates scaling of nonlinear state size (up to 40% of model parameters), hence substantially improving state capacity, all without requiring cumbersome and error-prone kernel implementations. It also allows easy integration of sophisticated optimizers, e.g. Muon for online updates. We validate our approach across diverse modalities and tasks, including novel view synthesis with image set, language models, and auto-regressive video diffusion. Our approach can scale up to 14B-parameter AR video diffusion model on sequences up to 56K tokens. In our longest sequence experiment, we perform novel view synthesis with 1 million context length. We hope this work will inspire and accelerate new research in the field of long-context modeling and test-time training. Website: https://tianyuanzhang.com/projects/ttt-done-right

한국어 요약

한 줄 요약

LaCT는 2K~1M 토큰 단위의 대규모 청크를 활용해 TTT의 하드웨어 효율성과 상태 용량을 대폭 향상한 새로운 테스트-타임 트레이닝 방법이다.

핵심 기여도

핵심 아이디어

기존 TTT는 16~64 토큰 단위로 빠르게 가중치를 업데이트하는 방식을 사용했지만, 이는 GPU 병렬성 저하와 계산 효율성 저하를 초래했다. LaCT는 반대로 2K~1M 토큰 크기의 대규모 청크를 업데이트 단위로 사용함으로써 하드웨어 활용률을 극대화한다. 청크 내부 토큰은 순서가 무시되며, 윈도우 어텐션(window attention)을 통해 지역적 의존성을 모델링한다. 이는 N차원 데이터(이미지, 비디오) 처리에도 자연스럽게 확장 가능하다. 또한, 비선형 상태 크기 확장과 Muon 옵티마이저 통합을 통해 메모리 용량과 최적화 효율성을 동시에 향상시킨다.

기술적 접근법

주요 결과

의의 및 한계

LaCT는 기존 TTT의 하드웨어 효율성 문제를 극복하고, 다양한 데이터 구조(이미지, 비디오, 언어)에 걸쳐 확장 가능한 테스트-타임 트레이닝 프레임워크를 제시한다. 특히, 복잡한 커스텀 커널 없이도 높은 성능을 달성함으로써 연구 접근성을 높인다. 다만, 청크 크기와 윈도우 어텐션의 조합이 모든 데이터 유형에 최적일 수는 없으며, 청크 내부의 순서 무시가 일부 시퀀스 의존성을 해칠 가능성도 존재한다.

실용적 활용

LaCT는 대규모 비디오 생성, 멀티모달 이미지 처리, 긴 텍스트 모델링 등에서 실용적 적용이 가능하다. 특히, GPU 효율성 향상으로 클라우드 기반 대규모 모델 추론에 유리하며, 연구자들이 복잡한 커스텀 커널 없이도 다양한 아키텍처 실험을 수행할 수 있도록 지원한다.