Back to Devoured - August 04, 2026
DEVOURED
From RLVR to RLSVR (GitHub Repo)

From RLVR to RLSVR (GitHub Repo)

AI GitHub
SpyRL transforms open-ended tasks into 'spy' games, allowing LLMs to generate their own verifiable rewards through multi-agent self-play.
What: SpyRL, part of the RLSVR framework, uses asymmetric information and voting mechanics to create verifiable rewards for tasks like creative writing and summarization where no ground truth exists.
Why it matters: This approach overcomes the 'ground truth' limitation in reinforcement learning, enabling self-improvement for models in domains that usually require human subjective judgment.
Takeaway: Try the SpyRL training scripts in the repo using `bash spyrl/train_summarization.sh` on an 8-GPU node to see how it performs on your own corpora.
Deep dive
  • Implements RLSVR (Reinforcement Learning with Self-Verifiable Rewards) to create automated reward signals.
  • Uses a multi-agent 'Who Is the Spy?' game structure for evaluation.
  • Enables training on creative writing and summarization by making voting outcomes the reward signal.
  • Improves reasoning benchmarks like GSM8K and Math500 significantly over base models.
  • Eliminates the need for manual labels or human-in-the-loop preference data.
  • Includes specific logic for role-advantage estimation to stabilize rewards across different agent roles.
Decoder
  • Self-play: A training method where an AI plays against itself or other versions of itself to improve performance without needing external training data.
  • GRPO: Group Relative Policy Optimization, a reinforcement learning method that evaluates an agent's performance relative to its peers in a group rather than against a fixed value.
Original article

SpyRL: Self-PlaY Reinforcement Learning

From RLVR to RLSVR: Task Transformation Induces Self-Verifiable Rewards for Open-Ended LLM Self-Improvement

Self-supervised learning, but for RLVR. We transform an open-ended task into a multi-agent game whose rules automatically generate fully verifiable rewards, enabling scalable LLM self-improvement beyond math and code.

Overview

Drawing on the principle of self-supervised learning, which constructs pretext tasks to derive supervision from the data itself, we propose Reinforcement Learning with Self-Verifiable Rewards (RLSVR), a task-transformation-based training paradigm for extending RLVR to open-ended tasks. RLSVR transforms open-ended tasks into verifiable proxy environments whose internal rules and interaction outcomes automatically generate reward signals.

We instantiate RLSVR with SpyRL, a multi-agent self-play environment inspired by Who Is the Spy?. Agents receive asymmetric information, complete the same target task, and vote to identify a designated spy. Because the spy identity is predetermined, voting outcomes provide fully verifiable rewards, while successful identification remains closely related to output quality.

Key Features

  • Self-play beyond verifiable domains: Prior self-play frameworks (R-Zero, Absolute Zero) are proposer–solver loops that need a verifiable solver signal to steer difficulty. SpyRL needs none: the reward comes from the rules of the game, so it extends to summarization and creative writing where no ground truth exists.
  • Verifiable rewards without a verifier: The environment assigns the spy identity, so reward is checkable by construction. The performing reward is a zero-sum function of the vote counts, keeping the spy and the civilians in genuine competition.
  • Collective, not pointwise, judgement: Every player votes, and rewards are normalized within the group. One detector's misjudgement is outvoted rather than becoming the whole learning signal — far more robust than single-verifier pipelines.
  • Cheap document-level data: The performing stage only needs raw documents — reports, story prompts, math-heavy web text. No question-level supervision, no labels, no preference pairs.

How the Game Works

Each task instantiates the same two-stage game with a different information-degradation operator and a different performing objective:

  • Summarization: Summarize a government report in one paragraph; the spy has a 20% contiguous span of the report masked.
  • Creative writing: Write a story from a prompt; the spy has a 20% contiguous span of the prompt masked.
  • Math reasoning: Design and solve a problem grounded in a document; the spy has a 40% contiguous span of the document masked.

The two rewards

Detection (verifiable): The reward is assigned based on whether the detector identifies the correct spy within the group.

Performing (zero-sum): The reward is driven entirely by the vote counts. The first term keeps the spy and the civilians in direct competition; the second penalizes any civilian who drew more suspicion than its peers, so "be good" concretely means "be better than the others who saw the same thing."

Alternating optimization

The two stages (clue/performing and decision/detection) are trained in alternation, driven by the training phase configuration.

Repository Structure

Everything specific to this paper lives in three places:

  • spyrl/: Launch scripts.
  • verl/experimental/agent_loop/: Game logic.
  • verl/utils/dataset/: Environments, corpora, roles, and prompts.

Training

Every run writes checkpoints to the output directory and a human-readable transcript of one full game per step. This file contains every player's prompt and output, the detector prompt, each vote, whether it was correct, and the resulting rewards.

Evaluation

Training produces standard Hugging Face checkpoints, so evaluation runs with the usual tooling. Reasoning tasks use existing benchmarks like GSM8K and Math500, while summarization and creative writing use GPT-4o A/B win rates against the untrained base model.

Explore all 45 articles in today's digest

Fresh dev news, AI-digested daily. Never miss a trend at devoured.fyi