让大模型自己变长文本,无需外部数据
Language Models can Self-Lengthen to Generate Long Texts
- 用生成器和扩展器角色迭代训练,让模型自我扩展输出长度
- 在Qwen2和LLaMA3上生成长文本效果超越现有方法
- 仅依赖模型自身能力,适合开源模型长文本生成
大语言模型虽已提升长上下文处理能力,但在生成长篇一致内容方面仍有不足。这源于预训练缺乏长文本生成指令,后训练数据多为短问答对。现有方法如指令反向翻译和行为模仿面临数据质量、版权问题及专有模型使用限制。本文提出一种名为Self-Lengthen的创新迭代训练框架,仅利用大模型内在知识与技能,无需辅助数据或专有模型。该框架包含生成器和扩展器两个角色:生成器生成初始响应,再由扩展器拆分并扩展成更长内容,新结果用于迭代训练两者。通过此过程,模型逐步适应生成越来越长的响应。在多个基准测试和人工评估中,Self-Lengthen在Qwen2和LLaMA3等顶级开源模型上均优于现有方法。代码已公开于https://github.com/QwenLM/Self-Lengthen。
原文摘要 · Abstract (English)
Recent advancements in Large Language Models (LLMs) have significantly enhanced their ability to process long contexts, yet a notable gap remains in generating long, aligned outputs. This limitation stems from a training gap where pre-training lacks effective instructions for long-text generation, and post-training data primarily consists of short query-response pairs. Current approaches, such as instruction backtranslation and behavior imitation, face challenges including data quality, copyright issues, and constraints on proprietary model usage. In this paper, we introduce an innovative iterative training framework called Self-Lengthen that leverages only the intrinsic knowledge and skills of LLMs without the need for auxiliary data or proprietary models. The framework consists of two roles: the Generator and the Extender. The Generator produces the initial response, which is then split and expanded by the Extender. This process results in a new, longer response, which is used to train both the Generator and the Extender iteratively. Through this process, the models are progressively trained to handle increasingly longer responses. Experiments on benchmarks and human evaluations show that Self-Lengthen outperforms existing methods in long-text generation, when applied to top open-source LLMs such as Qwen2 and LLaMA3. Our code is publicly available at https://github.com/QwenLM/Self-Lengthen.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。