Associative memoryas a fuzzy perspective on
architecture design
Presented at Perplexity · November 2026
Based on You could have invented transformers from memory and Test-time regression (JMLR)
Alex Wang
Presented at Perplexity · November 2026
Based on You could have invented transformers from memory and Test-time regression (JMLR)
| Memory store | $f(x)$ | Capacity | At $d_k = 64$ |
|---|---|---|---|
| Outer product | $V^\top K x$ | $d_k$ | 64 |
| Optimal linear | $V^\top K (K^\top K)^{-1} x$ | $2 d_k$ | 128 |
| ReLU MLP | $V^\top \mathrm{ReLU}(Kx)$ | $2 d_k$ | 128 |
| Squared ReLU (GLU MLP) | $V^\top \mathrm{ReLU}(Kx)^2$ | $2 d_k^2 / 3$ | about 2,700 |
| SwiGLU MLP | $V^\top \big(\mathrm{Swish}(Kx) \odot Kx\big)$ | about $2 d_k^2 / 3$ | about 2,900 |
| Cubed ReLU | $V^\top \mathrm{ReLU}(Kx)^3$ | $2 d_k^3 / 15$ | about 35,000 |
| Exponential, $\beta = \sqrt{d_k}$ | $V^\top \exp(\beta K x)$ | $e^{2\sqrt{d_k} - 2}$ | about 1.2 million |
| Layer | 1. Weights | 2. Function class | 3. Optimizer | Memory update |
|---|---|---|---|---|
| Linear attention | uniform | linear | one gradient step | $M_t = M_{t-1} + v_t k_t^\top$ |
| Mamba-2, GLA, RetNet | decaying | linear | one gradient step | $M_t = \gamma_t M_{t-1} + v_t k_t^\top$ |
| Mesa-layer | uniform or decaying | linear | exact solve | $M_t = V_t^\top K_t (K_t^\top K_t)^{-1}$ |
| DeltaNet | uniform | linear | SGD, one step per token | $M_t = M_{t-1}(I - \beta_t k_t k_t^\top) + \beta_t v_t k_t^\top$ |
| Gated DeltaNet | uniform | linear | SGD with weight decay | $M_t = \alpha_t M_{t-1}(I - \beta_t k_t k_t^\top) + \beta_t v_t k_t^\top$ |
| TTT-MLP | uniform | MLP | mini-batch SGD | |
| Softmax attention | by similarity to $q_t$ | non-parametric | exact solve | keeps every $(k_i, v_i)$ |