LARFT:为大语言模型的长度指令跟随缩小认知-行动差距
LARFT: Closing the Cognition-Action Gap for Length Instruction Following in Large Language Models
AI总结:
LARFT通过结合强化学习与 hindsight 长度意识,提升大语言模型对输出长度的控制能力,在多个基准测试中取得显著提升。
摘要:
尽管大语言模型在复杂指令跟随任务中表现出色,但对输出长度的精确控制仍是一个持续挑战。现有方法主要通过外部施加长度信号或优化目标来强制长度约束,而忽略了模型内在的长度认知缺陷。为此,我们提出LARFT(长度感知强化微调),一种训练框架,使模型的长度认知与行动对齐。具体而言,LARFT将长度导向的强化学习与 hindsight 长度意识结合。通过将在线数据转换为 hindsight 自我意识任务,使模型学习识别自身生成的实际长度,LARFT联合优化模型的内部长度信息表示并细化其策略以满足长度约束,从而实现精确且可靠的长度指令跟随。在四个基础模型上的广泛实验表明,LARFT优于现有基线,平均在三个长度指令跟随基准测试中提升+20.92分,仅在四个通用能力基准测试中略微下降-1.45分。
英文摘要:
Despite the strong performance of Large Language Models (LLMs) on complex instruction-following tasks, precise control of output length remains a persistent challenge. Existing methods primarily attempt to enforce length constraints by externally imposing length signals or optimization objectives, while largely overlooking the underlying limitation: the model's intrinsic deficit in length cognition. To address this, we propose LARFT (Length-Aware Reinforcement Fine-Tuning), a training framework that aligns the model's length cognition with its action. Specifically, LARFT integrates length-oriented reinforcement learning with a hindsight length awareness. By transforming on-policy data into hindsight self-awareness tasks where the model learns to identify the actual length of its own generation, LARFT jointly optimizes the model's internal representation of length information and refines its policy to satisfy length constraints, thereby achieving precise and reliable length instruction following. Extensive experiments across four base models demonstrate that LARFT outperforms existing baselines, achieving an average improvement of +20.92 points across three length instruction following benchmarks with only a marginal decline of -1.45 points on four general capability benchmarks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。