HyFlash: A Prefix-Memory Prior for On-Device Speculative Decoding
Abstract
Parallel block drafting accelerates speculative decoding by predicting multiple future positions in a single backbone pass, but on-device deployment constrains both drafter capacity and context storage. Under tight memory budgets, drafters must model long-range dependencies and fine-grained draft-position interactions without the growing KV-cache overhead of full-context attention. We propose HyFlash, a compact parallel drafter that introduces a prefix-memory prior to separate long-range context modeling from fine-grained draft-position interactions with limited capacity. Local attention captures recent context and draft-position interactions, while recurrent memory compresses historical target features into fixed-size states. This inductive bias enables effective local and long-range modeling with bounded draft-side memory. Experiments show that HyFlash achieves higher acceptance than full-context attention with substantially less KV storage and with larger gains for shallow drafters and long contexts.
Create a lesson
Related papers
Look Back, Draft Ahead: Corrective Prefix Attention for Parallel Speculative Decoding
Shared title terminologycs.CLMohammad Mahdi Moradi, Ali Pourranjbar, Zongzuo Wang et al.
CLAIMGATE: Cautious On-Device Checking of Spoken Legal and Clinical Claims
Shared title terminologycs.CLPeter Forcha, Harshitha Kaje Kusumadhara, Audrey Moguem Souop et al.
Hibana: Fast Agentic Inference on Unified-Memory Devices
Shared title terminologycs.CLYahya Emara, Chi-Chih Chang, Anthony Fei et al.
LooM: Loop-Invariant Memory for Causal Encoder-Decoder Language Models
Shared title terminologycs.CLLele Yang, Muxi Diao, Zhonghao Yan et al.
LimeTree: Linear-Memory Graph Neural Networks over Tree-Graphs for Resource-Efficient Language Modeling and Context Extrapolation
Shared title terminologycs.CLElisabeth Fink
Semantic-aware Decoding for Diverse Text-to-SQL under Schema Ambiguity
Shared title terminologycs.CLYuxuan Jiang, Anna Mitsopoulou, Apostolos Koukouvinis et al.