LongZero:从零数据增强大语言模型的长上下文推理

·

研究论文 · 2026/10/29

LongZero 是一种无需外部数据即可提升大语言模型长上下文推理能力的方法。现有强化学习方法依赖长、多样、有挑战且可验证的训练数据,但人工标注昂贵、自然数据稀缺,且合成方法依赖外部语料或更强教师模型。LongZero 让模型自行生成多跳推理任务:先以紧凑结构化形式合成问题、答案及支持证据,再将证据扩展为长多文档上下文;同时结合自生成的多轮检索任务,使用 GRPO 训练。在两个大语言模型和五个长上下文推理基准上,LongZero 优于基于外部语料合成数据的强化学习基线,并能泛化到真实任务。

LongZero 摆脱了对外部数据和更强教师模型的依赖,为长上下文推理的强化学习提供了一种可扩展的自生成数据路径,实验证明其能泛化到真实任务并超越外部数据基线,对推动 LLM 长上下文能力有实际意义。

Reinforcement learning (RL) is an effective way to strengthen the long-context reasoning of large language models (LLMs), but it needs training data that are long, diverse, challenging, and verifiable. Human annotation of such data is expensive, naturally occurring data are too scarce to sustain RL, and existing synthesis methods depend on external corpora or stronger teacher models, which become harder to obtain as the trained models get stronger. Recently, RL from zero data, in which a model learns from tasks it proposes itself, has achieved excellent performance, but existing methods target short-context tasks. Therefore, we propose LongZero, a method that lets an LLM improve its own long-context reasoning without any external data. Instead of writing questions and answers over existing documents, LongZero first has the model synthesize the question and answer with its supporting evidence in a compact structured form, and only then separately expands the evidence into a long multi-document context. LongZero combines these self-written multi-hop reasoning tasks with self-written multi-round retrieval tasks and trains the model with GRPO. We evaluate LongZero on two LLMs across five long-context reasoning benchmarks and compare it with RL on data synthesized from external corpora. Experimental results show that LongZero can generalize to real tasks, and outperforms both baselines, suggesting a viable and promising path to improving long-context reasoning of LLMs.

阅读原文

参与讨论