Controlled Text Generation as Continuous Optimization with Multiple Constraints
摘要
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.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 27 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- COLD Decoding: Energy-based Constrained Text Generation with Langevin Dynamics 引用了 Plug and Play Language Models: A Simple Approach to Controlled Text Generation
- COLD Decoding: Energy-based Constrained Text Generation with Langevin Dynamics 引用了 BERTScore: Evaluating Text Generation with BERT
- COLD Decoding: Energy-based Constrained Text Generation with Langevin Dynamics 引用了 Language Models are Few-Shot Learners
- Decoding-Time Language Model Alignment with Multiple Objectives 引用了 COLD Decoding: Energy-based Constrained Text Generation with Langevin Dynamics
- Decoding-Time Language Model Alignment with Multiple Objectives 引用了 Language Models are Few-Shot Learners
- Generating Training Data with Language Models: Towards Zero-Shot Language Understanding 引用了 Plug and Play Language Models: A Simple Approach to Controlled Text Generation
- Generating Training Data with Language Models: Towards Zero-Shot Language Understanding 引用了 Neural Text Generation With Unlikelihood Training
- Generating Training Data with Language Models: Towards Zero-Shot Language Understanding 引用了 RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Models
- Generating Training Data with Language Models: Towards Zero-Shot Language Understanding 引用了 Language Models are Few-Shot Learners
- RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Models 引用了 Plug and Play Language Models: A Simple Approach to Controlled Text Generation
- RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Models 引用了 Neural Text Generation With Unlikelihood Training
- Automatically Auditing Large Language Models via Discrete Optimization 引用了 COLD Decoding: Energy-based Constrained Text Generation with Langevin Dynamics
- Automatically Auditing Large Language Models via Discrete Optimization 引用了 RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Models
- Tuning Language Models as Training Data Generators for Augmentation-Enhanced Few-Shot Learning 引用了 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 引用了 Generating Training Data with Language Models: Towards Zero-Shot Language Understanding
- Tuning Language Models as Training Data Generators for Augmentation-Enhanced Few-Shot Learning 引用了 Language Models are Few-Shot Learners
引用它的顶会 Paper27
- Generating Training Data with Language Models: Towards Zero-Shot Language UnderstandingYu Meng, Jiaxin Huang, Yu Zhang, Jiawei HanNeurIPS 2022 · 309 次引用
- Automatically Auditing Large Language Models via Discrete OptimizationErik Jones, Anca D. Dragan, Aditi Raghunathan, Jacob SteinhardtICML 2023 · 232 次引用
- COLD Decoding: Energy-based Constrained Text Generation with Langevin DynamicsLianhui Qin, Sean Welleck, Daniel Khashabi, Yejin ChoiNeurIPS 2022 · 217 次引用
- Decoding-Time Language Model Alignment with Multiple ObjectivesRuizhe Shi, Yifang Chen, Yushi Hu, Alisa Liu 等NeurIPS 2024 · 111 次引用
- Tuning Language Models as Training Data Generators for Augmentation-Enhanced Few-Shot LearningYu Meng, Martin Michalski, Jiaxin Huang, Yu Zhang 等ICML 2023 · 64 次引用
它引用的 Paper16
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah 等NeurIPS 2020 · 64,255 次引用
- BERTScore: Evaluating Text Generation with BERTTianyi Zhang, Varsha Kishore, Felix Wu, Kilian Q. Weinberger 等ICLR 2020 · 8,443 次引用
- Plug and Play Language Models: A Simple Approach to Controlled Text GenerationSumanth Dathathri, Andrea Madotto, Janice Lan, Jane Hung 等ICLR 2020 · 1,166 次引用
- RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language ModelsSamuel Gehman, Suchin Gururangan, Maarten Sap, Yejin Choi 等EMNLP Findings 2020 · 692 次引用
- Neural Text Generation With Unlikelihood TrainingSean Welleck, Ilia Kulikov, Stephen Roller, Emily Dinan 等ICLR 2020 · 683 次引用
相关 Paper
- Gradient-based Constrained Sampling from Language ModelsSachin Kumar, Biswajit Paria, Yulia TsvetkovEMNLP 2022 · 22 次引用
- Attribute Alignment: Controlling Text Generation from Pre-trained Language ModelsDian Yu, Zhou Yu, Kenji SagaeEMNLP Findings 2021 · 26 次引用
- GRACE: Gradient-guided Controllable Retrieval for Augmenting Attribute-based Text GenerationZhihua Wen, Zhiliang Tian, Zhen Huang, Yuxin Yang 等ACL Findings 2023 · 3 次引用
- CoCon: A Self-Supervised Approach for Controlled Text GenerationAlvin Chan, Yew-Soon Ong, Bill Pung, Aston Zhang 等ICLR 2021 · 16 次引用
- Controllable Protein Sequence Generation with LLM Preference OptimizationXiangyu Liu, Yi Liu, Silei Chen, Wei HuAAAI 2025 · 8 次引用
