LIFEBench: Evaluating Length Instruction Following in Large Language Models

Wei Zhang, Zhenhong Zhou, Kun Wang, Jun-Feng Fang, Rongwu Xu +8 more
5/1/2025
16 citations
benchmark-dataset

Official code: LIFEBench/LIFEBench (19 stars).

Abstract

While large language models (LLMs) can solve PhD-level reasoning problems over long context inputs, they still struggle with a seemingly simpler task: following explicit length instructions-e.g., write a 10,000-word novel. Additionally, models often generate far too short outputs, terminate prematurely, or even refuse the request.

Show full abstract

Existing benchmarks focus primarily on evaluating generations quality, but often overlook whether the generations meet length constraints. To this end, we introduce Length Instruction Following Evaluation Benchmark (LIFEBench) to comprehensively evaluate LLMs' ability to follow length instructions across diverse tasks and a wide range of specified lengths. LIFEBench consists of 10,800 instances across 4 task categories in both English and Chinese, covering length constraints ranging from 16 to 8192 words. We evaluate 26 widely-used LLMs and find that most models reasonably follow short-length instructions but deteriorate sharply beyond a certain threshold. Surprisingly, almost all models fail to reach the vendor-claimed maximum output lengths in practice, as further confirmed by our evaluations extending up to 32K words. Even long-context LLMs, despite their extended input-output windows, counterintuitively fail to improve length-instructions following. Notably, Reasoning LLMs outperform even specialized long-text generation models, achieving state-of-the-art length following. Overall, LIFEBench uncovers fundamental limitations in current LLMs' length instructions following ability, offering critical insights for future progress.

View on arXivView PDF

Code Implementations(1)

LIFEBENCH: Evaluating Length Instruction Following in Large Language Models

192

Similar Papers

Cite this paper

@article{zhang2025lifebench,
  title  = {LIFEBench: Evaluating Length Instruction Following in Large Language Models},
  author = {Wei Zhang and Zhenhong Zhou and Kun Wang and Jun-Feng Fang and Rongwu Xu and Yuan-He Zhang and Rui Wang and Ge Zhang and Xin-Feng Li and Li Sun and Lingjuan Lyu and Yang Liu and Sen Su},
  year   = {2025},
  eprint = {2505.16234},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2505.16234},
  url    = {https://doi.org/10.48550/arXiv.2505.16234},
  journal = {Neural Information Processing Systems}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2505.16234.svg)](https://codeofpaper.com/paper/2505.16234)

Discussion