Hugging FaceKyle WiggersBenchmark
StateBench: Testing how language models track state changes over long documents
Summary
StateBench is a benchmark for evaluating how language models track state changes in long documents, a capability underlying tasks from reading code to following stories. It defines four difficulty levels: R-trivial, aperiodic, soluble, and general finite, each permitting different types of variable assignment. Pretrained models performed well on R-trivial but lost accuracy on aperiodic problems as inputs grew and stayed at chance on general finite problems, with format affecting results. Frontier models like Gemini 3.8 Flash, Claude Opus 5.5, and GPT-6 Sol and Luna also struggled on harder levels, with accuracy dropping to 13% or lower. When trained directly, Gated DeltaNet and hybrid models generalized to sequences up to 250 times training length, while transformers never learned the hardest level, suggesting architectural limits; open questions remain about handling new entities over time.
Context
Existing state-tracking benchmarks focus on the hardest cases, but researchers need to understand how different architectures handle state tracking across a range of complexity levels, from simple immutable assignments to complex reference-based updates.
Approach / What changed
StateBench defines four difficulty levels (R-trivial, aperiodic, soluble, general finite) based on Krohn–Rhodes theory, each permitting different types of variable assignment operations. The benchmark tests models on sequences of assignments and evaluates their ability to track final variable values across varying input lengths.
Takeaways
Pretrained transformers and hybrid models perform well on R-trivial state tracking but lose accuracy on aperiodic problems as input length increases and remain at chance on general finite problems.
Frontier models such as Gemini 3.8 Flash, Claude Opus 5.5, and GPT-6 Sol and Luna achieve high accuracy on R-trivial and aperiodic problems but accuracy drops sharply on soluble and general finite problems, falling to 13% or lower on the longest inputs.
When trained directly on StateBench, Gated DeltaNet and hybrid models generalize to sequences up to 250 times longer than training, while transformers never learn the hardest general finite level, indicating architectural limitations.
FAQ
What are the four difficulty levels in StateBench?
StateBench defines four levels: R-trivial (immutable assignment), aperiodic (reassignment by value), soluble (self-referential updates), and general finite (assignment by reference). These levels are based on Krohn–Rhodes theory and permit increasingly complex state update operations.
How do frontier models perform on StateBench?
Frontier models like Gemini 3.8 Flash, Claude Opus 5.5, and GPT-6 Sol and Luna perform well on R-trivial and aperiodic problems but accuracy falls sharply on soluble and general finite problems, dropping to 13% or lower on the longest inputs. This is likely due to sensitivity, as more steps can affect the final answer.
Can recurrent and hybrid architectures handle state tracking better than transformers?
Yes, when trained directly on StateBench, Gated DeltaNet and hybrid models generalize almost perfectly on R-trivial, aperiodic, and soluble problems out to tens of thousands of assignments, while transformers never learn general finite problems. This suggests that the architecture, not just pretraining data, limits transformers on the hardest state-tracking tasks.
Source and freshness
- Source
- huggingface.co
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.