Trace as State: Reasoning Traces as Conditional States for Long-Context Transformers
cs.CL
Submitted: 2026-09-02
Updated: 2026-09-02
Comments: preprint
Code: https://github.com/xz-keg/Novel-Understanding-Bench
License: http://creativecommons.org/licenses/by/4.0/
The gist: Transformers process information causally, but long-context reasoning may depend on task state discovered only later.
Terminology
Abstract
Transformers process information causally, but long-context reasoning may depend on task state discovered only later. We formalize this mismatch through conditional state update tasks. For causal state update processors, providing the condition first can require exponentially less memory in the worst case than providing it last. Motivated by this principle, we introduce Trace as State. We use collected reasoning traces as a textual proxy for task state and place it before the long-context block on a fresh pass, allowing information derived previously to guide rereading. We conduct extensive experiments on Trace as State and Trace Append, a matched control that uses the same task state proxy but put it after the context. Across three models and three long-context datasets, Trace as State outperforms Trace Append in 26 of 27 reported combinations of model, task, and metric. On GraphWalks Parents, exact match lifts DeepSeek V4 Pro Preview from 29.2% on the initial pass and 43.0% with Trace Appendto 81.8% with Trace as State, and from 66.4% and 83.2% to 100.0% for GLM-5.2. These results show that placing traces before the context can improve long-context reasoning while retaining the causal transformer structure.
Sources
- DeepSeek-V3.2: Pushing the Frontier of Open Large Language Models
- DeepSeek-V4: Towards Highly Efficient Million-Token Context Intelligence
- State over Tokens: Characterizing the Role of Reasoning Tokens
- GLM-5: from Vibe Coding to Agentic Engineering
- Show Your Work: Scratchpads for Intermediate Computation with Language Models
- Qwen3 Technical Report
- ReContext: Recursive Evidence Replay as LLM Harness for Long-Context Reasoning
- Michelangelo: Long Context Evaluations Beyond Haystacks via Latent Structure Queries
Related papers
- Exploring Solution Divergence and Its Effect on Large Language Model Problem Solving
- Ishigaki-IDS-Bench: A Benchmark for Generating Information Delivery Specification from BIM Information Requirements
- Subliminal Steering: Stronger Encoding of Hidden Signals
- MedStruct-S: A Benchmark for Key Discovery, Key-Conditioned QA and Semi-Structured Extraction from OCR Clinical Reports
- The End of Transformers? On Challenging Attention and the Rise of Sub-Quadratic Architectures
- Untangling the Mechanisms of Misleading Context in Medical Question Answering