BOLT: Fast Energy-based Controlled Text Generation with Tunable Biases

Xin Liu, Muhammad Khalifa, Lu Wang
5/19/2023
cs.CL

No official code found. Best implementation: launchnlp/BOLT (22 stars, last commit 2023-09-07).

Abstract

Energy-based models (EBMs) have gained popularity for controlled text generation due to their high applicability to a wide range of constraints. However, sampling from EBMs is non-trivial, as it often requires a large number of iterations to converge to plausible text, which slows down the decoding process and makes it less practical for real-world applications. In this work, we propose BOLT, which relies on tunable biases to directly adjust the language model's output logits. Unlike prior work, BOLT maintains the generator's autoregressive nature to assert a strong control on token-wise conditional dependencies and overall fluency, and thus converges faster. When compared with state-of-the-arts on controlled generation tasks using both soft constraints (e.g., sentiment control) and hard constraints (e.g., keyword-guided topic control), BOLT demonstrates significantly improved efficiency and fluency. On sentiment control, BOLT is 7x faster than competitive baselines, and more fluent in 74.4% of the evaluation samples according to human judges.

View on arXivView PDF

Code Implementations(1)

launchnlp/BOLTCommunity100%

Code for ACL 2023 paper "BOLT: Fast Energy-based Controlled Text Generation with Tunable Biases".

222C, C++May 15, 20233 years ago

Similar Papers

Cite this paper

@article{liu2023bolt,
  title  = {BOLT: Fast Energy-based Controlled Text Generation with Tunable Biases},
  author = {Xin Liu and Muhammad Khalifa and Lu Wang},
  year   = {2023},
  eprint = {2305.12018},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.12018v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2305.12018.svg)](https://codeofpaper.com/paper/2305.12018)

Discussion