paper-with-me

Papers

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

2025-05-20 · Susav Shrestha, Brad Settlemyer, Nikoli Dryden, Narasimha Reddy

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\times\) 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.

📄 PDF Abstract BibTeX arXiv:2505.14884

Code (1)

susavlsh10/polar-sparsity 공식 구현 jax

Tasks

GPULarge Language Model

Methods 이 논문이 사용한 방법론

Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Attention 설명 없음
OPT OPT is a suite of decoder-only pre-trained transformers ranging from 125M to 175B parameters. The model uses an AdamW optimizer and weight decay of 0.1. It follows a linear…

Similar Papers 제목 키워드 기반

Batch-wise Adaptive Pruning: Periodic Neuron Activation-Aware Weight Pruning for Language Reasoning Model

2026-08-14 · Yongmin Kim, Shota Takashiro, Yusuke Iwasawa, Takeshi Kojima 외 arxiv

Large Reasoning Models (LRMs) achieve strong performance on complex tasks through extended chain-of-thought generation, but incur substantial computational costs during inference. In production settings, batched inferenc…

Efficient Inferencing of Compressed Deep Neural Networks

2017-11-01 · Dharma Teja Vooturi, Saurabh Goyal, Anamitra R. Choudhury, Yogish Sabharwal 외

Large number of weights in deep neural networks makes the models difficult to be deployed in low memory environments such as, mobile phones, IOT edge devices as well as "inferencing as a service" environments on cloud. P…

Quantization

Seeing the End at Step Zero: Accelerating Diffusion MLLMs via MLP Sparsity-Aware Truncation

2026-07-16 · Qicheng Zhao, Qi Sun, Zheyu Yan arxiv

Diffusion Multimodal Large Language Models (DMLLMs) are highly effective for multimodal reasoning, yet their inference efficiency is significantly hindered by fixed-length generation constraints. Since the actual output …

Multimodal Reasoning

Batched Differentiable Rigid Body Dynamics in PyTorch for GPU-Accelerated Robot Learning

2026-05-29 · Yue Wang, Yanran Xu, Wenbo Wu, Chuanhang Qiu 외 arxiv

As robot control shifts toward large-scale reinforcement learning with in-loop dynamics computation, the community's reliance on CPU-bound libraries such as Pinocchio creates a throughput bottleneck in GPU-based training…

Reinforcement Learning

PackInfer: Compute- and I/O-Efficient Attention for Batched LLM Inference

2026-02-03 · Rui Ning, Wei Zhang, Fan Lai arxiv

Attention efficiency is critical to large language model (LLM) inference. While prior advances optimize attention execution for individual requests (e.g., FlashAttention), production LLM serving relies on batching reques…