arXiv Science⌕ Search

arXiv subjects

Shubham Barmase

Publications and source records attributed to Shubham Barmase.

2 recordsLinked to original sources

Stiefel-Projected 4D Tucker Fast-Weight Memory: Zero-SVD Cubic-Kernel Linear Attention, Exact Subspace Unlearning and O(1) Multi-Hop Retrieval

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 K2^T) * (Q3 K3^T) * (Q4 K4^T) * M) V1 without materializing the 4D core, matching O(1) recurrent inference to max_diff = 2.29e-6. Using three independent Stiefel key frames (r_k = 10 -> 1,000 effective key dims) with r_v = 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.

cs.LG↗

Quaternion-Tucker ZigZag Networks: Halving Transformer Backbone Parameters and Enabling Exact 2D Zero-Loss Continual Scaling

Standard Transformers allocate independent dense weight matrices to every feed-forward network (FFN) layer, coupling parameters linearly with depth (O(L)) and discarding prior compute when scaling capacity. Conversely, weight-tied Looped Transformers decouple depth from parameters (O(1)) but enforce time-homogeneous updates. We formulate the L-layer FFN stack as a 3D Tensor Cuboid and introduce QuatTucker-ZigZagGPT, unifying: (1) 4D Quaternion Hamilton GEMMs in bfloat16 (4x FFN compression), (2) 64x64 Block-Diagonal Tucker SwiGLU Cores for depth-specific rotations over a shared basis, (3) Braided ZigZag Diamond Routing (L0 -> L2 -> L1 -> L3) for zero-FLOP top-down refinement, and (4) Exact 2D Zero-Loss Continual Scaling in both width and depth. We also introduce Annealed Gated Bounce-Back Scaffolding (GatedBounce), which self-distills to 0.0% inference overhead. Across algorithmic tasks (8-bit Parity, 56-seed routing ablations, Mod-53 Grokking) and language modeling (TinyStories, FineWeb-Edu), our model outperforms standard Transformers at 2x-7.6x compression. On A100, QuatTucker-ZigZagGPT-12 (39.0M backbone) beats StandardGPT-12 (85.0M backbone) at 5/5 controlled checkpoints. Continually scaling one lineage across 6.00B tokens via zero-loss width growth (rank 6144 -> 8192), two bit-exact depth expansions (L = 12 -> 16 -> 20, 70.9M backbone, max_diff = 0.000000), and WSD cooldown reaches 3.3582 FineWeb-Edu loss (28.74 PPL) and 44.75% full-split zero-shot accuracy across 16,955 questions (ARC-Easy, HellaSwag, WinoGrande, BoolQ), matching GPT-3 Small (125M, 300B tokens) at 50x fewer tokens.

cs.LG↗