SpecExtend: A Drop-in Enhancement for Speculative Decoding of Long Sequences
원문 초록
Speculative decoding is a widely adopted technique for accelerating inference in large language models (LLMs), but its performance degrades on long inputs due to increased attention cost and reduced draft accuracy. We introduce SpecExtend, a drop-in enhancement that improves the performance of speculative decoding on long sequences without any additional training. SpecExtend integrates efficient attention mechanisms such as FlashAttention and Hybrid Tree Attention into both the draft and target models, reducing latency across all stages. To improve draft accuracy and speed, we propose Cross-model Retrieval, a novel KV cache update strategy that uses the target model's attention scores to dynamically select relevant context for the draft model. Extensive evaluations on three long-context understanding datasets show that SpecExtend accelerates standard tree-based speculative decoding by up to 2.22x for inputs up to 16K tokens, providing an effective solution for speculative decoding of long sequences. The code is available at https://github.com/jycha98/SpecExtend .
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
M+: Extending MemoryLLM with Scalable Long-Term Memory
LongBench: A Bilingual, Multitask Benchmark for Long Context Understanding
Ref-Long: Benchmarking the Long-context Referencing Capability of Long-context Language Models
Cache Me If You Can: How Many KVs Do You Need for Effective Long-Context LMs?
MSTAR: Box-free Multi-query Scene Text Retrieval with Attention Recycling
How Far Are We from Optimal Reasoning Efficiency?
토론
이 논문과 연결된 포럼 글이 아직 없습니다.