ShadowLLM: Predictor-based Contextual Sparsity for Large Language Models
Not on the map. Why?
Abstract (arXiv)
The high power consumption and latency-sensitive deployments of large language models (LLMs) have motivated efficiency techniques like quantization and sparsity. Contextual sparsity, where the sparsity pattern is input-dependent, is crucial in LLMs because the permanent removal of attention heads or neurons from LLMs can significantly degrade accuracy. Prior work has attempted to model contextual sparsity using neural networks trained to predict activation magnitudes, which can be used to dynamically prune structures with low predicted activation magnitude. In this paper, we look beyond magnitude-based pruning criteria to assess attention head and neuron importance in LLMs. We develop a novel predictor called ShadowLLM, which can shadow the LLM behavior and enforce better sparsity patterns, resulting in over 15% improvement in end-to-end accuracy compared to prior methods. In addition, ShadowLLM achieves up to a 20% speed-up over the state-of-the-art DejaVu framework. These enhancements are validated on Llama-2 and OPT models with up to 30 billion parameters. Our code is available at hrefhttps://github.com/abdelfattah-lab/shadowllm/ShadowLLM.
Key facts. Cited by 13 papers in the map (data through 7 Oct 2026). Builds on 22 of its 34 references that are in the map. First posted on arXiv 24 Jun 2024.
Builds on
22 of 34 references.
References · 22
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,710
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
- 2016Pointer Sentinel Mixture Modelscited by 2,992
- 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,818
- 2018The Lottery Ticket Hypothesis: Finding Sparse, Trainable Neural Networkscited by 2,250
- 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,114
- 2015Learning both Weights and Connections for Efficient Neural Networkscited by 1,998
- 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,413
- 2019Are Sixteen Heads Really Better than One?cited by 803
- 2018SNIP: Single-shot Network Pruning based on Connection Sensitivitycited by 802
10 more
- 2020Picking Winning Tickets Before Training by Preserving Gradient Flowcited by 467
- 2023Atom: Low-bit Quantization for Efficient and Accurate LLM Servingcited by 255
- 2020Neural Architecture Search without Trainingcited by 241
- 2019Depth-Adaptive Transformercited by 227
- 2021Zero-Cost Proxies for Lightweight NAScited by 194
- 2018Channel Gating Neural Networkscited by 80
- 2022Rethinking the Role of Scale for In-Context Learning: An Interpretability-based Case Study at 66 Billion Scalecited by 64
- 2019BlockSwap: Fisher-guided Block Substitution for Network Compression on a Budgetcited by 26
- 2024Learning from Students: Applying t-Distributions to Explore Accurate and Efficient Formats for LLMscited by 18
- 2015PerforatedCNNs: Acceleration through Elimination of Redundant Convolutionscited by 17
Built on by
Citing papers per year: 2024: 3; 2025: 7; 2026: 3.
13 papers.
Sort:
By area:
- 2025TokenButler: Token Importance is Predictablecited by 11
- 2025SparseLoRA: Accelerating LLM Fine-Tuning with Contextual Sparsitycited by 9
- 2024Post-Training Statistical Calibration for Higher Activation Sparsitycited by 5
- 2025Unveiling Simplicities of Attention: Adaptive Long-Context Head Identificationcited by 5
- 2025Polar Sparsity: High Throughput Batched LLM Inferencing with Scalable Contextual Sparsitycited by 5
- 2025Universal Properties of Activation Sparsity in Modern Large Language Modelscited by 5
- 2025Prompt-based Depth Pruning of Large Language Modelscited by 3
- 2024Activation Sparsity Opportunities for Compressing General Large Language Modelscited by 1
- 2025GLASS: Global-Local Aggregation for Inference-time Sparsification of LLMscited by 1
- 2024FTP: A Fine-grained Token-wise Pruner for Large Language Models via Token Routingcited by 0
- 2026Continual LLM Upcycling: A Predictor-Gated Bank-Wise Sparsity Training Recipe for Dense-to-Sparse LLMscited by 0
- 2026At-the-Roofline Sparse Tensor Contractions on Vector Processors for Transformer Inferencecited by 0
1 more
- 2026Where Activation Sparsity and KV-Cache Sparsity Cross in LLM Decoding27 Sep 2026
- 2026At-the-Roofline Sparse Tensor Contractions on Vector Processors for Transformer Inference28 Jul 2026
- 2026Continual LLM Upcycling: A Predictor-Gated Bank-Wise Sparsity Training Recipe for Dense-to-Sparse LLMs9 Jun 2026
- 2025Universal Properties of Activation Sparsity in Modern Large Language Models30 Aug 2025
- 2025GLASS: Global-Local Aggregation for Inference-time Sparsification of LLMs19 Aug 2025
- 2025SparseLoRA: Accelerating LLM Fine-Tuning with Contextual Sparsity19 Jun 2025
- 2025Polar Sparsity: High Throughput Batched LLM Inferencing with Scalable Contextual Sparsity20 May 2025
- 2025TokenButler: Token Importance is Predictable10 Mar 2025
- 2025Unveiling Simplicities of Attention: Adaptive Long-Context Head Identification11 Feb 2025
- 2025Prompt-based Depth Pruning of Large Language Models4 Feb 2025
- 2024FTP: A Fine-grained Token-wise Pruner for Large Language Models via Token Routing16 Dec 2024
- 2024Activation Sparsity Opportunities for Compressing General Large Language Models13 Dec 2024
1 more
- 2025TokenButler: Token Importance is Predictablecited by 11
- 2026Where Activation Sparsity and KV-Cache Sparsity Cross in LLM Decodingcited by 0
- 2026Where Activation Sparsity and KV-Cache Sparsity Cross in LLM Decoding27 Sep 2026
- 2025TokenButler: Token Importance is Predictable10 Mar 2025
- 2025SparseLoRA: Accelerating LLM Fine-Tuning with Contextual Sparsitycited by 9
- 2024Post-Training Statistical Calibration for Higher Activation Sparsitycited by 5
- 2025Unveiling Simplicities of Attention: Adaptive Long-Context Head Identificationcited by 5
- 2025Polar Sparsity: High Throughput Batched LLM Inferencing with Scalable Contextual Sparsitycited by 5
- 2025Universal Properties of Activation Sparsity in Modern Large Language Modelscited by 5
- 2025Prompt-based Depth Pruning of Large Language Modelscited by 3
- 2024Activation Sparsity Opportunities for Compressing General Large Language Modelscited by 1
- 2025GLASS: Global-Local Aggregation for Inference-time Sparsification of LLMscited by 1
- 2024FTP: A Fine-grained Token-wise Pruner for Large Language Models via Token Routingcited by 0
- 2026Continual LLM Upcycling: A Predictor-Gated Bank-Wise Sparsity Training Recipe for Dense-to-Sparse LLMscited by 0
- 2026At-the-Roofline Sparse Tensor Contractions on Vector Processors for Transformer Inferencecited by 0
- 2026At-the-Roofline Sparse Tensor Contractions on Vector Processors for Transformer Inference28 Jul 2026
- 2026Continual LLM Upcycling: A Predictor-Gated Bank-Wise Sparsity Training Recipe for Dense-to-Sparse LLMs9 Jun 2026
- 2025Universal Properties of Activation Sparsity in Modern Large Language Models30 Aug 2025
- 2025GLASS: Global-Local Aggregation for Inference-time Sparsification of LLMs19 Aug 2025
- 2025SparseLoRA: Accelerating LLM Fine-Tuning with Contextual Sparsity19 Jun 2025
- 2025Polar Sparsity: High Throughput Batched LLM Inferencing with Scalable Contextual Sparsity20 May 2025
- 2025Unveiling Simplicities of Attention: Adaptive Long-Context Head Identification11 Feb 2025
- 2025Prompt-based Depth Pruning of Large Language Models4 Feb 2025
- 2024FTP: A Fine-grained Token-wise Pruner for Large Language Models via Token Routing16 Dec 2024
- 2024Activation Sparsity Opportunities for Compressing General Large Language Models13 Dec 2024
- 2024Post-Training Statistical Calibration for Higher Activation Sparsity10 Dec 2024