mlsanityData to 7 Oct 2026

ShadowLLM: Predictor-based Contextual Sparsity for Large Language Models

arXiv 2406.16635 ↗First posted 24 Jun 2024cs.LG cs.AI cs.CLcited by 13

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

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  3. 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,710
  4. 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
  5. 2016Pointer Sentinel Mixture Modelscited by 2,992
  6. 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,818
  7. 2018The Lottery Ticket Hypothesis: Finding Sparse, Trainable Neural Networkscited by 2,250
  8. 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,114
  9. 2015Learning both Weights and Connections for Efficient Neural Networkscited by 1,998
  10. 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,413
  11. 2019Are Sixteen Heads Really Better than One?cited by 803
  12. 2018SNIP: Single-shot Network Pruning based on Connection Sensitivitycited by 802
10 more
  1. 2020Picking Winning Tickets Before Training by Preserving Gradient Flowcited by 467
  2. 2023Atom: Low-bit Quantization for Efficient and Accurate LLM Servingcited by 255
  3. 2020Neural Architecture Search without Trainingcited by 241
  4. 2019Depth-Adaptive Transformercited by 227
  5. 2021Zero-Cost Proxies for Lightweight NAScited by 194
  6. 2018Channel Gating Neural Networkscited by 80
  7. 2022Rethinking the Role of Scale for In-Context Learning: An Interpretability-based Case Study at 66 Billion Scalecited by 64
  8. 2019BlockSwap: Fisher-guided Block Substitution for Network Compression on a Budgetcited by 26
  9. 2024Learning from Students: Applying t-Distributions to Explore Accurate and Efficient Formats for LLMscited by 18
  10. 2015PerforatedCNNs: Acceleration through Elimination of Redundant Convolutionscited by 17

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 3; 2025: 7; 2026: 3.

13 papers.

Sort:

By area: