Manuscript Offprint

arXiv:2611.07263

HyFlash: A Prefix-Memory Prior for On-Device Speculative Decoding

Jongwoo Ko, Pashmina Cameron

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

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.

1 Introduction

Speculative decoding accelerates autoregressive language model inference by using a lightweight drafter to propose tokens that a larger target model verifies in parallel (Leviathan et al., 2023). Recent parallel block drafters, such as DFlash (Chen et al., 2026) and DSpark (Cheng et al., 2026), further reduce drafting latency by predicting multiple future positions in a single backbone pass. However, maintaining high draft acceptance requires effectively modeling both historical context and interactions among draft positions while keeping drafting overhead small.

This challenge becomes particularly pronounced in on-device deployment (Microsoft, 2024; Apple, 2024; NVIDIA, 2026), where memory is severely constrained (Liu et al., 2024; Xu et al., 2024a). Target weights, KV cache, and runtime overhead leave only a small residual budget for drafter parameters and context storage (Tiwari et al., 2025). Under limited model capacity, jointly modeling long-range dependencies and fine-grained intra-block interactions becomes difficult, even with full-context attention. Moreover, full attention incurs growing KV memory, while windowed attention restricts direct access to distant information (Yang et al., 2026; Yuan et al., 2026). These limitations are especially relevant to long-horizon conversations and tool-using agents.

Existing studies address memory-efficient speculative decoding through different approaches. LongSpec (Yang et al., 2026) bounds draft-side KV memory, while MASW (Yuan et al., 2026) compresses historical KV representations. H-Spec (Jiang et al., 2026) combines recurrent drafting with target-KV reuse, whereas ReaDy (Sun et al., 2026) leverages recurrent states from hybrid target models. These advances motivate a complementary question: how can a capacity-constrained parallel drafter effectively model both local interactions and long-range context without relying on additional depth or full-context attention?

We propose HyFlash, a compact parallel drafter built around a prefix-memory prior for capacity-constrained drafting. HyFlash maintains persistent memory of committed target features while using local attention for recent context and bidirectional draft-position interactions. Rather than updating recurrent states through speculative positions, HyFlash lets them query a shared, read-only prefix memory. Our contributions are threefold:

  • We characterize the capacity–context tension in on-device parallel drafting, highlighting the challenges of modeling long-range dependencies with shallow drafters.

  • We introduce a prefix-memory prior that separates historical context modeling from local and intra-block interactions, enabling effective draft-

(a) Target budget

12 GiB capLeft (GiB)
4b/16K11.450.55
2b/16K8.043.96
2b/32K11.160.84
4b/32K14.58-2.58

Figure

(b) Evidence distance

Figure 1: Motivation for memory-constrained drafting. (a) Analytical target memory usage under an illustrative 12 GiB inference budget for 16 GB-class devices (Appendix B). (b) Acceptance across evidence distances for independently trained two-layer drafters with equal 5 MiB logical context budgets.

ing with bounded context memory.

• We demonstrate improved acceptance and decoding efficiency across two target models, with capacity scaling and targeted interventions validating the benefits of this inductive bias under limited model capacity.

References (26)