NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

The Persian Rug: solving toy models of superposition using large-scale symmetries

Aditya Cowsik, Kfir Dolev, Alex Infanger · DOI

Introduction

Neural networks often exhibit "superposition," a phenomenon where a model represents more features than it has dimensions by treating them as nearly orthogonal vectors in a lower-dimensional space. While this allows for efficient information packing, it complicates mechanistic interpretability. Sparse Autoencoders (SAEs) are the primary tool used to disentangle these features. However, a precise quantitative understanding of the algorithms SAEs learn has remained elusive. This paper introduces a complete mechanistic description of how SAEs solve superposition by leveraging large-scale weight statistics.

Methodology

The researchers analyzed a non-linear autoencoder defined by $f(x) = \text{ReLU}(W_{out}W_{in}x + b)$ in the "thermodynamic limit," where the number of input features $n_s$ is very large. They focused on synthetic sparse data where features are drawn from a Bernoulli-Uniform distribution with sparsity $p$.

A key observation was that when data is permutation-symmetric, trained models exhibit "statistical permutation symmetry." While individual weights appear noisy, their row-wise means and variances become uniform across the model. This allowed the researchers to reduce the high-dimensional optimization problem into a tractable one involving only three scalar variables.

The "Persian Rug" Construction

To validate their theory, the authors forward-engineered an artificial weight matrix using Hadamard matrices. This "Persian Rug" matrix possesses a fractal-like visual structure but is designed to match the exact large-scale statistics predicted by their symmetry analysis.

The "Persian Rug" weight matrix, a manually constructed matrix that satisfies the statistical properties of a trained model.

Quantitative Results and Scaling Laws

The study demonstrates that the specific micro-structure of weights is secondary to their large-scale statistical properties. The manually constructed "Persian Rug" model achieves a reconstruction loss that precisely matches models trained via gradient descent for thousands of steps.

Reconstruction loss comparison between the Persian Rug model, a trained model, and an optimal linear model across different compression ratios.

Furthermore, the authors derived exact analytical scaling laws for reconstruction loss. In the high-sparsity regime ($p \to 0$), the loss scales as $L \sim O(p^2/r)$, where $r = n_d/n_s$ is the compression ratio. This suggests that the dominant source of error in these models is not feature identification, but the recovery of feature values amidst Gaussian interference from other features in superposition.

Conclusion

This work proves that the algorithm learned by SAEs is "oblivious" to individual weight values, relying instead on global statistical properties. The standard ReLU-based SAE is shown to be near-optimal among element-wise decoders. Future research will explore how these findings extend to structured correlations in real-world data and more complex, multi-layer architectures.

Summary updated

BibTeX
@misc{cowsik2024persian,
  author = {Aditya Cowsik and Kfir Dolev and Alex Infanger},
  title = {{The Persian Rug: solving toy models of superposition using large-scale symmetries}},
  year = {2024},
  eprint = {2410.12101},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.12101},
}
Figure