LongZero:无需外部数据提升大模型长上下文推理
LongZero: Enhancing Long-Context Reasoning in LLMs from Zero Data
一篇文章讲怎么让模型自己给自己出长文本考题,不用外部数据就用 GRPO 练出更强长上下文推理,还公开了实验对比,做长文本方向值得看看。
LongZero 是一种让 LLM 自主提升长上下文推理的训练方法,全程不依赖外部语料或教师模型。模型先以结构化形式自写问题、答案及支撑证据,再将证据扩展为长多文档上下文,生成多跳推理与多轮检索任务,并用 GRPO 训练。论文在 2 个 LLM、5 个长上下文推理基准上验证,成绩超过基于外部语料合成数据的 RL 基线。
LongZero: Enhancing Long-Context Reasoning in LLMs from Zero Data
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 $\textbf{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.