TL;DR
Generating text with a Large Language Model (LLM) is like hauling an entire encyclopedia off the shelf just to read a single sentence—it is heavily bottlenecked by memory bandwidth. NorSA speeds up LLM decoding without any retraining by skipping redundant activation dimensions on the fly. By accounting for how tokens vary in scale and how internal features correlate with one another, NorSA prunes half the computations on LLaMA-3-8B for a 1.32× end-to-end speedup while barely scratching model quality.
What Problem Does This Paper Address?
When an LLM generates text one token at a time (such as a local coding copilot at batch size 1), the GPU spends most of its time shuttling massive weight matrices from memory rather than doing actual math. Sparse activation offers a clever shortcut: if an element in an incoming activation vector is zero, you don’t need to load or multiply the corresponding column of the weight matrix at all.
The catch is deciding which activations are safe to zero out on the fly, without retraining the model. Existing training-free methods generally fall into two traps:
- Static thresholding (like TEAL) drops values below a fixed number, assuming every token and feature dimension behaves identically—an independent and identically distributed (i.i.d.) assumption.
- Top-$k$ sorting (like La RoSA) adapts per token, but sorting thousands of dimensions at every linear layer eats into the very latency savings you are trying to win.
In reality, LLM activations are anything but i.i.d. Token magnitudes swing wildly depending on context and systematic outliers, and embedding dimensions are deeply correlated to represent rich semantic concepts. Treating them as uniform random variables leaves accuracy on the table.
Methods
NorSA (Normalized Sparse Activation) replaces the i.i.d. worldview with a covariance-aware, training-free framework built on three pillars:
- Dynamic Norm-Based Thresholding: Instead of a rigid cutoff, NorSA zeros out an activation $x_i$ if $|x_i| \le \tau \cdot \|x\|_2$, where $\|x\|_2$ is the Euclidean norm of that token's hidden state and $\tau$ is a calibrated layer-specific ratio. This acts as a "relative filter": high-magnitude outlier tokens get a higher bar, weak but crucial tokens aren't wiped out, and complex heavy-tailed tokens naturally keep more active parameters.
- Decorrelating Orthogonal Rotations: When dimensions are coupled, zeroing one out creates hidden cross-correlation errors. NorSA inserts pre-computed orthogonal rotation matrices ($R$) into the Transformer while transforming downstream weights offline ($W' = WR$) so the math stays identical. Initialized efficiently via Principal Component Analysis (PCA) on a tiny calibration set, these rotations diagonalize the covariance matrix—compacting signal energy into fewer dimensions so the rest can be safely dropped.
- Hardware-Aware Kernel Fusion: Using custom Triton kernels, the authors fold RMSNorm weights into adjacent layers (making pre-norm inputs automatically unit-norm for zero-cost thresholding) and fuse norm calculations directly into the FFN's SwiGLU activation kernel.
Datasets
Because NorSA is training-free, datasets are used strictly for lightweight calibration (16 sequences of 2,048 tokens) and evaluation—no new benchmarks are introduced:
- Calibration: WikiText-2 (default), with ablations on C4 and Alpaca.
- Language Modeling: WikiText-2 perplexity.
- Downstream Tasks: Zero-shot accuracy across ARC-Easy/Challenge, PIQA, BoolQ, HellaSwag, OpenBookQA, and WinoGrande, plus 5-shot MMLU for complex reasoning.
Key Insights and Ideas
- Rotations work via energy compaction, not "Gaussianization": Prior work argued that rotating activations helps by smoothing outliers into a neat i.i.d. bell curve. By testing a negative control that increases correlation, the authors prove that rotations only help when they decorrelate features—concentrating variance onto the covariance diagonal so simple element-wise magnitudes become trustworthy proxies for importance.
- Relative scale beats absolute magnitude: A value of
0.1might be pure noise inside a massive outlier hidden state, yet represent a vital reasoning feature in a quiet, small-norm state. Scaling thresholds by $\|x\|_2$ preserves vector direction without expensive Top-$k$ sorting. - Instruction data calibrates high sparsity better: At 60% sparsity on LLaMA-3-8B, calibrating on Alpaca boosts MMLU by nearly 4 points over WikiText-2 (61.78% vs. 57.96%), likely because instruction-formatted text better mirrors how LLMs behave during actual decoding.
Key Results
Evaluated across LLaMA-2 (7B/70B), LLaMA-3 (8B/70B), Qwen-2.5 (7B/72B), and Mistral-7B, NorSA consistently outperforms training-free baselines TEAL and La RoSA, especially as sparsity climbs to 40–50%.
- Quality Retention: At 50% sparsity on LLaMA-3-8B, NorSA stays within 0.44 perplexity points of the dense model (6.57 vs. 6.13) and hits 62.12% on 5-shot MMLU—beating La RoSA by ~3.5 points and TEAL by over 9 points (52.78%).
- Fast Calibration: PCA initialization alone is near-optimal, taking ~8 minutes on a single NVIDIA A100 for LLaMA-3-8B (plus 26 minutes for greedy block-wise sparsity allocation).
- Real-World Speedups: Benchmarked end-to-end in
gpt-fast(batch size 1 on A100 GPUs), 0% sparsity has a 7–10% overhead from norms and rotations, but this quickly pays off. At 50% sparsity, NorSA delivers a 1.32× decoding speedup on 7B/8B models and 1.42–1.43× on 70B models (reaching up to 1.73× at 75% sparsity).
Limitations and Future Work
- Small-batch sweet spot: Sparse activation shines in sequential, single-user decoding (batch size 1). In large-batch server deployments, different tokens activate different subsets of dimensions; their union quickly covers nearly the entire weight matrix, leaving very few shared columns to skip.
- Future directions: Extending this covariance-aware perspective toward finer-grained and batch-aware sparsification strategies so larger serving workloads can share in the speedups.
Summary updated