TL;DR
ReFlux is a learnable feedback mechanism that allows LLMs to "re-read" tokens with the benefit of insights gained in deeper layers. By recycling the depth increment ($\Delta$)—the specific new information computed between layers—rather than the full hidden state, ReFlux achieves significant gains in reasoning (up to +4.7 points on multi-hop tasks) while maintaining the base model's theoretical FLOP count in its streaming mode.
What Problem Does This Paper Address?
Standard Transformer models process information in a strict one-way street: from shallow layers to deep layers. Once a shallow layer has processed a token, it never gets to "re-interpret" that token based on what the deeper layers eventually discover. This is a problem for complex reasoning, where a later realization might change how earlier evidence should have been understood.
Existing attempts to fix this usually involve:
- Recurrence/Looping: Re-running the model multiple times, which is computationally expensive.
- Activation Steering: Manually nudging the model's internal states, which is often static and doesn't adapt well to different inputs.
- Recirculation: Writing full deep states back to earlier layers, which the authors argue is redundant and inefficient.
Methods
The authors introduce ReFlux, a learnable, sparse feedback graph added to frozen, pre-trained Transformers.
The Key Innovation: The $\Delta$ (Delta)
Instead of feeding back the entire hidden state from a deep layer ($z_s$), ReFlux feeds back only the depth increment: $\Delta = z_s - z_d$. This represents the "fresh" computation added by the intervening layers. The authors found that full-state feedback quickly becomes redundant, whereas the $\Delta$ signal is cleaner, more composable, and continues to provide benefits as more feedback routes are added.
The Architecture
- Router: A lightweight MLP that looks at the current context and decides which "edges" (paths from deep to shallow layers) to activate and how much "strength" to give them.
- Synchronous Execution: The model does a full pass, records the $\Delta$, and then does a second pass on the same token to refine it.
- Streaming Execution: To save compute, the $\Delta$ from the previous token is carried forward to the current token. This allows the model to benefit from "future" insights without a second pass, preserving 1x backbone FLOPs.
- Normalization Repair: The authors identified that simply adding feedback can cause "norm shock," especially in Pre-LN models like Qwen. They introduced a norm-preserving projection to keep the residual stream stable.
Datasets
- Training: The router is trained on a small "calibration mixture" of C4 (web text), arXiv (science), and PG19 (books).
- Language Modeling Evaluation: 10 diverse corpora including LAMBADA, PubMed, GovReport, and Newsroom.
- Reasoning Evaluation: 8 benchmarks including MMLU, GSM8K, and multi-hop tasks like HotpotQA and 2WikiMultiHopQA.
Key Insights and Ideas
- Redundancy is the Enemy: Deeper layers often contain a lot of the same information as shallower layers. By subtracting the shallow state from the deep state, ReFlux isolates the "aha!" moment.
- Geometry of Depth: The authors show that adjacent layers are very similar, but updates accumulate over depth. The best feedback comes from "stars"—specific deep-to-shallow pairs that provide the most novel information.
- Streaming works: You don't necessarily need to revisit the exact same token. Carrying the "interpretation" of the prefix forward to help process the next token provides nearly the same accuracy boost as a full second pass.
- Multi-hop Synergy: ReFlux is particularly powerful for tasks where evidence is scattered. It helps the model "bridge" information across long contexts by making deep insights available to the shallow layers processing subsequent parts of the text.
Key Results
- Reasoning Gains: ReFlux improved average reasoning accuracy by 2.1–2.3 points across models like Gemma3 and Qwen3.
- Multi-hop Excellence: On complex tasks like 2WikiMultiHopQA, gains reached 4.7 points, outperforming standard chain-of-thought (CoT) in some "access-bound" scenarios.
- Efficiency: Streaming ReFlux maintains 1x theoretical backbone FLOPs and only adds a negligible 2-8% overhead to wall-clock decoding time.
- Perplexity: Consistently reduced perplexity across all 10 tested language-modeling corpora.
Limitations and Future Work
- Router Training: While the backbone is frozen, the router still requires a small amount of training on calibration data.
- Inference Overhead: Although FLOP-neutral, the streaming mode does introduce a slight latency increase due to the extra routing operations and memory management.
- Integration: The authors suggest that while ReFlux works as a post-hoc "patch," integrating this adaptive $\Delta$-routing directly into pre-training could unlock even more potential.
Summary updated