cs.CLFeb 25, 2026

LARFT: Closing the Cognition-Action Gap for Length Instruction Following in Large Language Models

Authors: Wei Zhang, Lintong Du, Yuanhe Zhang, Zhenhong Zhou, Kun Wang, Li Sun, Sen Su

Organizations: Beijing University of Posts and Telecommunications, Beijing, China · Nanyang Technological University, Singapore, Singapore

Abstract

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.

Figures & tables

Appendix figures & tables8 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. LACONIC: Length-Aware Constrained Reinforcement Learning for LLM

    Feb 16, 2026Chang Liu, Yiran Zhao, Lawrence Liu +3RL for Language ModelsRL for Language Model Reasoning

  2. Length Value Model: Scalable Value Pretraining for Token-Level Length Modeling

    Apr 29, 2026Zhen Zhang, Changyi Yang, Zijie Xia +11LLM InferenceControllable Text Generation

  3. ScopeIF: Improving Scope-Aware Precise Instruction-Following in Large Language Models via Graded Reward Modeling

    Sep 26, 2026Bosi Wen, Yilin Niu, Xiaoying Ning +3Instruction FollowingInstruction Tuning