PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
October 20, 20250 citationsOpen Access

Polar Sparsity: High Throughput Batched LLM Inferencing with Scalable Contextual Sparsity

View Full Paper
SSSusav ShresthaBSBrad SettlemyerNDNikoli Dryden

Key Points

  • Maximizing inference speed, Polar Sparsity achieves up to 2.2 times acceleration in context-aware tasks.
  • Hardware-efficient GPU kernels enable selective computation for both MLP and Attention layers, optimizing performance.
  • Contextual sparsity enables effective scalability to large batch sizes, improving throughput without accuracy loss.
  • Accelerating LLM inference has essential implications for real-world applications requiring low latency and high efficiency.

Abstract

Accelerating large language model (LLM) inference is critical for real-world deployments requiring high throughput and low latency. Contextual sparsity, where each token dynamically activates only a small subset of the model parameters, shows promise but does not scale to large batch sizes due to union of active neurons quickly approaching dense computation. We introduce Polar Sparsity, highlighting a key shift in sparsity importance from MLP to Attention layers as we scale batch size and sequence length. While MLP layers become more compute-efficient under batching, their sparsity vanishes. In contrast, attention becomes increasingly more expensive at scale, while their head sparsity remains stable and batch-invariant. We develop hardware-efficient, sparsity-aware GPU kernels for selective MLP and Attention computations, delivering up to \ (2. 2\) end-to-end speedups for models like OPT, LLaMA-2 \& 3, across various batch sizes and sequence lengths without compromising accuracy. To our knowledge, this is the first work to demonstrate that contextual sparsity can scale effectively to large batch sizes, delivering substantial inference acceleration with minimal changes, making Polar Sparsity practical for large-scale, high-throughput LLM deployment systems. Our code is available at: https: //github. com/susavlsh10/Polar-Sparsity.

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Shrestha et al. (2025) studied this question.

synapsesocial.com/papers/68f5a78aab63786de5b460d8https://doi.org/10.48550/arxiv.2505.14884
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. 1MInference 1.0: Accelerating Pre-filling for Long-Context LLMs via Dynamic Sparse Attention2024 · 4 citations
  2. 2ShadowLLM: Predictor-based Contextual Sparsity for Large Language Models2024
  3. 3Enabling High-Sparsity Foundational Llama Models with Efficient Pretraining and Deployment2024
  4. 4Efficient LLM Training and Serving with Heterogeneous Context Sharding among Attention Heads2024
  5. 5Self-Selected Attention Span for Accelerating Large Language Model Inference2024 · 1 citations