PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
June 24, 20240 citationsOpen Access

ShadowLLM: Predictor-based Contextual Sparsity for Large Language Models

View Full Paper
YAYash AkhauriAAAhmed F. AbouElhamayedJDJordan Dotzel

Key Points

Key points are not available for this paper at this time.

Abstract

The high power consumption and latency-sensitive deployments of large language models (LLMs) have motivated 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 developed 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 without increasing latency compared to previous methods. ShadowLLM achieves up to a 20\% speed-up over the state-of-the-art DejaVu framework. These enhancements are validated on models with up to 30 billion parameters. Our code is available at https: //github. com/abdelfattah-lab/shadowₗlm/ShadowLLM.

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Akhauri et al. (2024) studied this question.

synapsesocial.com/papers/68e63919b6db6435875cb521https://doi.org/10.48550/arxiv.2406.16635
Ask AI
Helpful
Bookmark
Share
View Full Paper

Also Consider

Synapse has enriched 5 closely related papers on similar clinical questions. Consider them for comparative context:

  1. 1Polar Sparsity: High Throughput Batched LLM Inferencing with Scalable Contextual Sparsity2025
  2. 2Enabling High-Sparsity Foundational Llama Models with Efficient Pretraining and Deployment2024
  3. 3Sparsity-Accelerated Training for Large Language Models2024
  4. 4Training-Free Activation Sparsity in Large Language Models2024 · 3 citations
  5. 5Learn To be Efficient: Build Structured Sparsity in Large Language Models2024