SVDP: Training-Free Contextual Sparsity Predictors for Fast LLM Inference

Georgii Serbin, Kirill Koshkin, Zhongao Sun, Anastasiya Bistrigova, C. C. KorikovNeurIPS 2026

TL;DR

When a Large Language Model (LLM) processes a single word, up to 90% of the neurons in certain layers simply output zero—doing expensive math for nothing. Usually, skipping this dead weight requires training separate, miniature neural networks to guess which neurons will fire ahead of time. This paper shows you can ditch the extra training entirely, using classic linear algebra (SVD) on the model's existing weights to build fast, accurate "crystal balls" that speed up LLM text generation by up to 1.8× on edge hardware.

What Problem Does This Paper Address?

Running LLMs locally on edge devices is fantastic for privacy and cost, but generating text token-by-token is bottlenecked by memory bandwidth and heavy matrix math—especially inside the Feed-Forward Networks (FFNs).

Fortunately, LLMs that use ReLU-style activation functions exhibit contextual sparsity: for any specific input token, only a tiny fraction of FFN neurons actually activate (produce positive values), while the rest get zeroed out. If you know beforehand which neurons will stay silent, you don't even have to load their weights from memory.

To exploit this, engineers typically place lightweight, learnable "predictor" networks right before each FFN to guess the active neurons on the fly. The catch? Training these predictors is tedious, compute-heavy, requires hundreds of thousands of token activations, and can still fail when encountering out-of-distribution text. Existing training-free heuristics, on the other hand, often rely on static prompt statistics or hurt output quality during long generations. The authors ask: Can we build high-accuracy, dynamic sparsity predictors directly from the LLM's own weights—with zero gradient training?

Methods

The authors introduce SVDP (SVD-based Sparsity Predictors), a two-stage framework targeting ReGLU-based FFNs (where a "gate" matrix controls which neurons get zeroed out by a ReLU activation).

Figure 1: Overview of our framework. During the offline stage, sparsity predictors are constructed using truncation-aware SVD approximation with calibrated per-neuron thresholds. During the online stage, SVD-based predictors precede each FFN to exploit contextual sparsity and accelerate generation.

1. Offline Stage (Building the Predictor): * Data-Aware SVD: Instead of training a new network from scratch, the authors compress the FFN's gate projection matrix into two skinny matrices using low-rank Singular Value Decomposition (SVD). To keep outlier activations from ruining this low-rank approximation, they apply data whitening—incorporating activation statistics from just a few thousand calibration tokens. * Greedy Bias Calibration: Truncating singular values shifts the mathematical distribution of the predictor's outputs. Simply checking if a predicted value is > 0 misses many active neurons. To fix this, the authors add a per-neuron bias (threshold) tuned via a fast, gradient-free greedy algorithm. Crucially, this algorithm weighs neurons unevenly: it protects neurons with large downstream weights while aggressively pruning less impactful ones.

2. Online Stage (Fast Execution): * Sequential Pipeline: Dense LLMs usually compute the gate and up projections in parallel. SVDP computes them sequentially. First, the SVD predictor guesses active neurons. Second, the gate projection runs only on those candidates. Because the predictor might make false-positive guesses, the exact gate output is checked again to filter out remaining zeroes before running the up and down projections—squeezing out extra speed. * Custom Executors: The team built low-level CUDA kernels for NVIDIA GPUs and high-level PyTorch executors for Huawei Ascend (CANN) NPUs.

Datasets

  • Calibration Data: Constructing the predictors requires only a few thousand calibration tokens (specific dataset names are deferred to the paper's appendix, not discussed in the main text).
  • Evaluation Benchmarks: No new benchmarks are introduced. Instead, using text generation via the UltraEval framework, the authors test across eight standard datasets: GSM8K (math), HumanEval & MBPP (Python coding), ARC-E / ARC-C (science/commonsense), TriviaQA (open-domain QA), BBH (complex reasoning), and CMMLU (Chinese multi-task understanding).

Key Insights and Ideas

  • Truncated SVD shifts distributions, it doesn't scramble them: Naive SVD predictors fail miserably in practice. Yet when the authors plotted the raw predictions, they had an "aha" moment: active and inactive neurons were still cleanly separated, just shifted below zero! Adding a simple calibrated bias rescues accuracy completely.
Figure 2: Distribution of SVD-based predictor outputs (r = 256) for a sample neuron obtained from approximately 25,000 tokens. Although active and inactive states are well separated, zero thresholding causes significant false negatives for active states.
  • Linear algebra generalizes better than learned networks: Because SVDP carves its predictor directly out of the LLM's internal weight geometry rather than fitting to training data, it avoids out-of-distribution fragility. Even a tiny rank-256 SVD predictor matches or beats rank-1024 trained neural predictors in separating active from inactive neurons.
ROC-AUC comparison showing SVDP outperforming trained neural network predictors across layers.
  • Sequential beats parallel in sparse regimes: Computing FFN projections one after another lets the exact gate step act as a safety net that catches the predictor's false positives. This allows SVDP to use a 4× smaller predictor without losing overall FFN speedup.

Key Results

Tested on three 7B sparse models (ProSparse-LLaMA2-7B, SparseQwen2-7B, and TurboSparse-Mistral-Instruct) using an NVIDIA RTX 3090 and Huawei Ascend 310P3:

  • End-to-End Speedup: Achieves up to 1.8× faster end-to-end decoding (including prefill and 200 generated tokens) with less than 1% average score degradation across math, code, and reasoning benchmarks.
  • Fast Setup: Offline predictor construction takes roughly 10 minutes for a 7B model.
  • Outperforming Baselines: On ProSparse-LLaMA2-7B, SVDP (rank 256) hits a 38.78% average benchmark score at 1.64× speedup (vs. 38.92% dense), outperforming trained predictors like PowerInfer (37.93% at 1.63×) and Deja Vu (33.38% at 1.64×).
  • Hardware Cache Magic: Isolating just the FFN execution at 95% sparsity yields up to a 4.9× speedup on CUDA and an eye-popping 30.67× speedup on CANN—driven by the NPU's L1 cache hit rate approaching 100%.

Limitations and Future Work

  • ReLU-family only: The method relies on activations producing exact zeroes (like ReLU or dReLU). Extending this to smoother activations like SiLU or Swish—common in many modern dense LLMs—is left for future work.
  • Single-query focus: In batched inference (or during prompt prefill), different tokens activate different neurons, destroying overall union sparsity and rendering direct SVDP ineffective.
  • Attention is untouched: Because SVDP only accelerates FFNs, total speedup hits an Amdahl's Law ceiling dictated by the Attention layers. Building SVD-based sparsity predictors for Attention is a natural next step.

Summary updated

Abstract

Contextual sparsity is one of the approaches used to reduce computational complexity in the inference process of large language models (LLMs). Existing techniques for efficient LLM inference acceleration based on contextual sparsity with minimal accuracy degradation require training sparse pattern predictors. This paper presents a framework for accelerating the inference of ReGLU-based feed-forward networks (FFNs) within LLMs. The proposed framework provides a fast, training-free method for building sparse pattern predictors using truncation-aware singular value decomposition (SVD) of the gate projection matrix, along with a threshold calibration algorithm, and inference executors supporting conditional computation on CUDA and CANN devices. Experiments on three sparse LLMs with an average activation sparsity level of 90\% in the FFNs demonstrate up to a 1.8x end-to-end decoding time speedup with less than 1\% degradation in benchmark scores on tasks involving math and code generation. This work advances the deployment of LLMs on edge devices.
BibTeX
@inproceedings{serbin2026svdp,
  author = {Georgii Serbin and Kirill Koshkin and Zhongao Sun and Anastasiya Bistrigova and C. C. Korikov},
  title = {{SVDP: Training-Free Contextual Sparsity Predictors for Fast LLM Inference}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=em7XpU5sBc},
}
Figure