arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2611.07263cs.CL
收藏

HyFlash:用于设备端推测解码的前缀记忆先验

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

Microsoft Applied Sciences Group(微软应用科学集团)

Jongwoo Ko, Pashmina Cameron

AI总结:

HyFlash是一种用于设备端推测解码的紧凑并行起草器,通过前缀记忆先验分离长程与细粒度建模,在更少KV存储下实现更高接受率,对浅层起草器和长上下文增益更显著。

摘要:

并行块起草通过在单次骨干网络前向传播中预测多个未来位置来加速推测解码,但设备端部署同时限制了起草器的容量和上下文存储。在严格的内存预算下,起草器必须对长程依赖和细粒度起草位置交互进行建模,同时避免全上下文注意力带来的KV缓存开销增长。我们提出HyFlash,一种紧凑的并行起草器,它引入前缀记忆先验,将长程上下文建模与有限容量下的细粒度起草位置交互分离。局部注意力捕获近期上下文和起草位置交互,而循环记忆将历史目标特征压缩为固定大小状态。这种归纳偏置使得在有限的起草端内存下能有效进行局部和长程建模。实验表明,HyFlash的接受率高于全上下文注意力,同时所需的KV存储显著更少,且对于浅层起草器和长上下文的增益更大。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑