Superposition in a toy autoencoder
The toy model of Elhage et al., "Toy Models of Superposition" (2022), in their notation: features x ∈ ℝn, each xi = 0 with probability S (the sparsity) and otherwise ~ Uniform[0,1]; reconstruction x′ = ReLU(W⊤W x + b) with W ∈ ℝm×n; loss L = 𝔼 Σi Ii(xi − x′i)². Column Wi ∈ ℝm is where feature i is stored.
1 · Two features, one dimension: when does superposition win?
n = 2, m = 1, importances I = (1, r). Drag the dot. Background: which candidate has the lowest exact expected loss.
feature 2 ignored
feature 1 ignored
antipodal superposition
exact boundary
closed form, b=0, w=±1
Point
Winning solution: columns of W on the one hidden axis
Expected loss of each candidate exact
Not shown. Only these candidate families are compared (training finds no others here); near p = 1, r = 1 all three are within 0.1% and the label is not meaningful. This is a toy autoencoder with a ReLU readout, not a trained network.
2 · Five features in two dimensions, trained in your browser
m = 2, importances Ii = di−1. Arrows are the columns Wi, darker = more important. simulation
Features n
Seed
Not shown. This is a toy autoencoder with a ReLU readout and independent, uniformly distributed features. Whether real networks operate in this regime (many sparse features, few dimensions) is the empirical question; if they do, small input perturbations along the interference directions are a natural route to adversarial examples (WB6 §5).