Learning to Read Events for Exact State Tracking with Frozen Language Models

Jeonghoon LeearXiv 2026

TL;DR

Large Language Models (LLMs) are surprisingly good at reading individual events but struggle to track state over long sequences due to fundamental computational limits. This paper introduces an "Exact State Layer" (ESL) that splits the work: a frozen LLM extracts local transitions, while an external integer register handles the composition. This hybrid approach achieves near-perfect accuracy on massive event streams (43,000+ events) while reducing costs and latency by over 50%.

What Problem Does This Paper Address?

State tracking is the ability to maintain an accurate "world model" as new information arrives—for example, knowing which person is in which room after a thousand swaps, or the current value of a variable after a long series of code edits.

The authors highlight a structural difficulty: the state after event $t$ depends on every single event before it. Theoretically, fixed-depth transformers belong to the complexity class $\mathrm{TC}^0$. However, certain state-tracking tasks, like the "word problem" for the non-solvable group $S_5$ (permutations of five items), are $\mathrm{NC}^1$-complete. Under standard complexity conjectures ($\mathrm{TC}^0 \neq \mathrm{NC}^1$), a standard transformer cannot track such states over arbitrarily long inputs. While Chain-of-Thought (CoT) provides the necessary sequential computation to bypass this, it is prohibitively slow and expensive for long streams.

Methods

The core proposal is to split the work at the boundary between perception and logic. Instead of asking the LLM to "think" through the state change, the authors use it as a high-fidelity reader.

The system, called an Exact State Layer (ESL), consists of:

  1. The Reader: A frozen LLM. The authors tested two paths:
  2. Path A: A small "selector" head trained on the intermediate activations of a self-hosted model (e.g., Qwen 0.8B).
  3. Path B: Prompting an API-based model (e.g., Claude 3.5 Sonnet) to extract transitions into a structured format like JSON.
  4. The Register: An external integer-based system that composes transitions using simple table lookups. Because it uses integers, it avoids the floating-point drift or "fuzzy" logic of neural networks.
  5. Commit Policy: A rule-based system that uses the model's confidence to decide how to update the state. If the model is uncertain, the system can "flag" the state as provisional or maintain a "candidate set" of possible states until more information (an anchor) arrives.
Figure 2: The split, drawn along the input from left to right. Each event is followed by a trigger token. Inside the frozen model a selector scores possible transitions from intermediate-layer features aligned to each event boundary, all obtained in one prefill pass. The two highest scores determine the confidence value. Outside the model a commit policy chooses an exact, flagged or set-valued transition, and an exact integer register composes the transitions; the resulting status indicates which downstream actions are permitted. The commit labels shown are an example. The complexity argument in section 1 concerns arbitrary-length products in 𝑆5 for fixed-depth, log-precision models.

Datasets

The authors evaluated the system on several challenging tasks:

  • $S_5$ Permutations: A synthetic task involving products of permutations of five items, specifically chosen for its theoretical difficulty.
  • Room-Swap Task: Documents describing a series of people swapping rooms (100 to 1,000 events).
  • StateBench: A third-party hierarchy of state-tracking tasks.
  • Issue-Tracker Records: 500 free-form comments from Apache projects, testing the reader's ability to identify state changes in natural language prose.

Key Insights and Ideas

  • Small Models, Big Results: A tiny 0.8B parameter model equipped with a register can outperform a 27B model attempting the same task via reasoning. The 0.8B model successfully tracked state across windows of 43,687 events, a length where reasoning-based models completely collapse.
  • The Cost of "Thinking": CoT is essentially the model trying to simulate a register in its output tokens. By moving this logic to an external register, the authors achieved a "speedup of 13.0x" for Sonnet 5.5 on 1,000-event tasks.
  • Confidence is a Safety Valve: By explicitly tracking uncertainty (the "gap" between the top two predictions), the system can avoid committing to a wrong state. This prevents a single misread from corrupting the entire downstream state history.

Key Results

The "split" approach dominated reasoning-alone baselines across the board:

  • Accuracy: On 1,000-event room-swap documents, most models failed when reasoning alone. With the ESL, all seven tested models solved 5/5 documents perfectly.
  • Efficiency: For GPT-6.1 Sol, the median wall-clock time for a 1,000-event document dropped from 313.5 seconds to 28.0 seconds.
  • Cost: Mean cost per document fell by 55% for Sonnet 5.5 and 44% for GPT-6.1 Sol because the models no longer needed to generate thousands of reasoning tokens.
Figure 1: Exact final state on the room-swap task, an 𝑆5 word problem: documents answered exactly, of five per length. Orange: the model reasoning alone (Sonnet with adaptive thinking; GPT models at effort high; the open models with thinking on, temperature 1.0); darker cells have more documents wrong. Blue: extraction and the register, with no chain of thought requested (thinking off or the lowest effort accepted; the open models at temperature 0; at that lowest setting GPT-6 Luna still produced reasoning tokens, a median of 3,431 per 1,000-event document). Gray row: a null that answers the starting rooms without reading the document; it is right only on the one 1,000-event document that happened, by chance, to end where it started.
Visualizing the massive reduction in tokens and time when using the split approach.

Limitations and Future Work

  • Algebraic Requirement: This method works best when the state lives in a well-defined "finite algebra" (like permutations or field edits). It is less effective for "free conversation" where the state is ambiguous or lacks a clear composition rule.
  • Hardware Sensitivity: The authors noted that a "selector" trained on one machine might see a slight drop in accuracy on another due to subtle differences in numeric precision, suggesting that "certificates" of accuracy should be host-specific.
  • Future Directions: The authors suggest exploring how this "commit policy" could be integrated into dialogue systems (like MultiWOZ) to prevent models from confidently hallucinating incorrect user states.

Summary updated

BibTeX
@misc{lee2026learning,
  author = {Jeonghoon Lee},
  title = {{Learning to Read Events for Exact State Tracking with Frozen Language Models}},
  year = {2026},
  eprint = {2611.25211},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.25211},
}
Figure