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
LongevityBench: An Open Benchmark and Language Models for AI in Aging Biology (Liquid AI / InSilico Medicine)
LongevityBench enables systematic evaluation of language models on aging- and longevity-related data across five biodata domains: clinical records from NHANES, DNA methylation studies from GEO, transcriptomic profiles from GTEx, plasma proteomics from three Olink studies, and genetic evidence from OpenGenes, CellAge, and SynergyAge. Comprises 17 tasks and 25,457 prompts in four formats: binary classification, pairwise comparison, multiclass classification, and numeric regression. Tasks are separated from training by biology/study-level splits (NHANES by survey wave, methylation by GEO study, transcriptomics/proteomics by individual, OpenGenes by protein family, SynergyAge by species) for leakage-proof evaluation. The accompanying domain-adapted LFM2-1.2B-Longevity and LFM2-2.6B-Longevity (LFM2-1.2B/2.6B fine-tuned 3 epochs, 32k context, on a multitask aging-prompt collection plus 10-20% general chat to preserve conversational ability, merged by equal-weight linear combination) often matched or exceeded much larger frontier models compared against 18 frontier LLMs: LFM2-2.6B-Longevity ranked first on the NHANES pairwise-age task, both LFMs topped the masked OpenGenes gene-expression-direction task, second and fourth on GTEx multiclass age-group (both beating every frontier model), second on GEO pairwise-age, and both outperformed every frontier model on the Olink proteomics pairwise-age task. A matched-ablation analysis maps which biological feature groups drive predictions. Compact models enable local deployment on sensitive patient data. Benchmark, models, and paper released publicly.