Wasserstein Distances, Neuronal Entanglement, and Sparsity

Shashata Sawmya, Linghao Kong, Ilia Markov, Dan Alistarh, N. Shavit
2/12/2026

No official code found. Best implementation: Shavit-Lab/Sparse-Expansion (16 stars, MIT, last commit 2025-06-13).

Abstract

Disentangling polysemantic neurons is at the core of many current approaches to interpretability of large language models. Here we attempt to study how disentanglement can be used to understand performance, particularly under weight sparsity, a leading post-training optimization technique. We suggest a novel measure for estimating neuronal entanglement: the Wasserstein distance of a neuron's output distribution to a Gaussian. Moreover, we show the existence of a small number of highly entangled"Wasserstein Neurons"in each linear layer of an LLM, characterized by their highly non-Gaussian output distributions, their role in mapping similar inputs to dissimilar outputs, and their significant impact on model accuracy. To study these phenomena, we propose a new experimental framework for disentangling polysemantic neurons. Our framework separates each layer's inputs to create a mixture of experts where each neuron's output is computed by a mixture of neurons of lower Wasserstein distance, each better at maintaining accuracy when sparsified without retraining. We provide strong evidence that this is because the mixture of sparse experts is effectively disentangling the input-output relationship of individual neurons, in particular the difficult Wasserstein neurons.

View on arXivView PDF

Code Implementations(1)

MIT

Code for the ICLR 2025 Spotlight paper "Wasserstein Distances, Neuronal Entanglement, and Sparsity."

160Python, Jupyter NotebookMay 15, 20241 years agoMIT

Similar Papers

Cite this paper

@article{sawmya2026wasserstein,
  title  = {Wasserstein Distances, Neuronal Entanglement, and Sparsity},
  author = {Shashata Sawmya and Linghao Kong and Ilia Markov and Dan Alistarh and N. Shavit},
  year   = {2026},
  eprint = {2405.15756},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2405.15756},
  journal = {ICLR 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2405.15756.svg)](https://codeofpaper.com/paper/2405.15756)

Discussion