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

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Zhang, Wei, Du, Lintong, Zhang, Yuanhe, Zhou, Zhenhong, Wang, Kun, Sun, Li, Su, Sen
Format: Preprint
Published: 2026
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866912974996766720
author Zhang, Wei
Du, Lintong
Zhang, Yuanhe
Zhou, Zhenhong
Wang, Kun
Sun, Li
Su, Sen
author_facet Zhang, Wei
Du, Lintong
Zhang, Yuanhe
Zhou, Zhenhong
Wang, Kun
Sun, Li
Su, Sen
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2603_19255
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle LARFT: Closing the Cognition-Action Gap for Length Instruction Following in Large Language Models
Zhang, Wei
Du, Lintong
Zhang, Yuanhe
Zhou, Zhenhong
Wang, Kun
Sun, Li
Su, Sen
Computation and Language
Artificial Intelligence
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.
title LARFT: Closing the Cognition-Action Gap for Length Instruction Following in Large Language Models
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2603.19255