mlsanityData to 7 Oct 2026

Automatic Task Detection and Heterogeneous LLM Speculative Decoding

arXiv 2505.08600 ↗First posted 13 May 2025cs.CLcited by 0

On the map: Efficient LLM inference and serving → Speculative decoding

Abstract (arXiv)

Speculative decoding, which combines a draft model with a target model, has emerged as an effective approach to accelerate large language model (LLM) inference. However, existing methods often face a trade-off between the acceptance rate and decoding speed in downstream tasks due to the limited capacity of the draft model, making it difficult to ensure efficiency across diverse tasks. To address this problem, we propose a speculative decoding algorithm tailored for downstream task optimization. It includes an automatic task partitioning and assigning method, which automatically categorizes downstream tasks into different sub-tasks and assigns them to a set of heterogeneous draft models. Each draft model is aligned with the target model using task-specific data, thereby enhancing the consistency of inference results. In addition, our proposed method incorporates an online lightweight prompt classifier to dynamically route prompts to the appropriate draft model. Experimental results demonstrate that the proposed method improves draft accuracy by 6% to 50% over vanilla speculative decoding, while achieving a speedup of 1.10x to 2.64x in LLM inference.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Speculative decoding, one of 12 directions in Efficient LLM inference and serving. Builds on 23 of its 37 references that are in the map. First posted on arXiv 13 May 2025.

Builds on

23 of 37 references.

Closest ancestors · 11

Same direction, newest first

  1. 2024MagicDec: Breaking the Latency-Throughput Tradeoff for Long Context Generation with Speculative Decoding20 Aug
  2. 2024Speculative Diffusion Decoding: Accelerating Language Generation through Diffusion10 Aug
  3. 2024SpecDec++: Boosting Speculative Decoding via Adaptive Candidate Lengths30 May
  4. 2024Dynamic Speculation Lookahead Accelerates Speculative Decoding of Large Language Models7 May
  5. 2024Clover: Regressive Lightweight Speculative Decoding with Sequential Knowledge1 May
  6. 2024Sequoia: Scalable, Robust, and Hardware-aware Speculative Decoding19 Feb
  7. 2024Unlocking Efficiency in Large Language Model Inference: A Comprehensive Survey of Speculative Decoding15 Jan
  8. 2023Accelerating LLM Inference with Staged Speculative Decoding8 Aug
  9. 2023Speculative Decoding with Big Little Decoder15 Feb
  10. 2023Accelerating Large Language Model Decoding with Speculative Sampling2 Feb
  11. 2022Fast Inference from Transformers via Speculative Decoding30 Nov

Other references · 12

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
  4. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  5. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
  6. 2020Scaling Laws for Neural Language Modelscited by 6,411
  7. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
  8. 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,283
  9. 2024How Far Are We to GPT-4V? Closing the Gap to Commercial Multimodal Models with Open-Source Suitescited by 1,033
  10. 2024LayerSkip: Enabling Early Exit Inference and Self-Speculative Decodingcited by 302
  11. 2024OpenDataLab: Empowering General Artificial Intelligence with Open Datasetscited by 27
  12. 2024LoRA Meets Dropout under a Unified Frameworkcited by 17

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2024Closer Look at Efficient Inference Methods: A Survey of Speculative Decoding
  2. 2026SPEED-Bench: A Unified and Diverse Benchmark for Speculative Decoding
  3. 2025Accelerating LLM Inference with Lossless Speculative Decoding Algorithms for Heterogeneous Vocabularies
  4. 2024Speculative Streaming: Fast LLM Inference without Auxiliary Models
  5. 2023Cascade Speculative Drafting for Even Faster LLM Inference
  6. 2024Speculative Decoding with CTC-based Draft Model for LLM Inference Acceleration
  7. 2024Decoding Speculative Decoding
  8. 2024Towards Fast Multilingual LLM Inference: Speculative Decoding and Specialized Drafters