paper-with-me

Papers

Hydra: Sequentially-Dependent Draft Heads for Medusa Decoding

2024-02-07 · Zachary Ankner, Rishab Parthasarathy, Aniruddha Nrusimha, Christopher Rinard, Jonathan Ragan-Kelley, William Brandon

To combat the memory bandwidth-bound nature of autoregressive LLM inference, previous research has proposed the speculative decoding frame-work. To perform speculative decoding, a small draft model proposes candidate continuations of the input sequence that are then verified in parallel by the base model. One way to specify the draft model, as used in the recent Medusa decoding framework, is as a collection of lightweight heads, called draft heads, that operate on the base model's hidden states. To date, all existing draft heads have been sequentially independent, meaning that they speculate tokens in the candidate continuation independently of any preceding tokens in the candidate continuation. In this work, we propose Hydra heads: a sequentially-dependent drop-in replacement for standard draft heads that significantly improves the accuracy of draft head speculation. We further explore the design space of Hydra head training objectives and architectures, and propose a carefully tuned Hydra head recipe, which we call Hydra++, that improves decoding throughput by up to 1.31x and 2.70x compared to Medusa decoding and autoregressive de-coding respectively. Overall, Hydra heads are a simple and well-motivated intervention on standard draft heads that significantly improve the end-to-end speed of draft head-based speculative decoding. We make our code publicly available at https://github.com/zankner/Hydra.

📄 PDF Abstract BibTeX arXiv:2402.05109

Code (1)

zankner/hydra 공식 구현 pytorch

Methods 이 논문이 사용한 방법론

BASE 설명 없음
SPEED The monocular depth estimation (MDE) is the task of estimating depth from a single frame. This information is an essential knowledge in many computer vision tasks such as scene…
Hydra 설명 없음

Similar Papers 제목 키워드 기반

Amphista: Bi-directional Multi-head Decoding for Accelerating LLM Inference

2024-06-19 · Zeping Li, Xinlong Yang, Ziheng Gao, Ji Liu 외

Large Language Models (LLMs) inherently use autoregressive decoding, which lacks parallelism in inference and results in significantly slow inference speed. While methods such as Medusa constructs parallelized heads, the…

Medusa: Simple LLM Inference Acceleration Framework with Multiple Decoding Heads

2024-01-19 · Tianle Cai, Yuhong Li, Zhengyang Geng, Hongwu Peng 외

Large Language Models (LLMs) employ auto-regressive decoding that requires sequential computation, with each step reliant on the previous one's output. This creates a bottleneck as each step necessitates moving the full …

Mirror Speculative Decoding: Breaking the Serial Barrier in LLM Inference

2025-10-15 · Nikhil Bhendawade, Kumari Nishu, Arnav Kundu, Chris Bartels 외 arxiv

Speculative decoding accelerates LLM inference by using a draft model to look ahead, but gains are capped by the cost of autoregressive draft generation: increasing draft size elevates acceptance rates but introduces add…

EntMTP: Accelerating LLM Inference with Entropy Guided Multi Token Prediction

2026-06-25 · Carrie Chen arxiv

Multi-token prediction has been shown to increase data density during training, improve downstream text-generation quality, and serves as the defacto approach for self-speculative decoding. Existing foundation and open s…

MEDUSA: Multi-scale Encoder-Decoder Self-Attention Deep Neural Network Architecture for Medical Image Analysis

2021-10-12 · Hossein Aboutalebi, Maya Pavlova, Hayden Gunraj, Mohammad Javad Shafiee 외

Medical image analysis continues to hold interesting challenges given the subtle characteristics of certain diseases and the significant overlap in appearance between diseases. In this work, we explore the concept of sel…

DecoderMedical Image Analysis