arXiv (Cornell University) · 2019 · 130 citations · 40 references
ComputingComputer ScienceComputational LinguisticsMachine LearningNatural Language ProcessingLanguage ModelingLanguage ModelsNatural Language GenerationSentiment AnalysisText GenerationTopic ModelingAutomated Text GenerationControllable GenerationControlled Natural Language GenerationLanguage GenerationLanguage Model Fine-tuningLanguage Model PretrainingLarge Language ModelsTransformer Language Models
Large transformer‑based language models trained on massive corpora excel at generation, yet steering attributes such as topic or sentiment without architectural changes or costly fine‑tuning remains difficult. This work introduces the Plug and Play Language Model, which couples a pretrained LM with lightweight attribute classifiers to steer generation without further LM training. The attribute classifiers are simple bag‑of‑words or single‑layer models, and during sampling gradients from these classifiers push the LM’s hidden activations to guide output. Experiments show that PPLMs achieve controlled topic and sentiment generation with high fluency, and their modular design allows any combination of differentiable attribute models for diverse applications.
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
40
A Mathematical Theory of Communication
Claude E. Shannon · Bell System Technical Journal · 1948 · 80.7K citations
Equation of State Calculations by Fast Computing Machines
N. Metropolis, Arianna W. Rosenbluth, M. N. Rosenbluth et al. · The Journal of Chemical Physics · 1953 · 37.1K citations
Recursive Deep Models for Semantic Compositionality Over a Sentiment Treebank
Richard Socher, Alex Perelygin, Jean Y. Wu et al. · 2013 · 6.8K citations · Full text