AI
Simple counting task reveals a blind spot in language models' long-horizon reasoning
Researchers propose counting items as a minimal test for whether language models can track state across long sequences—a critical ability for autonomous agents that must remember context from start to finish.
Language models perform well on knowledge and reasoning benchmarks, yet such measures may not capture a crucial capability: the ability to track and update state information across an entire sequence, as a long-running autonomous agent would need to do. Researchers from arXiv have introduced a novel diagnostic tool to assess this gap.
The Test: Counting as a Window Into State Tracking#
The researchers define task modeling as the capacity to perform work whose next step depends on everything that came before. They propose counting identical items as the simplest possible probe: each item increments a total, but no item records what the current total is. This seemingly basic task requires a model to maintain an accurate tally without external signals about success or failure.
The team introduces counting capacity (CC)—defined as the maximum sequence length at which a model returns the exact count correctly more than half the time. They measured this metric across 205 different language models, revealing a stark limitation.
The Findings: Modest Gains Despite Growing Context#
The results paint a sobering picture. Models lose count abruptly, with a median counting capacity of just 50 items, and a maximum observed capacity of 627. While the median CC grew about 1.6-fold over recent release years, context windows during the same period expanded roughly 80-fold—a massive mismatch between available memory and actual tracking ability.
The researchers found that small changes in the problem structure have outsized effects: switching the counted symbol or delimiter can shift a model's CC by multiple factors. Yet the model itself accounts for roughly three quarters of the variance across different encodings, suggesting that intrinsic architectural properties, not just input format, constrain counting ability.
Interestingly, applying reasoning prompts left the median CC unchanged across 77 paired tests, indicating that chain-of-thought methods do not reliably compensate for this bottleneck.
Internal Mechanisms: Where Counting Breaks Down#
Examining six open-weight models at the layer level revealed that the count remains readable in earlier layers well past the point where it fails at the output. When researchers applied activation edits to carry counting information forward, the same technique also improved state tracking in an object-tracking task—hinting that a shared mechanism may underlie multiple long-horizon capacities.

