paper-with-me

홈 › Papers

Arithmetic Sampling: Parallel Diverse Decoding for Large Language Models

2022-10-18 · Luke Vilnis, Yury Zemlyanskiy, Patrick Murray, Alexandre Passos, Sumit Sanghai

Decoding methods for large language models often trade-off between diversity of outputs and parallelism of computation. Methods such as beam search and Gumbel top-k sampling can guarantee a different output for each element of the beam, but are not easy to parallelize. Alternatively, methods such as temperature sampling and its modifications (top-k sampling, nucleus sampling, typical decoding, and others), are embarrassingly parallel, but have no guarantees about duplicate samples. We present a framework for sampling according to an arithmetic code book implicitly defined by a large language model, compatible with common sampling variations, with provable beam diversity under certain conditions, as well as being embarrassingly parallel and providing unbiased and consistent expectations from the original model. We demonstrate the effectiveness of our approach on WMT machine translation, more than halving the standard deviation when estimating expected BLEU score reward, and closing the BLEU score gap between independent sampling and beam search by up to 63%.

📄 PDF Abstract BibTeX arXiv:2210.15458

Code (1)

google-research/google-research 공식 구현 tf

Tasks

DiversityLanguage ModelingLanguage ModellingLarge Language ModelMachine Translation

Similar Papers 제목 키워드 기반

Quasi-random Multi-Sample Inference for Large Language Models

2024-11-09 · Aditya Parashar, Aditya Vikram Singh, Avinash Amballa, Jinlin Lai 외

Large language models (LLMs) are often equipped with multi-sample decoding strategies. An LLM implicitly defines an arithmetic code book, facilitating efficient and embarrassingly parallelizable \textbf{arithmetic sampli…

DiversityGSM8KMachine TranslationText Generation+1

Generation Order and Parallel Decoding in Masked Diffusion Models: An Information-Theoretic Perspective

2026-01-30 · Shaorong Zhang, Longxuan Yu, Rob Brekelmans, Luhan Tang 외 arxiv

Masked Diffusion Models (MDMs) significantly accelerate inference by trading off sequential determinism. However, the theoretical mechanisms governing generation order and the risks inherent in parallelization remain und…

Arithmetic Reasoning

Beyond Next-Token Prediction: A Performance Characterization of Diffusion versus Autoregressive Language Models

2025-10-05 · Minseo Kim, Coleman Hooper, Aditya Tomar, Chenfeng Xu 외 arxiv

Large Language Models (LLMs) have achieved state-of-the-art performance on a broad range of Natural Language Processing (NLP) tasks, including document processing and code generation. Autoregressive Language Models (ARMs…

Code Generation

Faster LLM Inference via Sequential Monte Carlo

2026-04-17 · Yahya Emara, Mauricio Barba da Costa, Chi-Chih Chang, Cameron Freer 외 arxiv

Speculative decoding (SD) accelerates language model inference by drafting tokens from a cheap proposal model and verifying them against an expensive target model via rejection sampling. Because rejection truncates the d…

Constrained Decoding for Diffusion Language Models via Efficient Inference over Finite Automata

2026-07-08 · Meihua Dang, Stefano Ermon arxiv

Constrained decoding is essential for serving LLMs, ensuring that generated outputs follow specific structures such as JSON schema-formatted function calls. Existing systems are designed for autoregressive models and ass…