Controlled Text Generation as Continuous Optimization with Multiple Constraints

By Sachin Kumar, Eric Malmi, Aliaksei Severyn, Yulia Tsvetkov. 2021

90 citations recorded by the source corpus.

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.

Subfields: Artificial Intelligence, Computer Vision and Pattern Recognition, Natural Language Processing

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Yulia Tsvetkov
  2. Jiawei Han
  3. Vidhisha Balachandran
  4. Sachin Kumar
  5. Antonios Anastasopoulos
  6. Jiaxin Huang
  7. Lucille Njoo
  8. Yu Zhang

In Computer Vision and Pattern Recognition

  1. Sachin Kumar
  2. Yulia Tsvetkov
  3. Vidhisha Balachandran
  4. Jiawei Han
  5. Yu Meng
  6. Tarek F. Abdelzaher
  7. Biswajit Paria
  8. Martin Michalski

In Natural Language Processing

  1. Yulia Tsvetkov
  2. Sachin Kumar
  3. Vidhisha Balachandran
  4. Antonios Anastasopoulos
  5. Lucille Njoo
  6. Biswajit Paria
  7. Jiawei Han
  8. Yu Meng

Citations in the corpus