Imagine you’re trying to solve a complex math problem, but you’re only allowed to think about one word at a time. As soon as you speak a word, you have to flush your entire train of thought and start the next word from scratch, relying only on a transcript of what you just said.
That is, essentially, how a standard Transformer works. It computes incredibly deep, sophisticated "hidden states" for every token, but it throws them away the moment it samples a word. To "think" longer, it has to write out a massive Chain of Thought (CoT).
In their new paper, "The Temporal Residual," researchers from Princeton University introduce a way to let models keep their "deep thoughts" across tokens. They call it a Temporal Residual (TR)—a side-channel memory that carries the model's internal state from one token to the next.
TL;DR
By adding a tiny "second stream" of data that flows horizontally across tokens, researchers boosted a 4.2B parameter model's math reasoning scores by up to 13 points. This "latent feedback" allows the model to reason "in its head" (its hidden states), producing shorter, more accurate solutions with virtually zero added parameters.
What Problem Does This Paper Address?
In a standard Transformer, information only moves "up" (through layers) and "forward" (by attending to previous tokens). Crucially, the deep computation performed at the very last layer of token $t$ never reaches the early layers of token $t+1$.
If a model needs to perform a calculation that requires 100 steps of serial logic, but it only has 32 layers, it must write those steps out as text. This is why we see models generating pages of "thinking" before giving an answer. Previous attempts to fix this—called "latent feedback"—usually required training a model from scratch or adding heavy machinery that broke pre-trained models. The authors wanted a way to "retrofit" this ability onto existing, powerful models quickly and cheaply.
Methods
The authors introduce a Temporal Residual. Think of it as a second highway ($B$) running alongside the main residual stream ($A$).
- The Second Stream: Every sublayer in the Transformer now reads from a weighted combination of both streams and writes its output back to both.
- The Carry-Over: When the model finishes computing a token, the final state of stream $B$ is normalized and becomes the starting state for stream $B$ in the next token.
- Minimalist Design: This adds almost no complexity. For a 4.2B parameter model, they added only 2,752 parameters—mostly just scalars (single numbers) that tell the model how much to "read" or "write" to the new stream.
- Retrofitting: They initialize the model so that, at step zero, the second stream is ignored. This allows the model to start from its pre-trained perfection and gradually learn how to use its new "memory."
Datasets
The team retrofitted Qwen3.5-4B-Base. They trained it on:
- 3B tokens of general web, math, and instruction text.
- 2B tokens of reasoning traces (Chain of Thought data).
They evaluated the model on "Competition Math" suites (AIME 2024, AIME 2025, AMC 2023) and a "Main Suite" of standard benchmarks including GSM8K, MATH500, and GPQA.
Key Insights and Ideas
- The "Separate Stream" is Vital: Previous methods tried to shove feedback back into the existing residual stream. The authors found this is like trying to merge onto a highway where everyone is already going 80 mph—it causes a wreck. A separate stream lets the model develop its own "internal language" without disturbing the pre-trained features.
- Middle Layers are the "Thinkers": Interestingly, the model learned to use the middle layers most heavily for this cross-token communication. The top layers barely write to the carried state at all.
- Hidden Reasoning: This is the "aha" moment. The researchers replaced the model's reasoning text with "filler tokens" (essentially just saying "......"). Even with no visible reasoning on the screen, the model's accuracy on GSM8K rose from 21% to 40%. It was doing the math in the Temporal Residual stream—literally reasoning in its "head."
Key Results
- Massive Reasoning Gains: On the grueling AIME 2025 math competition, the TR model beat the standard version by 12.6 points.
- Concise Solutions: Because the model can do some of the heavy lifting internally, its written solutions were 9–16% shorter.
- Efficiency: Despite the extra "thinking," the model remains more accurate than a standard model even when you control for the extra training compute used.
Limitations and Future Work
- Training Cost: Training with TR requires multiple "passes" over the data to simulate the recurrence, making it about 3x more expensive per token during the fine-tuning phase.
- Compute Matching: On simpler tasks (the "Main Suite"), the gains were less dramatic once training compute was matched. The TR shines most on "hard" reasoning.
- Scaling: The study focused on a 4B parameter model. Whether these "latent thoughts" scale linearly to 70B or 400B parameter giants remains an open (and exciting) question.
The takeaway? We might be entering an era where LLMs don't just "predict the next word," but actually maintain a continuous, deep internal monologue that we never see.
Summary updated