Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Controlled Text Generation as Continuous Optimization with Multiple Constraints

About

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.

Sachin Kumar, Eric Malmi, Aliaksei Severyn, Yulia Tsvetkov• 2021

Related benchmarks

TaskDatasetResultRank
DetoxificationJigsaw (test)
Perplexity (PPL)381.7
29
Topic ControlAGNews (test)
Avg Topic Accuracy73.5
11
Sentiment ControlIMDB (test)
Sentiment Accuracy (Avg)75.4
11
Controllable Text GenerationMulti-Attribute Control
Average Score73.9
10
Informal-to-Formal Style TransferGYAFC (dev)
Fluency0.93
6
Style-controlled Machine TranslationOpenSubtitles (test)
BLEU42.7
5
Showing 6 of 6 rows

Other info

Follow for update