English

Twist Decoding: Diverse Generators Guide Each Other

Computation and Language 2022-10-31 v2

Abstract

Many language generation models are now available for a wide range of generation tasks, including machine translation and summarization. Combining such diverse models may lead to further progress, but ensembling generation models is challenging during inference: conventional ensembling methods (e.g., shallow fusion) require that the models share vocabulary/tokenization schemes. We introduce Twist decoding, a simple and general text generation algorithm that benefits from diverse models at inference time. Our method does not assume the vocabulary, tokenization or even generation order is shared. Our extensive evaluations on machine translation and scientific paper summarization demonstrate that Twist decoding substantially outperforms each model decoded in isolation over various scenarios, including cases where domain-specific and general-purpose models are both available. Twist decoding also consistently outperforms the popular reranking heuristic where output candidates from one model are rescored by another. We hope that our work will encourage researchers and practitioners to examine generation models collectively, not just independently, and to seek out models with complementary strengths to the currently available models. Our code is available at https://github.com/jungokasai/twist_decoding.

Keywords

Cite

@article{arxiv.2205.09273,
  title  = {Twist Decoding: Diverse Generators Guide Each Other},
  author = {Jungo Kasai and Keisuke Sakaguchi and Ronan Le Bras and Hao Peng and Ximing Lu and Dragomir Radev and Yejin Choi and Noah A. Smith},
  journal= {arXiv preprint arXiv:2205.09273},
  year   = {2022}
}

Comments

Proc. of EMNLP 2022

R2 v1 2026-06-24T11:21:45.478Z