HyperAIHyperAI

Command Palette

Search for a command to run...

Golden Goose:検証不可能なインターネットテキストから無制限のRLVRタスクを合成する簡便な手法

GooseReason-0.7M 強化学習検証推論データセット

データセットへ移動

概要

検証可能な報酬を用いた強化学習(RLVR)は、大規模言語モデル(LLM)における複雑な推論能力を引き出すための基盤技術となっている。しかし、RLの規模拡大は、利用可能な検証済みデータが限られていることがボトルネックであり、長時間の学習を続けると改善効果は次第に頭打ちになる。この課題を克服するため、我々は「Golden Goose」を提案する。これは、中間欠落(fill-in-the-middle)タスクの多肢選択式QA版を構築することで、検証不可能なインターネットテキストから無制限にRLVRタスクを合成する、極めて簡便な手法である。具体的には、ソーステキストを与え、LLMに主要な推論ステップを特定してマスクさせ、多様で説得力のある選択肢(誤答候補)を生成させる。これにより、従来のRLVRデータ構築では除外されがちだった、推論に富む検証不可能なコーパス(例:科学教科書)を活用し、数学・プログラミング・一般科学分野にわたる70万以上のタスクを含む大規模RLVRデータセット「GooseReason-0.7M」を合成する。実験の結果、GooseReasonは、既存のRLVRデータで学習が飽和したモデルを効果的に活性化し、継続的なRL下で堅牢かつ持続的な性能向上をもたらし、1.5Bおよび4B-Instructモデルにおいて、15の多様なベンチマークで最先端の結果を達成した。さらに、我々はGolden Gooseを実環境に適用し、従来RLVRデータが存在しなかったサイバーセキュリティ分野において、生のFineWebスクレイプからRLVRタスクを合成した。得られたデータセット「GooseReason-Cyber」でQwen3-4B-Instructを学習させたところ、サイバーセキュリティ分野で新たな最先端結果を達成し、大規模な分野特化型事前学習と事後学習を施した70億パラメータの専門モデルを凌駕した。この結果は、豊富で推論に富む検証不可能なインターネットテキストを活用することで、RLVRデータを自動的に拡張できる可能性を示している。

One-sentence Summary

Researchers from the University of Washington and Microsoft propose Golden Goose, a simple trick that synthesizes unlimited RLVR tasks from unverifiable internet text by masking key reasoning steps and generating diverse distractors, yielding the 0.7M0.7\text{M}0.7M-task GooseReason dataset that revives RL saturation and achieves state-of-the-art results for 1.5B1.5\text{B}1.5B and 4B4\text{B}4B-Instruct models across 151515 benchmarks, including new cybersecurity SOTA with GooseReason-Cyber over a 7B7\text{B}7B domain-specialized model.

Key Contributions

  • Introduces Golden Goose, a pipeline that converts unverifiable internet text into verifiable multiple-choice fill-in-the-middle RLVR tasks by prompting an LLM to mask key reasoning steps and generate diverse distractors, enabling use of reasoning-rich corpora such as free-form textbooks that prior RLVR data construction excluded.
  • Releases GooseReason-0.7M, a large-scale RLVR dataset with over 0.7 million synthesized tasks spanning mathematics, programming, and general scientific domains, built entirely from unverifiable sources without domain experts or handcrafted environments.
  • Demonstrates that training on GooseReason data revives models saturated on existing RLVR data, achieving sustained gains under continuous RL and new state-of-the-art results for 1.5B and 4B-Instruct models across 15 benchmarks; a cybersecurity deployment using GooseReason-Cyber data trains Qwen3-4B-Instruct to surpass a 7B domain-specialized model that underwent extensive domain-specific pre-training and post-training.

Introduction

Reinforcement Learning with Verifiable Rewards (RLVR) has become a core method for teaching large language models complex reasoning, powering systems like DeepSeek-R1, OpenAI-o3, and Gemini-3. Scaling RLVR, however, is bottlenecked by the need for problems with ground-truth answers that can be automatically checked, such as math problems parsable by a verifier or coding tasks with executable unit tests. Prior work depends on human-authored problems, which are costly and narrow in scope, or on handcrafted procedural data generators, which are hard to scale beyond a few hundred environments. As a result, rich but unverifiable sources like open-ended textbook questions, theorem-proving passages, and coding problems without test cases are typically discarded.

To address this, the authors introduce GooseReason, a simple pipeline that converts unverifiable internet text into verifiable RLVR tasks. The approach prompts an LLM to identify a contiguous span of crucial reasoning steps in a source passage, mask it, and generate plausible distractors, yielding a fill-in-the-middle multiple-choice task with a verifiable answer. This enables construction of GooseReason-0.7M, a dataset of over 700,000 RLVR tasks spanning mathematics, programming, and scientific domains. Empirically, the authors show that incorporating these tasks revives models whose RL training had saturated, producing continuous gains across 15 benchmarks, and even improves reasoning generalization on downstream tasks not explicitly covered by the data.

Dataset

The authors build their dataset through a synthesis pipeline that turns raw text into verifiable multiple-choice reasoning questions. Here is a breakdown of its composition, sources, and usage.

Synthesis pipeline

  • Given a source text, the authors prompt a large language model (GPT-5) to identify a contiguous span of important reasoning steps.
  • They replace that span with a [MASK] token to create the masked context, treat the span as the ground-truth answer, and prompt the model to generate several plausible but incorrect distractors.
  • The final question is a multiple-choice item consisting of the masked context plus the true answer and distractors in randomized order.
  • For noisy source text, the model first extracts or summarizes it into a cleaner, educationally valuable version, then constructs the masked context and distractors from that version.
  • If a source contains no suitable passage, the model returns an empty string and the text is skipped.
  • To ensure quality, GPT-5 is used throughout the synthesis. For reasoning-dense sources, no post-processing is needed. For noisy sources, the authors add difficulty-based filtering, removing easy questions that the student model answers correctly across all 16 rollouts.

Reasoning domain (GooseReason-0.7M)

  • Built from three corpora that were previously excluded from RLVR data curation:
    • AoPS-Instruct: about 600K question-answer pairs from the Art of Problem Solving forum, mostly Olympiad-level math with community solutions. These are unstructured and sometimes incomplete, and many theorem-proving solutions are impossible to verify with a math verifier.
    • rStar-Coder: 37.7K expert-written competitive programming problems (from IOI, Codeforces, etc.) with oracle solutions, plus synthesized problems. Only 380K of 1.656M synthesized questions got test cases; the authors use the synthetic SFT split (questions and teacher solutions without test cases) to generate verifiable coding questions.
    • MegaScience: 650K question-answer pairs from about 12K university-level textbooks across physics, biology, chemistry, medicine, computer science, mathematics, and economics. Many answers contain specialized formulas or open-ended multi-paragraph discussions, which are hard to validate with a verifier.
  • The pipeline yields over 0.7 million novel RLVR tasks.
  • Effectiveness analysis against existing RLVR data (ProRL blend) shows that only about 25% of 136K samples in the ProRL mix provide meaningful learning signals, while GooseReason-0.7M retains around 70% effectiveness, substantially supplementing existing datasets for RL training.

Cybersecurity domain (about 180K tasks)

  • This domain lacks open-source RLVR datasets, so the authors use Primus data as the raw source:
    • Primus-Seed: crawled from reputable sources like MITRE, Wikipedia, and cybersecurity company websites, plus cyber threat intelligence manually collected by experts.
    • Primus-FineWeb: cybersecurity-related text filtered from FineWeb, using Primus-Seed as positive samples.
  • These sources are heavily web-scraped and noisy. The authors apply the synthesis pipeline directly, producing roughly 180K RLVR tasks from raw internet text.

Usage in the model

  • The student model receives only the masked context and must select the correct option from the candidate set.
  • Verification during RL simply checks whether the predicted option matches the ground-truth answer.
  • The reasoning-domain tasks are mixed with existing RLVR data to scale continual RL training, while the cybersecurity tasks are used to train a specialized model in that domain.

Method

The authors propose a data synthesis pipeline to construct Reinforcement Learning with Verifiable Rewards (RLVR) tasks from reasoning-rich but unverifiable text. As illustrated in the framework diagram, the process begins with a source text SSS. An LLM is prompted to identify a contiguous span ttt containing crucial reasoning steps. This span is replaced with a special [MASK] token to form a masked context SmaskS_{\text{mask}}Smask​. The original span ttt serves as the ground-truth answer. Simultaneously, the LLM generates a set of diverse distractors D={d1,d2,…,dk}\mathcal{D} = \{d_1, d_2, \dots, d_k\}D={d1​,d2​,…,dk​} that are plausible and stylistically similar to ttt but incorrect within the context of SmaskS_{\text{mask}}Smask​. The final task is formulated as a multiple-choice question Q=(Smask,{t}∪D)Q = (S_{\text{mask}}, \{t\} \cup \mathcal{D})Q=(Smask​,{t}∪D).

For noisy source texts, such as web scrapes, the pipeline includes a preprocessing step where the LLM first extracts or summarizes the text into a coherent, educationally valuable passage S′S'S′ before applying the masking and distractor generation steps. If the source text contains no suitable passage, the LLM returns an empty string. To ensure data quality, the system employs difficulty-based filtering, removing problems that are too easy for the student model to solve consistently across all rollouts. During the training phase, the student model is provided with SmaskS_{\text{mask}}Smask​ and tasked with selecting the option that best fills the [MASK] from the candidate set. Verification during RL simply checks if the prediction matches the ground-truth option.

The design of the task format is critical for effective RL training. The authors compare open-ended fill-in-the-mask tasks against multiple-choice formulations. They observe that open-ended tasks often lead to poor instruction following, where models ignore the mask and solve the problem from scratch, yielding no usable reward signal. Regarding the number of distractors, the authors ablate the impact of option count. As shown in the chart below, using too few options (e.g., 3) makes tasks too easy, allowing models to rely on elimination strategies rather than reasoning. Conversely, increasing the number of distractors to 9 shifts the majority of problems into a medium-difficulty regime, characterized by a mix of successful and failed rollouts, which provides the most effective signal for reinforcement learning.

Experiment

The experiments evaluate the GooseReason dataset across scaling scenarios for RL training of LLMs. In a data saturation case, incorporating GooseReason revives a saturated model and yields robust gains across math, coding, and especially STEM, while also improving transfer to unrelated tasks, even for stronger models that plateau early. Under a fixed compute budget, joint training with GooseReason achieves higher performance at the same step count, showing more compute-efficient scaling. In a specialized domain, GooseReason-Cyber enables RLVR to deliver substantial improvements in cybersecurity reasoning with minimal training steps, surpassing prior domain-specific approaches.

Continued RL training with the original ProRL data on a stronger model leads to performance saturation or degradation after about 300 steps, with losses in math and STEM. Adding GooseReason-0.7M revives the saturated model and yields consistent gains across all evaluated benchmarks, enabling further RL scaling and improving average performance. Extended RL with only ProRL data causes math and STEM performance to drop, with only a marginal coding gain. Incorporating GooseReason-0.7M after saturation improves results on all listed math benchmarks, lifting the average score from 70.36 to 73.83. The gains are broad, including tasks not directly covered by the training data, indicating transferable reasoning skills.

Adding GooseReason data to RL training improves coding benchmark performance for Qwen3-4B-Instruct, with further gains as RL steps increase. The 4B model with GooseReason surpasses the much larger Qwen3-30B-Instruct on average and on most individual benchmarks. Gains are consistent across APPS, CodeContests, CodeForces, TACO, HumanEvalPlus, and LiveCodeBench. Including GooseReason-0.7M raises the 4B model's average pass@1 from 42.63 to 55.70, surpassing the 30B model's 50.94. The 4B model with GooseReason outperforms the 30B model on all six coding benchmarks except LiveCodeBench, where it is slightly lower. Increasing RL steps from 333 to 270 with GooseReason yields additional gains on CodeForces and TACO, while maintaining high accuracy on other benchmarks.

The table compares reinforcement learning recipes for Qwen3-4B-Instruct, showing that adding GooseReason data to ProRL training yields consistent gains across STEM reasoning, instruction following, and logic puzzles. The best configuration approaches or exceeds the performance of a 7.5 times larger model on several benchmarks, while the base model without RL performs notably worse on reasoning-heavy tasks. Adding GooseReason to ProRL improves scores on math, algorithmic, cognition, and logic tasks beyond ProRL alone, with the largest gains in math and algorithmic categories. The GooseReason-trained 4B model achieves comparable or better results than Qwen3-30B-Instruct on most reasoning benchmarks despite being much smaller. Instruction following and GPQA also improve with GooseReason, indicating transfer of reasoning skills beyond the training data domain.

A 4B Qwen model trained with GooseReason-Cyber achieves state-of-the-art results on cybersecurity benchmarks, outperforming larger 8B domain-specialized models despite far less RL training. The method yields a substantial average performance gain, more than tripling the improvement seen by the previous best 8B approach. The GooseReason-Cyber-4B model improves average benchmark performance by 4.44% over its base Qwen3-4B, using only 100 RL steps. This 4B model surpasses all 8B baselines, including the prior state-of-the-art Llama-Primus-Instruct, which gained just 1.44% over its base. Gains appear across all three evaluated cybersecurity tasks, with the largest relative jump observed in threat-intelligence and vulnerability analysis.

The experiments show that adding GooseReason data to reinforcement learning prevents saturation and yields consistent gains across math, coding, reasoning, and instruction following benchmarks, even for models much smaller than their larger counterparts. This approach enables further RL scaling, improves transfer to tasks outside the training distribution, and similarly boosts cybersecurity performance, where a 4B model surpasses larger domain-specialized baselines with fewer training steps.


AIでAIを構築

アイデアからローンチまで — 無料のAIコーディング支援、すぐに使える環境、最高のGPU価格でAI開発を加速。

AI コーディング補助
すぐに使える GPU
最適な料金体系

HyperAI Newsletters

最新情報を購読する
北京時間 毎週月曜日の午前9時 に、その週の最新情報をメールでお届けします
メール配信サービスは MailChimp によって提供されています