Skip to content

Trace as State: Reasoning Traces as Conditional States for Long-Context Transformers

Sep 2026 · 1 citation · 33 references
Computer Science

TL;DR

Results show that placing traces before the context can improve long-context reasoning while retaining the causal transformer structure, and Trace as State outperforms Trace Append in 26 of 27 reported combinations of model, task, and metric.

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.

View source

Similar papers

#artificial intelligence Preprint Sep 2026

EvolveScaler: Synthesizing Information-Evolution Contexts via Executable State Machines and Natural-Language Rendering

This work introduces EvolveScaler, a code-driven framework that defines information evolution before rendering it as natural language, and shows that code-driven IE synthesis provides both challenging evaluation and transferable training supervision.

Ziliang Zhao, Ze-Nan Xu, Shuting Wang et al. · 0 citations
Preprint Aug 2026

Automata from Agent Traces: Failure and Next-Step Prediction

Behavioral topology is shaped more by the deployment harness than by the LLM, providing a model-agnostic structural primitive for safety auditing and runtime monitoring, and addresses both prediction goals.

Seonglae Cho, F. Fernandez, Umar Mohammed et al. · 3 citations
#artificial intelligence Preprint Sep 2026

Dude, Where's My State? Execution Information Requirements for Stateful Agents

The EIR is introduced, a lower bound on the information that must remain accessible for correct completion under specified task and access conditions and LACUNA is developed, a framework that generates tasks with known dependencies and varies information demand, retention, and recovery separately from the difficulty of...

N. Mehrotra, Ashish Tiwari, Priyanshu Gupta et al. · 0 citations
#artificial intelligence Preprint Sep 2026

FlowState: Execution State as Memory for Long-Horizon LLM Agents

Compared with a full-context baseline using the same DeepSeek-V4-Flash model, FlowState improves the average success rate on MemoryArena and the average pass rate on $\tau^3$-Bench by 4.55 and 13.95 percentage points, respectively, while reducing total token consumption.

Ming-Hao Li, Bang-Yan Li, Zi-Fan Wang et al. · 0 citations
Preprint Aug 2026

Can Agent Memory Systems Track Evolving State?

StateMem is presented, a state-first memory method that explicitly tracks supersession and relational dependencies, and it is shown it improves current-state accuracy over the strongest same-backbone baseline and over the strongest memory system, while remaining competitive with the long-context baselines.

Xin-Yi Fan, Miri Liu, Ruozhen Yang et al. · 5 citations · ⚡1
#artificial intelligence Preprint Sep 2026

Forgetting Without Restarting: Execution-State Unlearning for Stateful LLM Agents

Long-running LLM agents are stateful: beyond the transcript they accrete compressed summaries, plaintext memory, pending tool plans, and, under every serving API, a KV cache. Yet today's"forget"operations delete a plaintext memory record and stop, leaving every artifact derived from the revoked information intact. We f...

Chao Yao, Yang-Bo Wei, Zhen Huang et al. · 1 citation

Related blog posts

MIT News · Artificial Intelligence Sep 24, 2026

Estimating suicide risk from text

A new language-processing tool could help identify the highest-risk individuals from natural language, enabling swifter interventions.

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.