Paper: 2610.30132
Authors: Zhennan Wan, Jianfei Chen
Categories: cs.CL, cs.LG

The Gap

Reinforcement learning (RL)—most notably through policy optimization algorithms like GRPO—has ignited breakthrough capabilities in mathematical reasoning and code synthesis (e.g., DeepSeek-R1). However, porting these RL reasoning gains to long-context reasoning (32k to 128k+ tokens) has hit a hard data bottleneck:

  1. Human Annotation Bottleneck: Creating long-context reasoning benchmarks requires reading dozens of documents, engineering multi-hop logical dependencies, and verifying non-trivial deductive proofs. Human curation at scale is economically impossible.
  2. Scarcity of Verifiable Natural Corpora: Raw long-context documents (books, legal archives, code repos) lack programmatic ground-truth answer verification mechanisms required for reward computation in RL.
  3. The Teacher-Model Plateau: Conventional synthetic generation relies on prompting frontier teacher models (like GPT-4o) over external document dumps. As open-weight student models reach frontier capabilities, capable teacher models become unavailable, and external corpora introduce unpredictable distribution biases.
  4. Failure of Prior Zero-Data Regimes: While “zero-data” self-play and self-taught reasoning (e.g., Absolute Zero) succeed on short puzzles and math problems, having an LLM generate a coherent 64k-token context from scratch causes immediate semantic collapse, hallucinations, and trivial shortcut vulnerabilities.
   THE LONG-CONTEXT REINFORCEMENT LEARNING DILEMMA

   Short-Context RL (Math / Code):
     Problem Prompt [Short] ---> Reasoning Trace [Long] ---> Verified Answer (Easy)
     [Self-generation is feasible via symbolic rules and unit tests]

   Long-Context RL (The Unsolved Bottleneck):
     Context [32k-128k Tokens] + Query [Short] ---> Multi-Hop Reasoning ---> Answer
     |
     +---> If prompted to write 64k tokens at once: Semantic drift, low factuality.
     +---> If based on external web texts: Unverifiable answers, spurious shortcuts.
     +---> If dependent on teacher models: Stagnates when student matches teacher.
     ===> Long-context RL remains starved of verifiable, high-entropy training data!

The Increment

One sentence: LongZero introduces an autonomous, zero-data framework that synthesizes verifiable long-context multi-hop reasoning tasks by first constructing compact structured reasoning DAGs and subsequently expanding evidence nodes into long multi-document contexts with confounding distractors, enabling scalable GRPO training with zero external data.

Core Mechanism

LongZero overcomes the impossibility of directly generating long, factually tight contexts by decoupling logic generation from context expansion:

  1. Structured Logic Core Generation (Compact Phase):
    • Instead of drafting a 50-page document, the LLM first generates a compact, structured logic blueprint:
      • A target query QQ and verifiable ground-truth answer AA.
      • A minimal Directed Acyclic Graph (DAG) of atomic facts and supporting evidence nodes {e1,e2,…,em}\{e_1, e_2, \dots, e_m\}.
      • A rigorous multi-hop deduction chain where answer AA strictly requires intersecting information across multiple evidence nodes (ei∧ej  ⟹  Ae_i \land e_j \implies A).
  2. Decoupled Long-Context Multi-Document Expansion:
    • The framework separately expands each evidence node eie_i into an independent, realistic long-form document.
    • It autonomously generates confounding distractors: documents sharing topical keywords, identical entity names, and plausible counter-hypotheses, but lacking the critical causal link.
    • The expanded documents and distractors are randomly shuffled into an expansive multi-document context spanning tens of thousands of tokens.
  3. Dual Task Curriculum:
    • Self-Written Multi-Hop Reasoning: Tasks requiring inductive and deductive reasoning across documents dispersed throughout the input context.
    • Self-Written Multi-Round Needle Retrieval: Iterative dependency retrieval tasks where locating document BB requires first decoding an encrypted or referenced clue in document AA.
  4. Closed-Loop GRPO Optimization:
    • Because the question, answer, and evidence graph are algorithmically bound during the compact phase, verification is 100% deterministic (exact match or symbolic solver).
    • The base LLM is trained on its own self-generated curricula using Group Relative Policy Optimization (GRPO), completely free of external document inputs or teacher distillation.
   LONGZERO ZERO-DATA SYNTHESIS AND RL PIPELINE

   +---------------------------------------------------------------+
   | STAGE 1: COMPACT STRUCTURED BLUEPRINT GENERATION              |
   | Model outputs: Core Question Q, Exact Answer A                |
   | Evidence Graph: Fact 1 (e1) + Fact 2 (e2) ===> Answer A       |
   +---------------------------------------------------------------+
                                   |
                                   v
   +---------------------------------------------------------------+
   | STAGE 2: MODULAR CONTEXT EXPANSION & DISTRACTOR INJECTION     |
   | - Expand e1 into full Document D1 (e.g., Financial Report)    |
   | - Expand e2 into full Document D2 (e.g., Board Meeting Minutes)|
   | - Synthesize Distractor Documents D3, D4, D5 (Confounders)    |
   | - Assemble & Shuffle: Long Multi-Document Context (32k-128k)  |
   +---------------------------------------------------------------+
                                   |
                                   v
   +---------------------------------------------------------------+
   | STAGE 3: SELF-GROUNDED GRPO REINFORCEMENT LEARNING            |
   | Input: [Shuffled 64k Context] + Query Q                       |
   | Reward: R = 1 if generated answer matches A, else 0           |
   | Policy Update: GRPO scales long-range attention & reasoning   |
   +---------------------------------------------------------------+

Key Concepts

  • Zero-Data Reasoning: Machine learning paradigms where models generate their own training problems, execution paths, and verification criteria without external corpora or human demonstrations.
  • Decoupled Context Expansion: The architectural separation of logical dependency construction (compact) from narrative and noise generation (voluminous), preventing semantic drift.
  • Confounding Distractors: Synthesized text blocks designed to match entity surface forms while withholding necessary deductive relations, forcing the attention mechanism to perform genuine multi-hop reasoning rather than shallow keyword matching.

Framework Shift

Before (Conventional Long-Context Training):
  Pre-training: Massive passive web documents (books, github, html) -> Weak reasoning.
  Post-training: Prompting external teacher models (GPT-4o) over raw documents.
  Bottleneck: No scalable source of verifiable multi-hop truth; ceiling capped by teacher.

After (LongZero Self-Evolving Synthesis):
  Zero External Data: LLM proposes compact logic graphs, then unpacks them into long documents.
  100% Verifiable: Ground-truth answers are guaranteed by programmatic construction.
  RL Scaling: GRPO directly optimizes long-range evidence retrieval and multi-hop synthesis.

Expert Review

Topic Value: Foundational. Solves the single most glaring data starvation issue in reinforcement learning for long-context reasoning models.

Method Maturity: The decoupling of logical graph creation from textural context inflation is brilliant in its engineering simplicity, neatly circumventing the hallucination traps of long-context self-generation.

Experimental Rigor: Rigorously validated on two open foundation models across five standard long-context benchmarks (including L-Eval, BAMBOO, and LongBench), consistently outperforming RL trained on external corpus-derived tasks.

Writing Quality: Clear, methodical, and transparent about synthetic failure modes and reward design.

Overall Verdict: strong accept — A landmark blueprint for self-improving long-context frontier models.

Takeaways

  • You do not need billions of human-annotated long-context tokens to unlock complex reasoning in 64k+ contexts.
  • Generating long texts directly leads to logical incoherence; always generate compact reasoning skeletons first, then expand the context around them.
  • Autonomous distractor engineering is the secret to preventing models from finding lazy shortcut features during long-context policy optimization.

论文: 2610.30132
作者: Zhennan Wan, Jianfei Chen
分类: cs.CL, cs.LG

核心困境

近年来,以 GRPO 为代表的强化学习(RL)算法在数学推理与代码生成领域取得了颠覆性突破(如 DeepSeek-R1)。然而,当学术界尝试将这一套强化学习范式迁移至长上下文推理(32k 至 128k+ tokens)时,却遭遇了极其严峻的「数据枯竭」瓶颈:

  1. 人工标注成本不可承受:构建一个合格的长上下文推理样本,需要标注者通读数十篇长文档、编织复杂的跨文档多跳逻辑链,并提供精确无误的答案。规模化人工标注在经济与时间成本上不可行。
  2. 真实自然长语料缺乏可验证性:现实中的书籍、法律卷宗、学术论文等长文本,天然缺乏强化学习奖励模型所需的程序化、确定性答案校验机制(Ground-truth verification)。
  3. 教师模型与外部语料的天花板:现有的合成方法高度依赖外部语料库或更强的商业闭源模型(如 GPT-4o)。当被训练的开源模型逼近甚至赶超教师模型时,数据蒸馏便难以为继;同时外部文档往往充斥未知噪声与捷径线索。
  4. 传统零数据(Zero-Data)方案在长上下文失效:现有的零数据自博弈或自演化推理(如 Absolute Zero)主要针对短文本数学题或代码块。一旦让大模型在毫无外部支撑的情况下一次性编写 64k 长度的长上下文任务,模型会瞬间陷入严重的语义漂移、事实幻觉与逻辑崩塌。
   长上下文强化学习面临的核心困境

   短文本 RL (数学 / 代码):
     题目提示 [短] ---> 深度思考推理链 [长] ---> 确定性答案检验 (可行)
     [凭借符号逻辑规则与单元测试,模型易于自拟题目与验证]

   长上下文 RL (悬而未决的死结):
     庞大上下文 [32k-128k Tokens] + 核心提问 [短] ---> 跨文档多跳推理 ---> 终局答案
     |
     +---> 若由模型直接从头生成 64k 长文: 事实失控、语义漂移、逻辑断裂。
     +---> 若依赖真实爬取网页: 缺乏严谨标注与自动答案验证机制。
     +---> 若依赖商业教师模型: 学生模型能力逼近后即遭锁死。
     ===> 长上下文长程推理 RL 长期面临「无高质量可验证数据可用」的绝境!

核心增量

一句话定位:LongZero 提出了一种突破性的零数据长上下文自演化任务合成框架,通过「先生成紧凑结构化推理图谱、再模块化膨胀为长多文档上下文」的解耦生成机制,结合干扰文档注入与 GRPO 强化学习,在完全不依赖任何外部数据的前提下大幅提升了大模型的长上下文推理能力。

核心机制拆解

LongZero 攻克长文本自演化生成的关键,在于将逻辑因果链的构建与文本体积的膨胀彻底解耦:

  1. 紧凑结构化逻辑核心生成(Compact Phase):
    • 彻底放弃让大模型直接书写几十页长篇大论的传统做法。
    • 模型首先在极短的上下文中构思核心逻辑蓝图:
      • 生成目标问题 QQ 与唯一确定的标准答案 AA。
      • 生成支撑推理所需的最小原子事实与因果证据图谱 {e1,e2,…,em}\{e_1, e_2, \dots, e_m\}(构成有向无环图 DAG)。
      • 确保该问题必须同时融合多个证据节点方可求解(即 ei∧ej  ⟹  Ae_i \land e_j \implies A),杜绝单点直接泄露。
  2. 解耦式长多文档展开与对抗干扰注入:
    • 模块化展开:将证据图谱中的每个核心证据 eie_i,分别独立扩展为结构完整、文风自然的独立长文档。
    • 对抗干扰项(Confounding Distractors)合成:自主生成多篇包含相似实体名称、相似主题背景,但缺少关键因果联系的干扰文档。
    • 乱序混洗:将真实证据文档与海量干扰文档打散拼接,组装成数万 token 级别的高保真长多文档上下文。
  3. 双轨自演化任务课程:
    • 自主多跳因果推理任务:要求模型在散落在全篇各处的证据碎片中建立严密的归纳与演绎链路。
    • 自主多轮依赖检索任务:设计具备指针跳转性质的检索链路(必须先在文档 A 发现隐藏线索,才能确定文档 B 的目标实体)。
  4. 闭环 GRPO 策略优化:
    • 由于在紧凑阶段已严格绑定了问题、答案与逻辑图谱,任务评测具备 100% 的确定性自动验证能力。
    • 采用群组相对策略优化(GRPO)算法直接对基座大模型进行大规模强化学习训练,全流程零人工标注、零外部文本引入、零教师模型蒸馏。
   LONGZERO 零数据长上下文合成与强化学习全流程

   +---------------------------------------------------------------+
   | 阶段一:紧凑结构化逻辑图谱构建 (Compact Structured Core)      |
   | 模型自拟:核心提问 Q、精确答案 A                               |
   | 证据因果图谱:证据 1 (e1) + 证据 2 (e2) ===> 推导出答案 A     |
   +---------------------------------------------------------------+
                                   |
                                   v
   +---------------------------------------------------------------+
   | 阶段二:解耦式文档展开与高对抗干扰注入 (Context Expansion)     |
   | - 证据 e1 膨胀为独立完整长文档 D1(如:年度财务审计报告)     |
   | - 证据 e2 膨胀为独立完整长文档 D2(如:董事会决策备忘录)     |
   | - 自主合成高混淆干扰文档 D3, D4, D5(同名实体、相似背景)    |
   | - 打乱组装:拼装成 32k-128k 超长篇幅多文档上下文             |
   +---------------------------------------------------------------+
                                   |
                                   v
   +---------------------------------------------------------------+
   | 阶段三:基于自验证的 GRPO 强化学习训练 (Self-Grounded RL)     |
   | 输入:[包含真实线索与干扰项的 64k 上下文] + 核心提问 Q        |
   | 奖励判定:输出完全匹配答案 A 奖励 R=1,否则 R=0               |
   | 策略更新:GRPO 持续激发模型在长程注意力下的深层推理与抗噪能力  |
   +---------------------------------------------------------------+

关键概念

  • 零数据推理(Zero-Data Reasoning):模型在不依赖任何外部语料库或人类标注样本的严苛前提下,通过自我提问、自我验证、自我强化实现认知能力跃升的自演化机制。
  • 解耦式上下文展开(Decoupled Context Expansion):将「逻辑拓扑关系的构建」与「篇幅字数维度的膨胀」分离为两个串联阶段,彻底规避长文本生成的逻辑幻觉。
  • 混淆干扰项(Confounding Distractors):在合成语料中刻意引入与真实答案实体高度相似的干扰文档,迫使注意力机制完成真正的信息交叉验证,而非依赖浅层词法重合投机取巧。

范式跃迁

过去 (传统长上下文训练模式):
  预训练阶段: 依靠海量被动网页与图书数据堆砌 -> 泛化理解力强,但缺乏复杂逻辑推理深度。
  后训练阶段: 依赖闭源顶级模型 (GPT-4o) 针对外部语料出题 -> 成本高昂且受制于人。
  核心瓶颈: 缺乏可持续、可验证的大规模长上下文多跳因果训练源。

现在 (LongZero 零数据自演化模式):
  零外部语料: 大模型自主先搭构逻辑拓扑骨架,再填充生成长多文档环境。
  确定性自验证: 构造机制天然保证答案严谨唯一,完美贴合强化学习的 Reward 需求。
  规模化 RL: 通过 GRPO 端到端激发长距离注意力寻径与因果推断能力,全面超越外部合成数据。

专家评估

选题价值: 破局性极强。正面攻克了大模型强化学习进军超长上下文推理场景时最致命的「高质量训练数据匮乏」痛点。

方法成熟度: 「先紧凑构图、后解耦扩写」的设计极其精妙,用最低的计算成本完全绕开了大模型长程自回归生成中的事实漂移与逻辑短路。

实验严密性: 在两款主流开源基座模型以及 5 个极具权威性的长上下文基准(包括 L-Eval、BAMBOO、LongBench)上完成了全方位对比,效果不仅压倒原生模型,更是显著胜过基于外部语料合成的 RL baseline。

写作水准: 叙事清晰,数学建模严谨,对于长上下文数据构建中的各类捷径作弊现象剖析十分透彻。

综合评审: 强烈推荐 (strong accept) — 开创了大模型无需外部语料自演化进阶超长上下文推理的全新技术路径。

行囊 (Takeaways)

  • 强化学习扩展到 64k+ 长程推理,根本不需要数以亿计的人工标注,关键在于建立确定性的自演化生成回路。
  • 切勿直接让大模型平铺直叙生成数万字长文;必须先在紧凑空间内冻结核心逻辑 DAG,再进行外层文档膨胀。
  • 高质量对抗干扰项(Distractors)是破除长上下文注意力「关键词浅层匹配作弊」的核心灵丹。