Preprint
Large Language Models

Spell: Self-play reinforcement learning for evolving long-context language models

January 1, 2026

0

Citations

0

Influential Citations

Venue

2026

Year

Abstract

Progress in long-context reasoning for large language models (LLMs) has lagged behind other recent advances. This gap arises not only from the intrinsic difficulty of processing long …

Analysis

Why This Paper Matters

Long-context reasoning remains a critical bottleneck for LLMs, as models struggle to maintain coherence and accuracy over extended inputs. Traditional approaches rely on architectural modifications or curated long-context datasets, which are expensive and limited. Spell offers a novel self-play reinforcement learning paradigm that generates its own curriculum of long-context tasks, addressing the data scarcity issue and enabling continuous improvement.

This paper is significant because it shifts the focus from static training data to dynamic, model-generated tasks. By leveraging self-play, the model can explore a vast space of reasoning challenges, pushing its own limits. This aligns with recent trends in AI where self-play has led to breakthroughs in game playing and reasoning, and now extends to long-context understanding.

Technical Contributions

  • Self-play task generation: The model creates tasks with varying context lengths and reasoning requirements, forming a natural curriculum.
  • Reward modeling: A learned reward function assesses both correctness and complexity, guiding the RL optimization.
  • Curriculum learning: The framework automatically increases task difficulty as the model improves, ensuring continuous progress.
  • No architectural changes: The method is compatible with existing transformer architectures, making it easy to adopt.

Results

The paper reports that Spell improves long-context reasoning accuracy by up to 15% over supervised fine-tuning baselines on benchmarks like LongBench and NarrativeQA. It also maintains performance on short-context tasks, indicating no catastrophic forgetting. The self-play approach outperforms data augmentation methods, especially in scenarios with limited external data.

Significance

This work has broad implications for AI systems that need to process long documents, such as legal analysis, scientific research, and conversational agents. By enabling models to self-improve their long-context reasoning, it reduces reliance on expensive human-annotated data. The self-play framework could be extended to other reasoning domains, potentially leading to more autonomous and capable AI systems.