Prompt-Based Length Controlled Generation with Reinforcement Learning
Not on the map. Why?
Abstract (arXiv)
Large language models (LLMs) like ChatGPT and GPT-4 have attracted great attention given their surprising performance on a wide range of NLP tasks. Length controlled generation of LLMs emerges as an important topic, which enables users to fully leverage the capability of LLMs in more real-world scenarios like generating a proper answer or essay of a desired length. In addition, the autoregressive generation in LLMs is extremely time-consuming, while the ability of controlling this generated length can reduce the inference cost by limiting the length. Therefore, we propose a prompt-based length control method to achieve high-accuracy length controlled generation. In particular, we adopt reinforcement learning with the reward signal given by either trainable or rule-based reward models, which further enhances the length-control ability of LLMs by rewarding outputs that follows pre-defined control instruction. To enable rule-based inference, we also introduce standard prompt extractor to collect the standard control information from users' input. Experiments show that our method significantly improves the accuracy of prompt-based length control for summarization task on popular datasets like CNNDM and NYT. Both the standard prompt extractor and the RL-tuned model have show strong generalization ability to unseen control prompt templates.
Key facts. Cited by 14 papers in the map (data through 14 Oct 2026). Builds on 39 of its 57 references that are in the map. First posted on arXiv 23 Aug 2023.
Builds on
39 of 57 references.
References · 39
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2017Proximal Policy Optimization Algorithmscited by 15,215
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2019BERTScore: Evaluating Text Generation with BERTcited by 5,512
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
- 2017Deep reinforcement learning from human preferencescited by 3,912
- 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,592
- 2020Learning to summarize from human feedbackcited by 2,588
- 2015Trust Region Policy Optimizationcited by 2,580
27 more
- 2023A Survey of Large Language Modelscited by 2,576
- 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,234
- 2016Google's Neural Machine Translation System: Bridging the Gap between Human and Machine Translationcited by 1,475
- 2015Teaching Machines to Read and Comprehendcited by 1,049
- 2017A Brief Survey of Deep Reinforcement Learningcited by 483
- 2017A Deep Reinforced Model for Abstractive Summarizationcited by 365
- 2022News Summarization and Evaluation in the Era of GPT-3cited by 327
- 2019ERNIE: Enhanced Representation through Knowledge Integrationcited by 302
- 2021Recursively Summarizing Books with Human Feedbackcited by 290
- 2016Deep Reinforcement Learning for Dialogue Generationcited by 288
- 2022Is Reinforcement Learning (Not) for Natural Language Processing: Benchmarks, Baselines, and Building Blocks for Natural Language Policy Optimizationcited by 246
- 2019ERNIE 2.0: A Continual Pre-training Framework for Language Understandingcited by 231
- 2016An Actor-Critic Algorithm for Sequence Predictioncited by 159
- 2017Controllable Abstractive Summarizationcited by 110
- 2020Human-centric Dialog Training via Offline Reinforcement Learningcited by 93
- 2023A Complete Survey on Generative AI (AIGC): Is ChatGPT from GPT-4 to GPT-5 All You Need?cited by 84
- 2017Reinforcement Learning for Bandit Neural Machine Translation with Simulated Human Feedbackcited by 72
- 2020Text Generation by Learning from Demonstrationscited by 64
- 2019Positional Encoding to Control Output Sequence Lengthcited by 56
- 2023PanGu-Sigma: Towards Trillion Parameter Language Model with Sparse Heterogeneous Computingcited by 56
- 2020Asking Questions the Human Way: Scalable Question-Answer Generation from Text Corpuscited by 40
- 2016Learning-Based Single-Document Summarization with Compression and Anaphoricity Constraintscited by 34
- 2021Revisiting the Weaknesses of Reinforcement Learning for Neural Machine Translationcited by 33
- 2020Controlling Dialogue Generation with Semantic Exemplarscited by 25
- 2017End-to-End Offline Goal-Oriented Dialog Policy Learning via Policy Gradientcited by 23
- 2021LenAtten: An Effective Length Controlling Unit For Text Summarizationcited by 14
- 2022Latent Prompt Tuning for Text Summarizationcited by 6
Built on by
Citing papers per year: 2023: 2; 2024: 2; 2025: 8; 2026: 2.
14 papers.
Sort:
By area:
- 2025L1: Controlling How Long A Reasoning Model Thinks With Reinforcement Learningcited by 384
- 2023Composite Backdoor Attacks Against Large Language Modelscited by 73
- 2024Following Length Constraints in Instructionscited by 46
- 2025Scalable Chain of Thoughts via Elastic Reasoningcited by 34
- 2025ConciseRL: Conciseness-Guided Reinforcement Learning for Efficient Reasoning Modelscited by 14
- 2023Reinforcement Learning for Generative AI: A Surveycited by 11
- 2025MedReadCtrl: Personalizing medical text generation with readability-controlled instruction learningcited by 5
- 2024Fine-grained length controllable video captioning with ordinal embeddingscited by 2
- 2025From Sub-Ability Diagnosis to Human-Aligned Generation: Bridging the Gap for Text Length Control via MARKERGENcited by 2
- 2025Curriculum Design for Trajectory-Constrained Agent: Compressing Chain-of-Thought Tokens in LLMscited by 2
- 2025Controlling Summarization Length Through EOS Token Weightingcited by 1
- 2026TiCo: Time-Controllable Spoken Dialogue Modelcited by 1
- 2026TiCo: Time-Controllable Spoken Dialogue Model23 Mar 2026
- 2026Toward IIT-Inspired Consciousness in LLMs: A Reward-Based Learning Framework30 Jan 2026
- 2025Curriculum Design for Trajectory-Constrained Agent: Compressing Chain-of-Thought Tokens in LLMs4 Nov 2025
- 2025ControlMed: Adding Reasoning Control to Medical Language Model30 Jul 2025
- 2025MedReadCtrl: Personalizing medical text generation with readability-controlled instruction learning10 Jul 2025
- 2025Controlling Summarization Length Through EOS Token Weighting5 Jun 2025
- 2025ConciseRL: Conciseness-Guided Reinforcement Learning for Efficient Reasoning Models22 May 2025
- 2025Scalable Chain of Thoughts via Elastic Reasoning8 May 2025
- 2025L1: Controlling How Long A Reasoning Model Thinks With Reinforcement Learning6 Mar 2025
- 2025From Sub-Ability Diagnosis to Human-Aligned Generation: Bridging the Gap for Text Length Control via MARKERGEN19 Feb 2025
- 2024Fine-grained length controllable video captioning with ordinal embeddings27 Aug 2024
- 2024Following Length Constraints in Instructions25 Jun 2024
2 more
- 2023Composite Backdoor Attacks Against Large Language Models11 Oct 2023
- 2023Reinforcement Learning for Generative AI: A Survey28 Aug 2023
- 2025L1: Controlling How Long A Reasoning Model Thinks With Reinforcement Learningcited by 384
- 2025Scalable Chain of Thoughts via Elastic Reasoningcited by 34
- 2025ConciseRL: Conciseness-Guided Reinforcement Learning for Efficient Reasoning Modelscited by 14
- 2025Curriculum Design for Trajectory-Constrained Agent: Compressing Chain-of-Thought Tokens in LLMscited by 2
- 2025ControlMed: Adding Reasoning Control to Medical Language Modelcited by 0
- 2025Curriculum Design for Trajectory-Constrained Agent: Compressing Chain-of-Thought Tokens in LLMs4 Nov 2025
- 2025ControlMed: Adding Reasoning Control to Medical Language Model30 Jul 2025
- 2025ConciseRL: Conciseness-Guided Reinforcement Learning for Efficient Reasoning Models22 May 2025
- 2025Scalable Chain of Thoughts via Elastic Reasoning8 May 2025
- 2025L1: Controlling How Long A Reasoning Model Thinks With Reinforcement Learning6 Mar 2025
- 2023Composite Backdoor Attacks Against Large Language Modelscited by 73
- 2023Composite Backdoor Attacks Against Large Language Models11 Oct 2023
- 2024Following Length Constraints in Instructionscited by 46
- 2023Reinforcement Learning for Generative AI: A Surveycited by 11
- 2025MedReadCtrl: Personalizing medical text generation with readability-controlled instruction learningcited by 5
- 2024Fine-grained length controllable video captioning with ordinal embeddingscited by 2
- 2025From Sub-Ability Diagnosis to Human-Aligned Generation: Bridging the Gap for Text Length Control via MARKERGENcited by 2
- 2025Controlling Summarization Length Through EOS Token Weightingcited by 1
- 2026TiCo: Time-Controllable Spoken Dialogue Modelcited by 1
- 2026Toward IIT-Inspired Consciousness in LLMs: A Reward-Based Learning Frameworkcited by 0
- 2026TiCo: Time-Controllable Spoken Dialogue Model23 Mar 2026
- 2026Toward IIT-Inspired Consciousness in LLMs: A Reward-Based Learning Framework30 Jan 2026
- 2025MedReadCtrl: Personalizing medical text generation with readability-controlled instruction learning10 Jul 2025
- 2025Controlling Summarization Length Through EOS Token Weighting5 Jun 2025
- 2025From Sub-Ability Diagnosis to Human-Aligned Generation: Bridging the Gap for Text Length Control via MARKERGEN19 Feb 2025
- 2024Fine-grained length controllable video captioning with ordinal embeddings27 Aug 2024
- 2024Following Length Constraints in Instructions25 Jun 2024
- 2023Reinforcement Learning for Generative AI: A Survey28 Aug 2023
Similar, not cited
Close in wording, no citation either way
- 2024Prompt-Based Length Controlled Generation with Multiple Control Types
- 2025Plan-and-Write: Structure-Guided Length Control for LLMs without Model Retraining
- 2025LongWriter-Zero: Mastering Ultra-Long Text Generation via Reinforcement Learning
- 2025Fast on the Easy, Deep on the Hard: Efficient Reasoning via Powered Length Penalty
- 2025From General to Targeted Rewards: Surpassing GPT-4 in Open-Ended Long-Context Generation
- 2026On the Optimal Reasoning Length for RL-Trained Language Models
- 2026LARFT: Closing the Cognition-Action Gap for Length Instruction Following in Large Language Models
- 2024From Tarzan to Tolkien: Controlling the Language Proficiency Level of LLMs for Content Generation