Sparse Expansion and Neuronal Disentanglement

Shashata Sawmya, Linghao Kong, Ilia Markov, Dan Alistarh, Nir Shavit · OpenReview

Abstract

We show how to improve the inference efficiency of an LLM by expanding it into a mixture of sparse experts, where each expert is a copy of the original weights, one-shot pruned for a specific cluster of input values. We call this approach Sparse Expansion. We show that, for models such as Llama 2 70B, as we increase the number of sparse experts, Sparse Expansion outperforms all other one-shot sparsification approaches for the same inference FLOP budget per token, and that this gap grows as sparsity increases, leading to inference speedups. To answer why, we provide strong evidence that the mixture of sparse experts is effectively disentangling the input-output relationship of every individual neuron across clusters of inputs. Specifically, sparse experts approximate the dense neuron output distribution with fewer weights by decomposing the distribution into a collection of simpler ones, each with a separate sparse dot product covering it. We show that the Wasserstein distance between a neuron's output distribution and a Gaussian distribution is an indicator of its entanglement level and contribution to the accuracy of the model. The code for Sparse Expansion is available at: https://github.com/Shavit-Lab/Sparse-Expansion .

Introduction

As Large Language Models (LLMs) scale, achieving efficiency through weight sparsity (setting weights to zero) becomes critical. However, current pruning methods often hit a wall: some neurons are "polysemantic," meaning they respond to many unrelated features at once (superposition).

This paper identifies a small subset of "Wasserstein Neurons" in LLMs that are highly entangled—meaning they map similar inputs to wildly different outputs—and are nearly impossible to prune without destroying model performance. We introduce Sparse Expansion, a novel framework that "disentangles" these neurons into a mixture of sparse experts, allowing for significant model compression while maintaining accuracy on complex reasoning tasks.

Methodology: Sparse Expansion

Sparse Expansion avoids the pitfalls of traditional pruning by expanding complex neurons into a Mixture of Experts (MoE) structure without requiring retraining.

Identifying Entanglement

We utilize the 1-Wasserstein distance (WD) to measure how much a neuron's output distribution deviates from a standard Gaussian. We also introduce Mapping Difficulty (MD), which quantifies how much a neuron forces similar inputs apart. High WD is a "smoking gun" for highly entangled neurons that struggle to distinguish similar inputs.

The Expansion Workflow

Instead of pruning a complex neuron into a single sparse version, we expand it into specialized experts:

  1. Clustering: PCA and K-means are used to group the inputs a layer receives.
  2. Specialization: For each group of inputs, we create a specialized "sparse expert" using the SparseGPT algorithm.
  3. Inference: At runtime, a lightweight router sends the input to the correct expert. This is a "one-shot" process that requires no retraining.
The Sparse Expansion workflow: clustering inputs to create specialized sparse experts from a single dense model.

Disentanglement and Performance

The core insight is that by splitting the input space, the individual experts become "less entangled." The Wasserstein distance of each expert is lower than the original neuron, making them much easier to prune effectively.

Comparison of output distributions for random vs. entangled neurons. Sparse Expansion (clusters) allows sparse experts to accurately capture complex, non-Gaussian dense distributions.

As shown in the figure above, entangled neurons exhibit multi-modal distributions that are poorly approximated by a single sparse dot product. Sparse Expansion allows the model to use different sparse "edges" for different input clusters, effectively lowering the Wasserstein distance for each expert and maintaining the neuron's functional integrity.

Key Results

We evaluated Sparse Expansion across models including Pythia (70M to 12B) and Llama-2/3 (7B to 70B) using benchmarks like GSM8K, MMLU, and Big Bench Hard (BBH).

  • Performance Recovery: In Llama-3-8B, sparsifying the top 3% of Wasserstein neurons normally causes a total collapse in reasoning. Sparse Expansion recovers this performance, significantly outperforming standard SparseGPT.
  • Superiority at Scale: Across the Llama-2 family, Sparse Expansion consistently beat Magnitude Pruning, Wanda, and SparseGPT, especially at high sparsity levels (e.g., 50% to 90%).
  • Efficiency: Using optimized GPU kernels (Sparse Marlin), we demonstrated up to a 4.8x speedup over dense baselines, proving that the overhead of the router is minimal compared to the gains from sparsity.

Conclusion

Sparse Expansion provides a path toward highly efficient LLMs by addressing the fundamental challenge of neuronal entanglement. By identifying critical "Wasserstein Neurons" and disentangling them into specialized sparse experts, we can achieve significant inference speedups without sacrificing reasoning capabilities. While creating multiple experts increases the memory footprint, the gains in FLOP efficiency and accuracy recovery offer a compelling trade-off for large-scale deployment.

Summary updated

BibTeX
@inproceedings{sawmya2025sparse,
  author = {Shashata Sawmya and Linghao Kong and Ilia Markov and Dan Alistarh and Nir Shavit},
  title = {{Sparse Expansion and Neuronal Disentanglement}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=cnKhHxN3xj},
}
Figure