A GD-trained linear layer is exactly linear attention over its own training history
ShahabBakht · x · 2026-10-12
mtavitschlegel highlights a beautiful but little-known dual view: a linear layer trained with gradient descent computes exactly the same function as its initial weights plus linear attention over its own training history — each test input attends to every training input (as keys) and recombines the backpropagated errors stored with them (as values).
The connection has been discovered and revisited before but remains poorly known. Taking it seriously and replacing the linear attention with more powerful kernels (e.g., softmax attention — nontrivial in practice) leads to a new paradigm. The attached slide, from Google's "Paradigms of Intelligence" talk on Retrieval centric deep learning in growing nonparametric networks, lays out the linearization-to-nonlinearization derivation and the shift from W·x to attention(K, V, x).
Related event: Linear Layers Trained by GD Are Linear Attention Over Training History(3 posts)→
More from Models
- Arena 3D leaderboard: Claude Fable 5.2 tops ranking, GPT-6.2 Sol takes third — arena · 2026-12-02
- OpenDDE benchmark: frontier LLMs score 0.0 on biomolecular interface prediction — anshulkundaje · 2026-12-02
- Amazon's own benchmarks show Kimi K3.1 Pro beats Ergo on 8 of 9 public tests — churchkey · 2026-12-02
- User burns through 5-hour usage limit in 10 minutes on one simple prompt — Crafty-Possession-17 · 2026-12-02
- Cryptographers hit model refusals: Fable won't even define basic lattices — StefanoGogioso · 2026-12-02
- Artificial Analysis leaderboard: Claude Fable 5.2 tops intelligence index at 65 — ArtificialAnlys · 2026-12-02