paper-with-me

Papers

Superposed Decoding: Multiple Generations from a Single Autoregressive Inference Pass

2024-05-28 · Ethan Shen, Alan Fan, Sarah M. Pratt, Jae Sung Park, Matthew Wallingford, Sham M. Kakade, Ari Holtzman, Ranjay Krishna, Ali Farhadi, Aditya Kusupati

Many applications today provide users with multiple auto-complete drafts as they type, including GitHub's code completion, Gmail's smart compose, and Apple's messaging auto-suggestions. Under the hood, language models support this by running an autoregressive inference pass to provide a draft. Consequently, providing $k$ drafts to the user requires running an expensive language model $k$ times. To alleviate the computation cost of running $k$ inference passes, we propose Superposed Decoding, a new decoding algorithm that generates $k$ drafts at the computation cost of one autoregressive inference pass. We achieve this by feeding a superposition of the most recent token embeddings from the $k$ drafts as input to the next decoding step of the language model. At every inference step we combine the $k$ drafts with the top-$k$ tokens to get $k^2$ new drafts and cache the $k$ most likely options, using an n-gram interpolation with minimal compute overhead to filter out incoherent generations. Our experiments show that $k$ drafts from Superposed Decoding are at least as coherent and factual as Nucleus Sampling and Greedy Decoding respectively, while being at least $2.44\times$ faster for $k\ge3$. In a compute-normalized setting, user evaluations demonstrably favor text generated by Superposed Decoding over Nucleus Sampling. Superposed Decoding can also be combined with other decoding strategies, resulting in universal coverage gains when scaling inference time compute. Code and more examples open-sourced at https://github.com/RAIVNLab/SuperposedDecoding.

📄 PDF Abstract BibTeX arXiv:2405.18400

Code (1)

raivnlab/superposeddecoding 공식 구현 pytorch

Tasks

Code CompletionLanguage ModelingLanguage Modelling

Similar Papers 제목 키워드 기반

Glancing Transformer for Non-Autoregressive Neural Machine Translation

2020-08-18 · ACL 2021 5 · Lihua Qian, Hao Zhou, Yu Bao, Mingxuan Wang 외

Recent work on non-autoregressive neural machine translation (NAT) aims at improving the efficiency by parallel decoding without sacrificing the quality. However, existing NAT methods are either inferior to Transformer o…

Language ModelingLanguage ModellingMachine TranslationTranslation

Thinking in Uncertainty: Mitigating Hallucinations in MLRMs with Latent Entropy-Aware Decoding

2026-03-09 · Zhongxing Xu, Zhonghua Wang, Zhe Qian, Dachuan Shi 외 arxiv

Recent advancements in multimodal large reasoning models (MLRMs) have significantly improved performance in visual question answering. However, we observe that transition words (e.g., because, however, and wait) are clos…

Visual Question Answering

Non-Autoregressive Minimum Bayes' Risk Decoding for Fast Speech Recognition

2026-06-16 · Hiroyuki Deguchi, Takatomo Kano, Katsuki Chousa, Marc Delcroix arxiv

Non-autoregressive (NAR) decoding generates output tokens in parallel, making speech recognition faster than autoregressive decoding, which generates them sequentially from left to right. However, the recognition perform…

Speech Recognition

Parallel Decoder Transformer: Planner-Seeded Latent Coordination for Synchronized Parallel Decoding

2025-12-10 · Logan Robbins arxiv

Autoregressive language models can often identify parallel subproblems, but standard decoding exposes only a single left-to-right output interface. External orchestration methods can launch multiple prompts concurrently,…

Break the Sequential Dependency of LLM Inference Using Lookahead Decoding

2024-02-03 · Yichao Fu, Peter Bailis, Ion Stoica, Hao Zhang

Autoregressive decoding of large language models (LLMs) is memory bandwidth bounded, resulting in high latency and significant wastes of the parallel processing power of modern accelerators. Existing methods for accelera…

Code Completion