Locate&Edit: Energy-based Text Editing for Efficient, Flexible, and Faithful Controlled Text Generation
Hye Ryung Son, Jay-Yoon Lee

TL;DR
Locate&Edit is an energy-based method for controlled text generation that efficiently edits base language model outputs to better satisfy constraints while preserving original semantics, applicable to black-box models.
Contribution
It introduces a flexible, energy-based editing approach that works with black-box language models and improves constraint satisfaction and semantic preservation.
Findings
L&E achieves better semantic preservation than baseline methods.
L&E operates efficiently by targeting specific text spans for editing.
Fine-grained energy models enhance constraint satisfaction.
Abstract
Recent approaches to controlled text generation (CTG) often involve manipulating the weights or logits of base language models (LMs) at decoding time. However, these methods are inapplicable to latest black-box LMs and ineffective at preserving the core semantics of the base LM's original generations. In this work, we propose Locate&Edit(L&E), an efficient and flexible energy-based approach to CTG, which edits text outputs from a base LM using off-the-shelf energy models. Given text outputs from the base LM, L&E first locates spans that are most relevant to constraints (e.g., toxicity) utilizing energy models, and then edits these spans by replacing them with more suitable alternatives. Importantly, our method is compatible with black-box LMs, as it requires only the text outputs. Also, since L&E doesn't mandate specific architecture for its component models, it can work with a diverse…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsTopic Modeling
MethodsBalanced Selection
