SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2509.23863 · ICLR · 2025

SPELL: Self-Play Reinforcement Learning for evolving Long-Context Language Models

Ziyi Yang, Ming Yan, Fei Huang, Xiaojun Quan, Ruijun Chen, Fanqi Wan, Weizhou Shen, Chenliang Li, Questioner Verifier

arXiv · PDF · Open in the Atlas

Code that ran

2 of 4 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 1 failure of our instrument; 2 no recorded run), measured 2026-11-24; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2509.23863.json · badge: /api/ran/2509.23863.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
Tongyi-Zhiwen/Qwen-Doc community
Papers with Code archive
2 ran · 2 no recorded run
FunctionStatusWhere it lives
questioner_mapping_function Ran
ran, honoured the contract we drafted
Tongyi-Zhiwen/Qwen-Doc/SPELL/verl/verl/trainer/ppo/core_algos.py
pointer only (licence: NONE) · get_code("4150e89fe1921102")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Tongyi-Zhiwen/Qwen-Doc when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

register_adv_est Ran
ran; our contract draft was wrong, not the code
Tongyi-Zhiwen/Qwen-Doc/SPELL/verl/verl/trainer/ppo/core_algos.py
pointer only (licence: NONE) · get_code("6b9eb4f0ec9b8457")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Tongyi-Zhiwen/Qwen-Doc when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

AdvantageEstimator Not yet run
unverified (harvested, no recorded run)
Tongyi-Zhiwen/Qwen-Doc/SPELL/verl/verl/trainer/ppo/core_algos.py
pointer only (licence: NONE) · get_code("b62f6ef15cf876cd")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Tongyi-Zhiwen/Qwen-Doc when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

compute_spell_grpo_outcome_advantage Not yet run
unverified (harvested, no recorded run)
Tongyi-Zhiwen/Qwen-Doc/SPELL/verl/verl/trainer/ppo/core_algos.py
pointer only (licence: NONE) · get_code("d0a70c2ef669d178")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Tongyi-Zhiwen/Qwen-Doc when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 4 samples lifted from this paper's linked repositories, 4 carry a function identity and 0 do not. Of the 4 distinct functions with an identity, 1 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 1 the same month, 1 later) and 3 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
register_adv_est
brick of this paper's assembly: helper
3 other papers
1 the same month, 2 later · 3 only as an assembly brick
2509.26272 (2025-09)
PRPO: Paragraph-level Policy Optimization for Vision-Language Deepfake Detection
2601.05053 (2026-01)
Reinforced Efficient Reasoning via Semantically Diverse Exploration
2603.00656 (2026-03)
InfoPO: Information-Driven Policy Optimization for User-Centric Agents

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

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 texts, but also from the scarcity of reliable human annotations and programmatically verifiable reward signals. In this paper, we propose SPELL, a multi-role self-play reinforcement learning framework that enables scalable, label-free optimization for long-context reasoning. SPELL integrates three cyclical roles-questioner, responder, and verifier-within a single model to enable continual self-improvement. The questioner generates questions from raw documents paired with reference answers; the responder learns to solve these questions based on the documents; and the verifier evaluates semantic equivalence between the responder's output and the questioner's reference answer, producing reward signals to guide continual training. To stabilize training, we introduce an automated curriculum that gradually increases document length and a reward function that adapts question difficulty to the model's evolving capabilities. Extensive experiments on six long-context benchmarks show that SPELL consistently improves performance across diverse LLMs and outperforms equally sized models fine-tuned on largescale annotated data. Notably, SPELL achieves an average 7.6-point gain in pass@8 on the strong reasoning model Qwen3-30B-A3B-Thinking, raising its performance ceiling and showing promise for scaling to even more capable models. Our code is available at https://github.com/Tongyi-Zhiwen/Qwen-Doc.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2509.23863")
get_code_for_paper("2509.23863")
have("2509.23863")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2509.23863.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2509.23863.svg)](https://syntology.ai/paper/2509.23863)

Connect an agent — have() is free.