The Temporal Residual: Fast and Effective Retrofitting of Latent Feedback into Pretrained Language Models

Ziyang Cai, Xingyu Zhu, Sanjeev Arora
11/23/2026
cs.CLcs.LG

No confident code implementation found for this paper.

Abstract

A transformer language model computes a deep hidden state for every token but uses it only to sample that token. Existing latent-feedback designs, which feed hidden states back across tokens, are mostly built in during pretraining and gain little when added to a pretrained model.

Show full abstract

We introduce the temporal residual, a second residual stream that every sublayer reads and writes and that is carried from each token to the next. It adds 2,752 parameters to a 4.2B-parameter model and starts exactly at the pretrained network. Retrofitted onto Qwen3.5-4B-Base with 5B tokens of training, it beats a standard model trained on the same data by 7, 13 and 5 points on AIME 2024, AIME 2025 and AMC 2023, writes shorter solutions, and stays ahead at matched training compute. The separate stream matters: prior designs that feed state into the existing stream recover at most 40% of the gain when retrofitted. Validation loss can mislead: the recipe with the lowest loss gains nothing at decoding. Trained with filler tokens in place of reasoning, the model reasons in its hidden state: its GSM8K accuracy with no visible reasoning rises from 21% to 40%, and falls back when the carried state is zeroed.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{cai2026temporal,
  title  = {The Temporal Residual: Fast and Effective Retrofitting of Latent Feedback into Pretrained Language Models},
  author = {Ziyang Cai and Xingyu Zhu and Sanjeev Arora},
  year   = {2026},
  eprint = {2611.29843},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2611.29843v1}
}

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/2611.29843.svg)](https://codeofpaper.com/paper/2611.29843)

Discussion