paper-with-me

Papers

Test-Time Training with Next-Token Prediction

2026-06-19 · Xuan Ouyang, Zefan Cai, Junjie Hu arxiv

Next-token prediction is the self-supervised signal that trains language models, and every observed prompt token provides the same signal at test time. We study whether this signal can define the inner-loop objective for test-time training (TTT) in pretrained long-context language models. Many TTT architectures require models to be trained with test-time adaptation in mind, limiting their direct applicability to released LLM checkpoints. While recent in-place TTT methods make fast-weight adaptation possible for pretrained LLMs without redesigning the backbone, they leave a central question unresolved: what should each test-time write store? Existing recipes train the fast weight to match a learned local value proxy but they are not directly tied to the self-supervised next-token prediction signal. We introduce Test-Time Training with Next-Token Prediction (TTT-NTP), a drop-in fast-weight adaptation method for pretrained LLMs that instead supervises updates using the model's own next contextual hidden state. This makes each local write follow the same causal computation that supports next-token prediction: the value target is a pointwise linear projection of a single next-position contextual state. On RULER Full-13, averaged over 4k to 32k contexts, TTT-NTP is the only method that consistently improves the released backbone across four models spanning three families and a 0.6-8B size range, by 3.9 points on Llama-3.1-8B, 3.0 on Mistral-7B-v0.3, 4.1 on Qwen3-4B, and 2.9 on Qwen3-0.6B. On the real-world LongBench-v2 long-document QA benchmark, TTT-NTP improves over the base model by 5.6 points on Llama-3.1-8B and 3.7 on Mistral-7B-v0.3, while preserving commonsense and knowledge performance. Our code is publicly available at https://github.com/yancyou/TTT-NTP.

📄 PDF Abstract BibTeX arXiv:2606.21803

Code (0)

등록된 구현이 없습니다.

Tasks

Test-time Adaptation

Similar Papers 제목 키워드 기반

End-to-End Test-Time Training for Long Context

2025-12-29 · Arnuv Tandon, Karan Dalal, Xinhao Li, Daniel Koceja 외 arxiv

We formulate long-context language modeling as a problem in continual learning rather than architecture design. Under this formulation, we only use a standard architecture -- a Transformer with sliding-window attention. …

Continual Learning

Reinforced Fast Weights with Next-Sequence Prediction

2026-02-18 · Hee Seung Hwang, Xindi Wu, Sanghyuk Chun, Olga Russakovsky arxiv

Fast weight architectures offer a promising alternative to attention-based transformers for long-context modeling by maintaining constant memory overhead regardless of context length. However, their potential is limited …

Reinforcement LearningQuestion Answering

How Reinforcement Learning After Next-Token Prediction Facilitates Learning

2025-10-13 · Nikolaos Tsilivis, Eran Malach, Karen Ullrich, Julia Kempe arxiv

Recent advances in reasoning domains with neural networks have primarily been enabled by a training recipe that optimizes Large Language Models, previously trained to predict the next-token in a sequence, with reinforcem…

Reinforcement LearningMathematical Reasoning

In-Context Imitation Learning via Next-Token Prediction

2024-08-28 · Letian Fu, Huang Huang, Gaurav Datta, Lawrence Yunliang Chen 외

We explore how to enhance next-token prediction models to perform in-context imitation learning on a real robot, where the robot executes new tasks by interpreting contextual information provided during the input phase, …

Imitation LearningPrediction

Next Token Prediction Towards Multimodal Intelligence: A Comprehensive Survey

2024-12-16 · Liang Chen, Zekun Wang, Shuhuai Ren, Lei LI 외

Building on the foundations of language modeling in natural language processing, Next Token Prediction (NTP) has evolved into a versatile training objective for machine learning tasks across various modalities, achieving…

Language ModelingLanguage ModellingPredictionSurvey