Stiefel-Projected 4D Tucker Fast-Weight Memory: Zero-SVD Cubic-Kernel Linear Attention, Exact Subspace Unlearning and O(1) Multi-Hop Retrieval
Abstract
Linear-time sequence models and fast-weight associative memories (Linear Attention, RetNet, Mamba-2, Gated DeltaNet) compress sequence history into a fixed 2D matrix state to achieve O(1) per-token inference, but degree-1 dot-product kernels suffer distractor bleed-through and sharp capacity collapse once stored items exceed O(d) on correlated embeddings. We introduce Stiefel-Projected 4D Tucker Fast-Weight Memory, elevating the recurrent state to an asymmetric 4th-order Tucker core projected through orthonormal Stiefel frames. We prove two exact structural theorems: (1) ambient 4th-order outer-product updates map isomorphically into the latent core with zero SVD truncation, and (2) parallel dual-form training computes a degree-3 product kernel ((Q2 K2T) * (Q3 K3T) * (Q4 K4T) * M) V1 without materializing the 4D core, matching O(1) recurrent inference to maxdiff = 2.29e-6. Using three independent Stiefel key frames (rk = 10 -> 1,000 effective key dims) with rv = 64 (64,000 floats = 250 KiB, smaller than a 256x256 2D matrix), our Hadamard-Gram Dual-Ridge solver achieves 98.6% Recall@1 at N = 1,024 correlated needles (4x past D = 256) where 2D DeltaNet collapses to 0.0%. On real BAAI/bge-small-en-v1.5 Wikipedia embeddings (1,000 edges), a single 0.256 MB 4D core hits 99.8% Recall@1 vs 94.8% for a 2.3x larger 2D core; on 12k-edge HotpotQA (1,500 bridge questions), it reaches 82.6% Both-Gold@2 vs 29.6% for single-shot Vector RAG. Dropped into a 4-layer TinyStories Transformer, 4D Stiefel-Tucker Attention reaches 111.78 PPL (2.88M backbone) vs 116.76 PPL for 2D Linear Attention (3.16M) and 134.09 for Softmax (3.15M), while achieving 100.00% on over-saturated MQAR and bit-exact (||Mk|| = 0.0000) 1-step machine unlearning via orthogonal subspace erasure.
Create a lesson
Metadata
- Comments
- 10 pages, 6 figures, 3 tables. Prior work: arXiv:2611.33983. Code: https://github.com/shu195
Related papers
Unilateral Adoption of LLM-Written Policy Weights in a Multi-UAV Aerial Base Station Game
Shared title terminologycs.LGYu-Chen Hsu, Li-Hsing Yen
Fast Weights Recurrent Transformer
Shared title terminologycs.LGIvan Anokhin, Daria Yasafova, Tianyu Zhao et al.
pyconformal: Exact and Fast Conformal Prediction for Tabular Data and Time Series
Shared title terminologycs.LGValery Manokhin
MARO: Multi-Agent Retrieval-Augmented Question Answering over Korean Policy Reports and Its Protocol-Sensitive Evaluation
Shared title terminologycs.LGSaksonita Khoeurn, In Hwan Oh, Sovandara Chhoun et al.
Physics-residual reinforcement learning for accurate multi-step temperature prediction of alkaline electrolyzers under renewable power
Shared title terminologycs.LGYong-Woon Kim, Chulung Kang, Yung-Cheol Byun
Label Geometry and Certified Kernel Subset Refitting
Shared title terminologycs.LGYuha Song