paper-with-me

Papers

Nearest Neighbor Speculative Decoding for LLM Generation and Attribution

2024-05-29 · Minghan Li, Xilun Chen, Ari Holtzman, Beidi Chen, Jimmy Lin, Wen-tau Yih, Xi Victoria Lin

Large language models (LLMs) often hallucinate and lack the ability to provide attribution for their generations. Semi-parametric LMs, such as kNN-LM, approach these limitations by refining the output of an LM for a given prompt using its nearest neighbor matches in a non-parametric data store. However, these models often exhibit slow inference speeds and produce non-fluent texts. In this paper, we introduce Nearest Neighbor Speculative Decoding (NEST), a novel semi-parametric language modeling approach that is capable of incorporating real-world text spans of arbitrary length into the LM generations and providing attribution to their sources. NEST performs token-level retrieval at each inference step to compute a semi-parametric mixture distribution and identify promising span continuations in a corpus. It then uses an approximate speculative decoding procedure that accepts a prefix of the retrieved span or generates a new token. NEST significantly enhances the generation quality and attribution rate of the base LM across a variety of knowledge-intensive tasks, surpassing the conventional kNN-LM method and performing competitively with in-context retrieval augmentation. In addition, NEST substantially improves the generation speed, achieving a 1.8x speedup in inference time when applied to Llama-2-Chat 70B.

📄 PDF Abstract BibTeX arXiv:2405.19325

Code (0)

등록된 구현이 없습니다.

Tasks

Language ModelingLanguage ModellingRetrieval

Methods 이 논문이 사용한 방법론

BASE 설명 없음
NesT NesT stacks canonical transformer layers to conduct local self-attention on every image block independently, and then "nests" them hierarchically. Coupling of processed…

Similar Papers 제목 키워드 기반

KNN-SSD: Enabling Dynamic Self-Speculative Decoding via Nearest Neighbor Layer Set Optimization

2025-05-22 · Mingbo Song, Heming Xia, Jun Zhang, Chak Tou Leong 외

Speculative Decoding (SD) has emerged as a widely used paradigm to accelerate the inference of large language models (LLMs) without compromising generation quality. It works by efficiently drafting multiple tokens using …

Multi-Scale Local Speculative Decoding for Image Generation

2026-01-08 · Elia Peruzzo, Guillaume Sautière, Amirhossein Habibian arxiv

Autoregressive (AR) models have achieved remarkable success in image synthesis, yet their sequential nature imposes significant latency constraints. Speculative Decoding offers a promising avenue for acceleration, but ex…

Image Generation

DReSD: Dense Retrieval for Speculative Decoding

2025-02-21 · Milan Gritta, Huiyin Xue, Gerasimos Lampouras

Speculative decoding (SD) accelerates Large Language Model (LLM) generation by using an efficient draft model to propose the next few tokens, which are verified by the LLM in a single forward call, reducing latency while…

Language ModelingLanguage ModellingLarge Language ModelRetrieval

Nearest Neighbor Non-autoregressive Text Generation

2022-08-26 · Ayana Niwa, Sho Takase, Naoaki Okazaki

Non-autoregressive (NAR) models can generate sentences with less computation than autoregressive models but sacrifice generation quality. Previous studies addressed this issue through iterative decoding. This study propo…

DecoderMachine TranslationText GenerationTranslation

Temperature-Centric Investigation of Speculative Decoding with Knowledge Distillation

2024-10-14 · Siru Ouyang, Shuohang Wang, Minhao Jiang, Ming Zhong 외

Speculative decoding stands as a pivotal technique to expedite inference in autoregressive (large) language models. This method employs a smaller draft model to speculate a block of tokens, which the target model then ev…

Knowledge Distillation