TL;DR
This paper introduces a simple, plug-and-play decoding method for controlled text generation that guides language models to include specific words or topics without additional training, ensuring diversity and fluency.
Contribution
The authors propose a novel, intuitive probability-shifting technique for controlled language generation that imposes hard constraints using annealing, outperforming existing methods.
Findings
Method guarantees inclusion of guide words in generated text
Decoding produces diverse, fluent sentences
Outperforms competing methods in human evaluations
Abstract
Large pre-trained language models have repeatedly shown their ability to produce fluent text. Yet even when starting from a prompt, generation can continue in many plausible directions. Current decoding methods with the goal of controlling generation, e.g., to ensure specific words are included, either require additional models or fine-tuning, or work poorly when the task at hand is semantically unconstrained, e.g., story generation. In this work, we present a plug-and-play decoding method for controlled language generation that is so simple and intuitive, it can be described in a single sentence: given a topic or keyword, we add a shift to the probability distribution over our vocabulary towards semantically similar words. We show how annealing this distribution can be used to impose hard constraints on language generation, something no other plug-and-play method is currently able to…
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.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
MethodsRefunds@Expedia|||How do I get a full refund from Expedia? · Attention Is All You Need · Linear Layer · Cosine Annealing · Dense Connections · Attention Dropout · Multi-Head Attention · Byte Pair Encoding · Softmax · Dropout
