Lune

ICLR2020Top-tier venue

Decoding As Dynamic Programming For Recurrent Autoregressive Models

Najam Zaidi, Trevor Cohn, Gholamreza Haffari

Abstract

Decoding in autoregressive models (ARMs) consists of searching for a high scoring output sequence under the trained model. Standard decoding methods, based on unidirectional greedy algorithm or beam search, are suboptimal due to error propagation and myopic decisions which do not account for future steps in the generation process. In this paper we present a novel decoding approach based on the method of auxiliary coordinates (Carreira-Perpinan & Wang, 2014) to address the aforementioned shortcomings. Our method introduces discrete variables for output tokens, and auxiliary continuous variables representing the states of the underlying ARM. The auxiliary variables lead to a factor graph approximation of the ARM, whose maximum a posteriori (MAP) solution is found exactly using dynamic programming. The MAP solution is then used to recreate an improved factor graph approximation of the ARM via updated auxiliary variables. We then extend our approach to decode in an ensemble of ARMs, possibly with different generation orders, which is out of reach for the standard unidirectional decoding algorithms. Experiments on the text infilling task over SWAG and Daily Dialogue datasets show that our decoding method is superior to strong competing decoding methods.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

2 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers2

  1. Blank Language ModelsTianxiao Shen, Victor Quach, Regina Barzilay, Tommi S. JaakkolaEMNLP 2020 · 8 citations
  2. Twist Decoding: Diverse Generators Guide Each OtherJungo Kasai, Keisuke Sakaguchi, Ronan Le Bras, Hao Peng et al.EMNLP 2022

Related papers

  1. Self-Speculative Decoding Accelerates Lossless Inference in Any-Order and Any-Subset Autoregressive ModelsGabe Guo, Stefano ErmonICLR 2026
  2. Train for the Worst, Plan for the Best: Understanding Token Ordering in Masked DiffusionsJaeyeon Kim, Kulin Shah, Vasilis Kontonis, Sham M. Kakade et al.ICML 2025
  3. LUGS: Latent-aware Guidance for Efficient Unmasking in Diffusion Large Language ModelsNuanqiao Shan, Kairong Han, Xinpeng Dong, Kun KuangICML 2026
  4. HeLo: Learning-Free Lookahead Decoding for Conversation InfillingIvan Lee, Taylor Berg-KirkpatrickEMNLP Findings 2022
  5. Enabling Arbitrary Translation Objectives with Adaptive Tree SearchWang Ling, Wojciech Stokowiec, Domenic Donato, Chris Dyer et al.ICLR 2022
Dusk over the sea between two cliffs drawn in fine vertical lines