Explore the research collection
3 entries · Follow this search
- Paper
ParaTTT: Parallelizing Test-Time Training Layers with Deep Memories
Test-time training (TTT) layers make a recurrent model's memory a small neural network trained online by gradient descent - more expressive than the linear fast-weight memories of Gated DeltaNet and Mamba-2, whose updates are a single delta-rule step. The cost: a nonlinear memory's gradient at each token must be evaluated at weights produced by every earlier update, a sequential dependency. TTT-MLP and Titans break it with block-wise evaluation (gradients for a whole block computed at the block-entry weights), which only approximates token-by-token learning and still runs several times slower than chunkwise-parallel linear recurrences. ParaTTT (PTTT) instead parallelizes arbitrarily deep nonlinear memories by iteratively refining an estimate of the inner-loop gradient trajectory: each refinement is three chunkwise-parallel passes (a forward pass building the feature trajectory implied by the current gradient estimate, an exact gated-delta-rule pass computing the readout trajectory and its feature gradients, and a backward pass producing a new estimate), each pass itself a composition of existing parallel linear-recurrence kernels. The exact online gradient-descent recurrence is a fixed point of the iteration; geometric convergence is proven for a two-layer variant under contraction conditions. Decoding needs no iterations - it runs the exact recurrence. Convergence in practice: on trained models, top-1 agreement with the exact recurrence is ~60% with no iteration, ~90% at N=1, ~94% at N=2, saturating near 98% (the bf16 noise floor); at 4K context, N=2 matches the output error of TTT-MLP's block approximation (b~5) in 32x less time. Speed: a ParaTTT layer at N=2 costs 4.7x a Gated DeltaNet layer and the model keeps roughly one-third the throughput of the linear baselines, but trains 4.9x faster than TTT-MLP end-to-end (37.9k vs 7.8k tokens/s per 8xMI325X node at 340M); TTT-MLP's block form is 5.5x slower per layer at 4K and 8.5x at 16K. Quality (24-layer backbones, SlimPajama, same recipe/order/seed; memory = one hidden layer of width = head dimension, with hidden-layer delta rule and centered readout): at 340M/15.7B tokens, ParaTTT has the best perplexity of the recurrent models (WikiText-103 25.46 vs GDN 26.57, Mamba-2 26.99, TTT-MLP 26.12; Transformer 25.34) and by far the best LAMBADA (26.93 vs 29.66/45.87/40.35; Transformer 39.25), with recall well above the linear recurrences (SWDE 41.9 vs 32.5/25.8; FDA 20.3 vs 17.8/5.7) and the best 32K needle-in-a-haystack of any model tested (16.0, Transformer 10.5). At 1.3B/100B tokens it again leads the recurrences on perplexity (Wiki 15.21, LAMBADA 9.00 - best overall) and recall (SWDE 62.8 vs GDN 59.0, Mamba-2 56.7), though softmax attention still wins most recall and long-context metrics at this scale (SWDE 75.3, NIAH 78.1 at 4K vs 53.8). Caveats: the convergence guarantee covers only the two-layer variant under sufficient contraction conditions; models adapt to their training iteration count (best near training N; training at N=5 improves all four recall tasks but worsens LAMBADA 26.93->28.44 and collapses 32K NIAH 16.0->5.8); the LaCT comparison strips LaCT's sliding-window attention branch, which the authors note prior TTT layers rely on; code repo is a placeholder ('Code to come'). For the fast-weight thread: this is the parallelization fix that makes deep nonlinear memories trainable at linear-recurrence-like cost structure - a per-layer cost of ~4.7x Gated DeltaNet buys the best recurrent recall in the comparison, with exact (iteration-free) decoding.
- Paper
Liquid Time-constant Networks
LTCs replace a Neural-ODE f with linear first-order units whose τ is gated by f: dx/dt = −[1/τ+f]x + f A, solved with a fused implicit/explicit Euler step and trained by BPTT. τ and hidden state are bounded; trajectory-length expressivity exceeds Neural ODEs and CT-RNNs. AAAI-21. Improves several UCI-style series vs LSTM/CT-RNN/Neural ODE/CT-GRU (traffic SE 0.099 vs LSTM 0.169; person-activity setting 2 acc 0.882 vs Latent ODE 0.846). Code https://github.com/raminmh/liquid_time_constant_networks.
- Paper
MeMo: Memory as a Model
MeMo distills a target corpus into reflection QA (fact extract, consolidate, verify, entity-surface, cross-document synthesis) and SFT a dedicated Memory model (e.g. Qwen2.5-14B) while the Executive stays frozen and queries it via a 3-stage multi-turn protocol. Retrieval cost is independent of corpus size; plug-and-play with closed-source Executives. NarrativeQA 26.85%/53.58% (Qwen2.5-32B / Gemini-3-Flash) vs HippoRAG2 21.39%/23.21%; MuSiQue 48.30%/60.20% vs 42.17%/57.00%; BrowseComp-Plus 54.22%/66.67% (trails HippoRAG2 56.11% on Qwen). Robust to distractor docs (±1.8pp vs ~5–6pp RAG drops). TIES-merge of two NarrativeQA halves cuts compute 33% at K=2 but loses 11–19pp vs full retrain.