Research on the Length Controllability of Chinese Large Language Model Outputs Based on Post-Processing Correction

Large language models often deviate from the target word count when following length constraints such as “generate X words.” Existing studies mostly focus on content quality, while paying relatively less attention to format control, especially the accuracy of length control. To address this issue, this study builds a Chinese text generation benchmark covering 5 topics and 4 word-count levels, and evaluates three representative models: DeepSeek-V3, Tongyi Qianwen (Qwen2.5), and Kimi. Based on this, a lightweight post-processing framework, LAPP (Length-Aware Post-Processing), is proposed. When the output is too long, LAPP uses sentence-level intelligent truncation; when the output is too short, it calls Qwen2.5-1.5B-Instruct for semantics-preserving expansion, and controls the length error within ±10% through iterative correction. The experimental results show that the original average deviation rates of the three models are 11.93%–38.70%, which are reduced to about 5% after LAPP correction, and the pass rate increases from 20%–70% to 85%–100%. The semantic preservation results show an average BERTScore of 0.97 between the corrected and original texts, suggesting that the framework improves length control while largely keeping the original meaning. This study shows that the “rough generation + precise correction” approach is effective for word-count control, and offers a low-cost, transferable way to improve the instruction-following ability of large language models.

Authors

Institutions

Publication Details

Journal
Computers and artificial intelligence.
Published
2026-10-29
DOI
https://doi.org/10.70267/cai.v3n5.3339
Primary Topic
Topic Modeling
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Research on the Length Controllability of Chinese Large Language Model Outputs Based on Post-Processing Correction

Yiheng Xu
1 links
Computers and artificial intelligence.
Topic Modeling
article

Research on the Length Controllability of Chinese Large Language Model Outputs Based on Post-Processing Correction

Yiheng Xu
article en

Abstract

Large language models often deviate from the target word count when following length constraints such as “generate X words.” Existing studies mostly focus on content quality, while paying relatively less attention to format control, especially the accuracy of length control. To address this issue, this study builds a Chinese text generation benchmark covering 5 topics and 4 word-count levels, and evaluates three representative models: DeepSeek-V3, Tongyi Qianwen (Qwen2.5), and Kimi. Based on this, a lightweight post-processing framework, LAPP (Length-Aware Post-Processing), is proposed. When the output is too long, LAPP uses sentence-level intelligent truncation; when the output is too short, it calls Qwen2.5-1.5B-Instruct for semantics-preserving expansion, and controls the length error within ±10% through iterative correction. The experimental results show that the original average deviation rates of the three models are 11.93%–38.70%, which are reduced to about 5% after LAPP correction, and the pass rate increases from 20%–70% to 85%–100%. The semantic preservation results show an average BERTScore of 0.97 between the corrected and original texts, suggesting that the framework improves length control while largely keeping the original meaning. This study shows that the “rough generation + precise correction” approach is effective for word-count control, and offers a low-cost, transferable way to improve the instruction-following ability of large language models.

Computers and artificial intelligence.Vol. 3(5)
Shanghai University (CN)
Openalex Percentile: Top 14%
Topic Modeling
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon