mlsanityData to 14 Oct 2026

Prompt-Based Length Controlled Generation with Reinforcement Learning

arXiv 2308.12030 ↗First posted 23 Aug 2023cs.CL cs.AI cs.LGcited by 14

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

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  2. 2020Language Models are Few-Shot Learnerscited by 32,419
  3. 2022Training language models to follow instructions with human feedbackcited by 15,971
  4. 2017Proximal Policy Optimization Algorithmscited by 15,215
  5. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
  6. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
  7. 2019BERTScore: Evaluating Text Generation with BERTcited by 5,512
  8. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
  9. 2017Deep reinforcement learning from human preferencescited by 3,912
  10. 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,592
  11. 2020Learning to summarize from human feedbackcited by 2,588
  12. 2015Trust Region Policy Optimizationcited by 2,580
27 more
  1. 2023A Survey of Large Language Modelscited by 2,576
  2. 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,234
  3. 2016Google's Neural Machine Translation System: Bridging the Gap between Human and Machine Translationcited by 1,475
  4. 2015Teaching Machines to Read and Comprehendcited by 1,049
  5. 2017A Brief Survey of Deep Reinforcement Learningcited by 483
  6. 2017A Deep Reinforced Model for Abstractive Summarizationcited by 365
  7. 2022News Summarization and Evaluation in the Era of GPT-3cited by 327
  8. 2019ERNIE: Enhanced Representation through Knowledge Integrationcited by 302
  9. 2021Recursively Summarizing Books with Human Feedbackcited by 290
  10. 2016Deep Reinforcement Learning for Dialogue Generationcited by 288
  11. 2022Is Reinforcement Learning (Not) for Natural Language Processing: Benchmarks, Baselines, and Building Blocks for Natural Language Policy Optimizationcited by 246
  12. 2019ERNIE 2.0: A Continual Pre-training Framework for Language Understandingcited by 231
  13. 2016An Actor-Critic Algorithm for Sequence Predictioncited by 159
  14. 2017Controllable Abstractive Summarizationcited by 110
  15. 2020Human-centric Dialog Training via Offline Reinforcement Learningcited by 93
  16. 2023A Complete Survey on Generative AI (AIGC): Is ChatGPT from GPT-4 to GPT-5 All You Need?cited by 84
  17. 2017Reinforcement Learning for Bandit Neural Machine Translation with Simulated Human Feedbackcited by 72
  18. 2020Text Generation by Learning from Demonstrationscited by 64
  19. 2019Positional Encoding to Control Output Sequence Lengthcited by 56
  20. 2023PanGu-Sigma: Towards Trillion Parameter Language Model with Sparse Heterogeneous Computingcited by 56
  21. 2020Asking Questions the Human Way: Scalable Question-Answer Generation from Text Corpuscited by 40
  22. 2016Learning-Based Single-Document Summarization with Compression and Anaphoricity Constraintscited by 34
  23. 2021Revisiting the Weaknesses of Reinforcement Learning for Neural Machine Translationcited by 33
  24. 2020Controlling Dialogue Generation with Semantic Exemplarscited by 25
  25. 2017End-to-End Offline Goal-Oriented Dialog Policy Learning via Policy Gradientcited by 23
  26. 2021LenAtten: An Effective Length Controlling Unit For Text Summarizationcited by 14
  27. 2022Latent Prompt Tuning for Text Summarizationcited by 6

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2023: 2; 2024: 2; 2025: 8; 2026: 2.

14 papers.

Sort:

By area:

Similar, not cited

Close in wording, no citation either way

  1. 2024Prompt-Based Length Controlled Generation with Multiple Control Types
  2. 2025Plan-and-Write: Structure-Guided Length Control for LLMs without Model Retraining
  3. 2025LongWriter-Zero: Mastering Ultra-Long Text Generation via Reinforcement Learning
  4. 2025Fast on the Easy, Deep on the Hard: Efficient Reasoning via Powered Length Penalty
  5. 2025From General to Targeted Rewards: Surpassing GPT-4 in Open-Ended Long-Context Generation
  6. 2026On the Optimal Reasoning Length for RL-Trained Language Models
  7. 2026LARFT: Closing the Cognition-Action Gap for Length Instruction Following in Large Language Models
  8. 2024From Tarzan to Tolkien: Controlling the Language Proficiency Level of LLMs for Content Generation