Lune

NeurIPS2021Top-tier venue

Controlled Text Generation as Continuous Optimization with Multiple Constraints

Sachin Kumar, Eric Malmi, Aliaksei Severyn, Yulia Tsvetkov

Abstract

As large-scale language model pretraining pushes the state-of-the-art in text generation, recent work has turned to controlling attributes of the text such models generate. While modifying the pretrained models via fine-tuning remains the popular approach, it incurs a significant computational cost and can be infeasible due to lack of appropriate data. As an alternative, we propose MUCOCO-a flexible and modular algorithm for controllable inference from pretrained models. We formulate the decoding process as an optimization problem which allows for multiple attributes we aim to control to be easily incorporated as differentiable constraints to the optimization. By relaxing this discrete optimization to a continuous one, we make use of Lagrangian multipliers and gradient-descent based techniques to generate the desired text. We evaluate our approach on controllable machine translation and style transfer with multiple sentence-level attributes and observe significant improvements over baselines.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

27 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • COLD Decoding: Energy-based Constrained Text Generation with Langevin Dynamics cites Plug and Play Language Models: A Simple Approach to Controlled Text Generation
  • COLD Decoding: Energy-based Constrained Text Generation with Langevin Dynamics cites BERTScore: Evaluating Text Generation with BERT
  • COLD Decoding: Energy-based Constrained Text Generation with Langevin Dynamics cites Language Models are Few-Shot Learners
  • Decoding-Time Language Model Alignment with Multiple Objectives cites COLD Decoding: Energy-based Constrained Text Generation with Langevin Dynamics
  • Decoding-Time Language Model Alignment with Multiple Objectives cites Language Models are Few-Shot Learners
  • Generating Training Data with Language Models: Towards Zero-Shot Language Understanding cites Plug and Play Language Models: A Simple Approach to Controlled Text Generation
  • Generating Training Data with Language Models: Towards Zero-Shot Language Understanding cites Neural Text Generation With Unlikelihood Training
  • Generating Training Data with Language Models: Towards Zero-Shot Language Understanding cites RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Models
  • Generating Training Data with Language Models: Towards Zero-Shot Language Understanding cites Language Models are Few-Shot Learners
  • RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Models cites Plug and Play Language Models: A Simple Approach to Controlled Text Generation
  • RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Models cites Neural Text Generation With Unlikelihood Training
  • Automatically Auditing Large Language Models via Discrete Optimization cites COLD Decoding: Energy-based Constrained Text Generation with Langevin Dynamics
  • Automatically Auditing Large Language Models via Discrete Optimization cites RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Models
  • Tuning Language Models as Training Data Generators for Augmentation-Enhanced Few-Shot Learning cites Plug and Play Language Models: A Simple Approach to Controlled Text Generation
  • Tuning Language Models as Training Data Generators for Augmentation-Enhanced Few-Shot Learning cites Generating Training Data with Language Models: Towards Zero-Shot Language Understanding
  • Tuning Language Models as Training Data Generators for Augmentation-Enhanced Few-Shot Learning cites Language Models are Few-Shot Learners
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers27

  1. Generating Training Data with Language Models: Towards Zero-Shot Language UnderstandingYu Meng, Jiaxin Huang, Yu Zhang, Jiawei HanNeurIPS 2022 · 309 citations
  2. Automatically Auditing Large Language Models via Discrete OptimizationErik Jones, Anca D. Dragan, Aditi Raghunathan, Jacob SteinhardtICML 2023 · 232 citations
  3. COLD Decoding: Energy-based Constrained Text Generation with Langevin DynamicsLianhui Qin, Sean Welleck, Daniel Khashabi, Yejin ChoiNeurIPS 2022 · 217 citations
  4. Decoding-Time Language Model Alignment with Multiple ObjectivesRuizhe Shi, Yifang Chen, Yushi Hu, Alisa Liu et al.NeurIPS 2024 · 111 citations
  5. Tuning Language Models as Training Data Generators for Augmentation-Enhanced Few-Shot LearningYu Meng, Martin Michalski, Jiaxin Huang, Yu Zhang et al.ICML 2023 · 64 citations

Builds on16

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
  2. BERTScore: Evaluating Text Generation with BERTTianyi Zhang, Varsha Kishore, Felix Wu, Kilian Q. Weinberger et al.ICLR 2020 · 8,443 citations
  3. Plug and Play Language Models: A Simple Approach to Controlled Text GenerationSumanth Dathathri, Andrea Madotto, Janice Lan, Jane Hung et al.ICLR 2020 · 1,166 citations
  4. RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language ModelsSamuel Gehman, Suchin Gururangan, Maarten Sap, Yejin Choi et al.EMNLP Findings 2020 · 692 citations
  5. Neural Text Generation With Unlikelihood TrainingSean Welleck, Ilia Kulikov, Stephen Roller, Emily Dinan et al.ICLR 2020 · 683 citations

Related papers

  1. Gradient-based Constrained Sampling from Language ModelsSachin Kumar, Biswajit Paria, Yulia TsvetkovEMNLP 2022 · 22 citations
  2. Attribute Alignment: Controlling Text Generation from Pre-trained Language ModelsDian Yu, Zhou Yu, Kenji SagaeEMNLP Findings 2021 · 26 citations
  3. GRACE: Gradient-guided Controllable Retrieval for Augmenting Attribute-based Text GenerationZhihua Wen, Zhiliang Tian, Zhen Huang, Yuxin Yang et al.ACL Findings 2023 · 3 citations
  4. CoCon: A Self-Supervised Approach for Controlled Text GenerationAlvin Chan, Yew-Soon Ong, Bill Pung, Aston Zhang et al.ICLR 2021 · 16 citations
  5. Controllable Protein Sequence Generation with LLM Preference OptimizationXiangyu Liu, Yi Liu, Silei Chen, Wei HuAAAI 2025 · 8 citations
Dusk over the sea between two cliffs drawn in fine vertical lines