mlsanityData to 7 Oct 2026

TriForce: Lossless Acceleration of Long Sequence Generation with Hierarchical Speculative Decoding

arXiv 2404.11912 ↗First posted 18 Apr 2024cs.CL cs.LGcited by 98

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

Abstract (arXiv)

With large language models (LLMs) widely deployed in long content generation recently, there has emerged an increasing demand for efficient long-sequence inference support. However, key-value (KV) cache, which is stored to avoid re-computation, has emerged as a critical bottleneck by growing linearly in size with the sequence length. Due to the auto-regressive nature of LLMs, the entire KV cache will be loaded for every generated token, resulting in low utilization of computational cores and high latency. While various compression methods for KV cache have been proposed to alleviate this issue, they suffer from degradation in generation quality. We introduce TriForce, a hierarchical speculative decoding system that is scalable for long sequence generation. This approach leverages the original model weights and dynamic sparse KV cache via retrieval as a draft model, which serves as an intermediate layer in the hierarchy and is further speculated by a smaller model to reduce its drafting latency. TriForce not only facilitates impressive speedups for Llama2-7B-128K, achieving up to 2.31× on an A100 GPU but also showcases scalability in handling even longer contexts. For the offloading setting on two RTX 4090 GPUs, TriForce achieves 0.108s/tokenunicodex2014only half as slow as the auto-regressive baseline on an A100, which attains 7.78× on our optimized offloading system. Additionally, TriForce performs 4.86× than DeepSpeed-Zero-Inference on a single RTX 4090 GPU. TriForce's robustness is highlighted by its consistently outstanding performance across various temperatures. The code is available at https://github.com/Infini-AI-Lab/TriForce.

Key facts. Cited by 98 papers in the map (data through 7 Oct 2026). Placed in Speculative decoding, one of 12 directions in Efficient LLM inference and serving. Builds on 49 of its 57 references that are in the map. First posted on arXiv 18 Apr 2024.

Builds on

49 of 57 references.

Closest ancestors · 15

Same direction, newest first

  1. 2024Sequoia: Scalable, Robust, and Hardware-aware Speculative Decoding19 Feb
  2. 2024Hydra: Sequentially-Dependent Draft Heads for Medusa Decoding7 Feb
  3. 2024Break the Sequential Dependency of LLM Inference Using Lookahead Decoding3 Feb
  4. 2024Decoding Speculative Decoding2 Feb
  5. 2024EAGLE: Speculative Sampling Requires Rethinking Feature Uncertainty26 Jan
  6. 2024Medusa: Simple LLM Inference Acceleration Framework with Multiple Decoding Heads19 Jan
  7. 2024Unlocking Efficiency in Large Language Model Inference: A Comprehensive Survey of Speculative Decoding15 Jan
  8. 2023Cascade Speculative Drafting for Even Faster LLM Inference18 Dec
  9. 2023REST: Retrieval-Based Speculative Decoding14 Nov
  10. 2023SpecTr: Fast Speculative Decoding via Optimal Transport23 Oct
  11. 2023Accelerating LLM Inference with Staged Speculative Decoding8 Aug
  12. 2023Accelerating Transformer Inference for Translation via Parallel Decoding17 May
3 more
  1. 2023Speculative Decoding with Big Little Decoder15 Feb
  2. 2023Accelerating Large Language Model Decoding with Speculative Sampling2 Feb
  3. 2022Fast Inference from Transformers via Speculative Decoding30 Nov

Other references · 34

  1. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
  2. 2023GPT-4 Technical Reportcited by 18,132
  3. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  4. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
  5. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
  6. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
  7. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
  8. 2020Longformer: The Long-Document Transformercited by 3,362
  9. 2023Mistral 7Bcited by 3,065
  10. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
  11. 2023A Survey of Large Language Modelscited by 2,537
  12. 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,201
22 more
  1. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
  2. 2022SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Modelscited by 1,338
  3. 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Modelscited by 805
  4. 2019Compressive Transformers for Long-Range Sequence Modellingcited by 699
  5. 2017The NarrativeQA Reading Comprehension Challengecited by 590
  6. 2023YaRN: Efficient Context Window Extension of Large Language Modelscited by 584
  7. 2024KVQuant: Towards 10 Million Context Length LLM Inference with KV Cache Quantizationcited by 571
  8. 2023FlexGen: High-Throughput Generative Inference of Large Language Models with a Single GPUcited by 567
  9. 2022Efficiently Scaling Transformer Inferencecited by 529
  10. 2023Model Tells You What to Discard: Adaptive KV Cache Compression for LLMscited by 466
  11. 2023Scissorhands: Exploiting the Persistence of Importance Hypothesis for LLM KV Cache Compression at Test Timecited by 428
  12. 2022DeepSpeed Inference: Enabling Efficient Inference of Transformer Models at Unprecedented Scalecited by 403
  13. 2023LLM-QAT: Data-Free Quantization Aware Training for Large Language Modelscited by 320
  14. 2018Blockwise Parallel Decoding for Deep Autoregressive Modelscited by 318
  15. 2023Deja Vu: Contextual Sparsity for Efficient LLMs at Inference Timecited by 247
  16. 2024LLM Maybe LongLM: Self-Extend LLM Context Window Without Tuningcited by 133
  17. 2024Long Context Compression with Activation Beaconcited by 101
  18. 2024No Token Left Behind: Reliable KV Cache Compression via Importance-Aware Mixed Precision Quantizationcited by 99
  19. 2023FlashDecoding++: Faster Large Language Model Inference on GPUscited by 70
  20. 2024WKVQuant: Quantizing Weight and Key/Value Cache for Large Language Models Gains Morecited by 69
  21. 2024DocFinQA: A Long-Context Financial Reasoning Datasetcited by 59
  22. 2023SPEED: Speculative Pipelined Execution for Efficient Decodingcited by 47

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 25; 2025: 45; 2026: 28.

98 papers.

Sort:

By area:

  1. 2024MInference 1.0: Accelerating Pre-filling for Long-Context LLMs via Dynamic Sparse Attentioncited by 375
  2. 2024EAGLE-2: Faster Inference of Language Models with Dynamic Draft Treescited by 362
  3. 2025EAGLE-3: Scaling up Inference Acceleration of Large Language Models via Training-Time Testcited by 318
  4. 2024Ada-KV: Optimizing KV Cache Eviction by Adaptive Budget Allocation for Efficient LLM Inferencecited by 230
  5. 2024ShadowKV: KV Cache in Shadows for High-Throughput Long-Context LLM Inferencecited by 132
  6. 2025A Survey of Context Engineering for Large Language Modelscited by 120
  7. 2024MagicPIG: LSH Sampling for Efficient LLM Generationcited by 112
  8. 2024Fast Best-of-N Decoding via Speculative Rejectioncited by 112
  9. 2025Reward-Guided Speculative Decoding for Efficient LLM Reasoningcited by 106
  10. 2024MagicDec: Breaking the Latency-Throughput Tradeoff for Long Context Generation with Speculative Decodingcited by 87
  11. 2024SpecDec++: Boosting Speculative Decoding via Adaptive Candidate Lengthscited by 73
  12. 2024SCBench: A KV Cache-Centric Analysis of Long-Context Methodscited by 59
38 more
  1. 2025MiniCPM4: Ultra-Efficient LLMs on End Devicescited by 51
  2. 2024Challenges in Deploying Long-Context Transformers: A Theoretical Peak Performance Analysiscited by 44
  3. 2025KVTuner: Sensitivity-Aware Layer-Wise Mixed-Precision KV Cache Quantization for Efficient and Nearly Lossless LLM Inferencecited by 36
  4. 2024A Theoretical Perspective for Speculative Decoding Algorithmcited by 28
  5. 2025CriticalKV: Optimizing KV Cache Eviction from an Output Perturbation Perspectivecited by 28
  6. 2025QuantSpec: Self-Speculative Decoding with Hierarchical Quantized KV Cachecited by 26
  7. 2026DART: Diffusion-Inspired Speculative Decoding for Fast LLM Inferencecited by 23
  8. 2024Multi-Layer Transformers Gradient Can be Approximated in Almost Linear Timecited by 22
  9. 2025Speculative Decoding and Beyond: An In-Depth Survey of Techniquescited by 22
  10. 2024ParallelSpec: Parallel Drafter for Efficient Speculative Decodingcited by 20
  11. 2025FR-Spec: Accelerating Large-Vocabulary Language Models via Frequency-Ranked Speculative Samplingcited by 20
  12. 2024A Tighter Complexity Analysis of SparseGPTcited by 19
  13. 2025LongSpec: Long-Context Lossless Speculative Decoding with Efficient Drafting and Verificationcited by 19
  14. 2025Towards Optimal Multi-draft Speculative Decodingcited by 19
  15. 2024FMint: Bridging Human Designed and Data Pretrained Models for Differential Equation Foundation Modelcited by 18
  16. 2025AdaSpec: Adaptive Speculative Decoding for Fast, SLO-Aware Large Language Model Servingcited by 18
  17. 2025BanditSpec: Adaptive Speculative Decoding via Bandit Algorithmscited by 18
  18. 2024A Survey of Generative Techniques for Spatial-Temporal Data Miningcited by 14
  19. 2025RAPID: Long-Context Inference with Retrieval-Augmented Speculative Decodingcited by 14
  20. 2025PDTrim: Targeted Pruning for Prefill-Decode Disaggregation in Inferencecited by 14
  21. 2025Taming the Fragility of KV Cache Eviction in LLM Inferencecited by 14
  22. 2025DREAM: Drafting with Refined Target Features and Entropy-Adaptive Cross-Attention Fusion for Multimodal Speculative Decodingcited by 13
  23. 2025FastMTP: Accelerating LLM Inference with Enhanced Multi-Token Predictioncited by 13
  24. 2025Fast Large Language Model Collaborative Decoding via Speculationcited by 12
  25. 2025Kinetics: Rethinking Test-Time Scaling Lawscited by 11
  26. 2024Boosting Lossless Speculative Decoding via Feature Sampling and Partial Alignment Distillationcited by 10
  27. 2025Rectified Sparse Attentioncited by 10
  28. 2025ML-SpecQD: Multi-Level Speculative Decoding with Quantized Draftscited by 9
  29. 2025CLaSp: In-Context Layer Skip for Self-Speculative Decodingcited by 9
  30. 2025Accelerating Large-Scale Reasoning Model Inference with Sparse Self-Speculative Decodingcited by 9
  31. 2025RAD: Redundancy-Aware Distillation for Hybrid Models via Self-Speculative Decodingcited by 8
  32. 2024Temperature-Centric Investigation of Speculative Decoding with Knowledge Distillationcited by 7
  33. 2024Inevitable Trade-off between Watermark Strength and Speculative Sampling Efficiency for Language Modelscited by 7
  34. 2024FastDraft: How to Train Your Draftcited by 7
  35. 2025AttentionPredictor: Temporal Patterns Matter for KV Cache Compressioncited by 7
  36. 2025Fractured Chain-of-Thought Reasoningcited by 7
  37. 2025SpecPV: Improving Self-Speculative Decoding for Long-Context Generation via Partial Verificationcited by 7
  38. 2025Draft-based Approximate Inference for LLMscited by 6

50 most cited of 98 All 98 (JSON)

Similar, not cited

Close in wording, no citation either way

  1. 2025SpeCache: Speculative Key-Value Caching for Efficient Generation of LLMs
  2. 2025KVComp: A High-Performance, LLM-Aware, Lossy Compression Framework for KV Cache
  3. 2025TailorKV: A Hybrid Framework for Long-Context Inference via Tailored KV Cache Optimization
  4. 2026DualDecoder: Accelerate Long Context LLM Inference by Predictive Prefetch
  5. 2025PackKV: Reducing KV Cache Memory Footprint through LLM-Aware Lossy Compression
  6. 2024Keep the Cost Down: A Review on Methods to Optimize LLM' s KV-Cache Consumption
  7. 2024Recursive Speculative Decoding: Accelerating LLM Inference via Sampling Without Replacement
  8. 2025CARD: A Cache-Assisted Parallel Speculative Decoding Framework via Query-and-Correct Paradigm for Accelerating LLM Inference