paper-with-me

홈 › Papers

Sparse Expansion and Neuronal Disentanglement

2024-05-24 · Shashata Sawmya, Linghao Kong, Ilia Markov, Dan Alistarh, Nir Shavit

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 $\textit{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. But why? To answer this, we provide strong evidence that the mixture of sparse experts is effectively $\textit{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. Interestingly, 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. Every layer of an LLM has a fraction of highly entangled Wasserstein neurons, and model performance suffers more when these are sparsified as opposed to others. The code for Sparse Expansion is available at: https://github.com/Shavit-Lab/Sparse-Expansion .

📄 PDF Abstract BibTeX arXiv:2405.15756

Code (1)

shavit-lab/sparse-expansion 공식 구현 pytorch

Tasks

Disentanglement

Methods 이 논문이 사용한 방법론

LLaMA LLaMA is a collection of foundation language models ranging from 7B to 65B parameters. It is based on the transformer architecture with various improvements that were…

Similar Papers 제목 키워드 기반

Conceptualizing Embeddings: Sparse Disentanglement for Vision-Language Models

2026-05-21 · Piotr Kubaty, Patryk Marszałek, Łukasz Struski, Adam Wróbel 외 arxiv

Vision-language models learn powerful multimodal embeddings, yet their internal semantics remain opaque. While sparse autoencoders (SAEs) can extract interpretable features, they rely on expanding the representation dime…

Closed-form modeling of neuronal spike train statistics using multivariate Hawkes cumulants

2022-10-27 · Nicolas Privault, Michèle Thieullen

We derive exact analytical expressions for the cumulants of any orders of neuronal membrane potentials driven by spike trains in a multivariate Hawkes process model with excitation and inhibition. Such expressions can be…

FormSensitivity

When Structured Sparse Autoencoders Learn Consistent Concepts Across Modalities

2026-07-09 · Weiduo Liao, Yunqiao Yang, Ying Wei arxiv

Sparse autoencoders (SAEs) have emerged as a promising technique for mechanistic interpretability by learning a set of sparse latent features in large models, each of which encodes a distinct concept. However, in vision-…

A Hebbian/Anti-Hebbian Network Derived from Online Non-Negative Matrix Factorization Can Cluster and Discover Sparse Features

2015-03-02 · Cengiz Pehlevan, Dmitri B. Chklovskii

Despite our extensive knowledge of biophysical properties of neurons, there is no commonly accepted algorithmic theory of neuronal function. Here we explore the hypothesis that single-layer neuronal networks perform onli…

AnatomyClustering

Clustering Inductive Biases with Unrolled Networks

2023-11-30 · Jonathan Huml, Abiy Tasissa, Demba Ba

The classical sparse coding (SC) model represents visual stimuli as a linear combination of a handful of learned basis functions that are Gabor-like when trained on natural image data. However, the Gabor-like filters lea…

ClusteringDictionary LearningDisentanglement