arXiv:2610.25919cs.CLOct 2026

Manuscript Offprint

arXiv:2610.25919

LEAPS: Long-context Evaluation of Adaptive Pattern Learning and State Tracking

Howard Yen, Nitya Mani, Alex Renda, Christopher S. Hardin

ABSTRACT

Long-context language models (LCLMs) power agents that act over long trajectories, from improving a codebase to running research experiments to forecasters that condition on lengthy histories. These applications draw on three distinct long-context capabilities: recall, where the answer is a fact present in the context; state tracking, where the outcome can be computed by performing a series of transformations to a specified state; and pattern learning, where the goal is to make a prediction by sampling from a distribution inferred from many observations. Existing benchmarks primarily focus on the first capability. In this work, we introduce LEAPS (Long-context Evaluation of Adaptive Pattern learning and State tracking), a collection of 12 novel datasets, spanning agentic workflows, behavioral modeling, and forecasting of market and world events. By construction, LEAPS is resistant to data contamination, extends to millions of input tokens, and uses reliable metrics. We evaluate 30 API and open models from 8K to 512K input tokens. LEAPS distinguishes models that perform near perfectly on recall tasks, finding that such models' state tracking and pattern learning abilities can vary significantly and degrade much more dramatically with increasing input lengths—even for pattern learning, where more observations should make learning a theoretically easier task. Moreover, thinking models often underperform their base counterparts, exhausting their generation budget or oversimplifying the task. We hope LEAPS can guide the development of the next generation of LCLMs. 1^{1}

1 INTRODUCTION

Today, long-context language models (LCLMs) power personal assistants, coding agents, continual learning, and a wide variety of other tasks. Such applications frequently require comprehending large amounts of context (Kwa et al., 2025; Yang et al., 2024; Wang et al., 2025) specific to the task and rely on the underlying model having multiple distinct long-context capabilities.

For example, in order for a coding agent to successfully autonomously edit files and run commands over a long trajectory, it must be able to perform several sub-tasks. It should be able to locate code relevant to the current step, which relies on a capability commonly called recall (Arora et al., 2024; Hsieh et al., 2024). It must also be aware of the current state of the repository and its progress on each objective after many edits, requiring strong state tracking and understanding (Liu et al., 2023; Merrill & Sabharwal, 2023). Finally, its actions in unseen situations must align with the user's preferences, which it must infer from their distribution of past interactions. We call this type of in-context learning ability pattern learning (Brown et al., 2020; Garg et al., 2022). Many long-horizon tasks, particularly harder ones, frequently make use of all three abilities, which fundamentally differ in how models use their available context: to recall facts, maintain and update a relatively comprehensive (but compact) state as changes are applied, or continually learn patterns from observations.

However, existing LCLM development still overwhelmingly relies on recall benchmarks, such as Needle-In-A-Haystack (Kamradt, 2023) and RULER (Hsieh et al., 2024). Some recent benchmarks that evaluate performance on a broader range of realistic applications, such as question-answering,

*Work done as an intern at Jane Street.

1^{1}Code and data at https://github.com/howard-yen/LEAPS

Past works: RULER, HELMET, LongBench v2, InfBench

Recall: retrieve from the context

Figure

Get the values of ☐ and ☐.

Ours: LEAPS

Long-context Evaluation of Adaptive Pattern learning and State tracking

State tracking: Maintain states in dynamic environments

Figure

Updates

Give the states after the updates.

Pattern learning: Infer latent distributions from observations

Figure

Observations

Latent distribution

Approximate the latent distribution.

Figure 1: In contrast to many previous long-context benchmarks that revolve around recall, we study two new capabilities in a long-context setting, state tracking and pattern learning.

summarization, and reasoning over code (Zhang et al., 2024; Yen et al., 2025; Bai et al., 2025, inter alia), many-shot in-context learning (Agarwal et al., 2024; Bertsch et al., 2025a; Li et al., 2025), and aggregation (Bertsch et al., 2025b) do broaden the coverage of long-context evaluation, but do not comprehensively study how a model's relative long-context capabilities are apportioned between recall, state tracking, and pattern learning.

To fill this gap, we systematically study two long-context capabilities—state tracking and pattern learning—by creating a novel benchmark, LEAPS (Long-context Evaluation of Adaptive Pattern learning and State tracking). We construct 6 synthetic and 6 real-derived datasets in which LCLMs track ML experiments, imitate top chess players' styles, and forecast events from historical data. By design, our datasets are robust to contamination (these datasets can be regenerated or sampled past a model's knowledge cutoff), scale to millions of input tokens, and use reliable evaluation metrics.

Our experiments cover 30 API and open models, evaluated from 8K to 512K input tokens. Even models that look very similar on recall tasks can be starkly distinguished on LEAPS. We attribute this in part to LEAPS tasks testing for distinct long-context capabilities and to performance with respect to such capabilities still being relatively unsaturated, even amongst very strong API models.

In contrast to many recall benchmarks, where model performance is relatively consistent across context lengths, performance on state-tracking tasks degrades significantly at long context. Performance on pattern-learning tasks—which become higher signal-to-noise with context length—also declines at long contexts (although sometimes performance can improve at moderate context).

Studying the correlation of performance in the LEAPS suite across models and context lengths suggests that our datasets evaluate multiple distinct long-context capabilities, not just performance along a single hidden axis. Further, when comparing models, a somewhat surprising observation is that thinking models often perform worse on LEAPS tasks than their base counterparts. Our analysis suggests that they often run out of generation budget without making appreciable progress and can make overly simplifying assumptions, suggesting possible improvements in long-context post-training techniques. We hope LEAPS can help develop LCLMs for further long-horizon applications.

References (48)