Three colors, two neurons(2,3)-ETF

Red, green, and blue features live in a 2-dimensional activation space as the columns of \(W = [\,w_r\; w_g\; w_b\,]\), an equiangular tight frame. A color \(x = (r,g,b)\) is stored as the superposition \(h = Wx \in \mathbb{R}^2\). Since \(\operatorname{null}(W) = \operatorname{span}(\mathbf{1})\), the model can only remember \(x\) up to its “white component”: every point \(h\) decodes to the unique representative with \(\min(r,g,b) = 0\) — i.e. at most \(2\) active features.

Activation space \(\mathbb{R}^2\). Each point is tinted by the color it decodes to; the bright region is the set of \(2\)-sparse representable colors, the dim halo decodes outside \([0,1]^3\). Drag the ring to move \(h\).

Original RGB space \([0,1]^3\)

Left-drag rotates, right-drag pans, scroll zooms, middle-click any point — on the cube or on its image in the plane — to select it as the input color. The recoverable colors are the three faces meeting at black, exactly the inputs with at most \(k=2\) active features. The activation plane is drawn faithfully as \(\mathbf{1}^{\perp}\) offset along the projection direction \(-\mathbf{1}\): encoding factors through orthogonal projection onto \(\mathbf{1}^{\perp}\), so the faint rays \(x \mapsto Wx\) are parallel to the grey diagonal and collinear with the dashed fiber \(x + t\mathbf{1}\). A lossy input’s ray lands on the same \(h\) as its canonical representative (◎).

Input color \(x\)

0.33
0.00
0.00
input \(x\)
\(\overset{W}{\longrightarrow}\)
decoded \(\hat{x}\)
\(h = Wx = \) (0.33, 0.00)

Try a collision

Why \(2\)-sparse

The Gram matrix is \(W^{\top}W = \tfrac{3}{2}I - \tfrac{1}{2}\mathbf{1}\mathbf{1}^{\top}\): unit diagonal, off-diagonal inner products all \(-\tfrac{1}{2}\) (the Welch–Rankin bound for \(d=2,\,n=3\)). Decoding takes the least-squares coefficients \(\tfrac{2}{3}W^{\top}h\) and shifts along \(\mathbf{1}\) until the smallest coordinate hits \(0\).

If the input already had \(\min(r,g,b)=0\) (at most \(k=2\) active features), the round trip is exact — that’s support recovery in superposition. Otherwise the input collides with a darker, fully saturated color: salmon lands on dark red, and white lands on black.