Explore the research collection
3 entries · Follow this search
- Paper
Scaling to Tens of Thousands of Test-Time Iterations with Loop-Native Attention Residuals
Looped Transformers need their OWN residual connections, because the failure mode isn't lack of depth — it's "latent overthinking": noisy state updates overwrite correct intermediate deductions and even undo completed solutions, so later loops can't correct errors propagated through the recurrence (carry-last TRM peaks at 62.2% at 468 executed layers and falls to 58.1% at 1,872; only ~80% of solved puzzles stay solved 36 updates later). InfiLoop scores each loop iteration's candidate once by content (s = q^T RMSNorm(z), q a learned pseudo-query) and applies learned temporal decay, passing a normalized weighted mixture of all candidates so far: h_t = Σ α_{t,i} z_i, α from exp(s_i − λ(t−i)). Exact streaming recurrence (N_t = βN_{t−1} + e_t z_t; D_t = βD_{t−1} + e_t) keeps persistent aggregation memory constant in loop count (one d-vector + one scalar per token); equivalently an adaptive residual step h_t = h_{t−1} + γ_t(z_t − h_{t−1}), γ_t ∈ (0,1). A 7M model reaches 97.9% exact accuracy on Sudoku-Extreme (multi-depth result; fixed-depth 90.9% at 1,872 layers) and 13.6% pass@2 on ARC-AGI-2; keeps improving past 20,000 effective steps (92.74% at 24,960 layers vs FPRM 91.63%, TRM 83.65%). Scorer ablations (90.9% → 84.8% with scorer zeroed) and error-correlated content scores suggest emergent self-verification, observed not proven. Caveats: no natural-language tasks; not best on Maze-Hard (27M Attractor Model 93.1 > 87.4); repo has no LICENSE file and no pretrained weights yet. Code: github.com/pixeli99/InfiLoop (URL corrected — the paper-text URL 404s).
- Paper
Looping Beyond Twice: A Scalable Recipe for Looped Mixture-of-Experts
Diagnoses why looped MoE benefits fade after ~2 loops (extra FLOPs yield little): (1) the curse of depth is inherited and amplified — hidden-state variance grows each iteration as residual updates accumulate, destabilizing deep recurrence and drifting representations; (2) expert selection collapse — routers repeatedly select the same experts across loops, so iterations add compute without computational diversity. LOOM is built on one principle: each loop should contribute new computation while keeping the recurrent state stable. It stabilizes recurrence by scaling residual updates to bound variance growth and re-injecting the input embedding at every loop, and diversifies it through per-loop routers that engage different experts plus a Looping Residual carrying earlier outputs forward. Stable scaling to 9-12 loops across 100M-1.7B models. Near-iso-FLOP: the 700M model peaks at 5 loops, perplexity 18.36 -> 16.54, avg zero-shot 38.84% -> 39.53% over the non-looped baseline. Without FLOP matching: 1.7B model trained on 60B tokens peaks at 9 loops, perplexity 9.62 -> 7.77, avg zero-shot 42.4% -> 47.7%.
- Paper
One LR Doesn't Fit All: Heavy-Tail Guided Layerwise Learning Rates for LLMs
Uniform LR ignores Transformer heterogeneity. LLR fits a power-law to each layer's weight-correlation ESD (PL_Alpha_Hill) and maps weaker heavy tails (embeddings/FFN) to larger LRs and stronger tails (attention) to smaller ones, with embedding pinned at the upper bound, a soft LR switch, and updates only in the first 20% of tokens. Transfers the uniform baseline's near-optimal global LR. LLaMa-1B FineWeb: zero-shot avg 47.09→49.02; 3B 48.58→50.61; up to 1.5x token speedup. Beats LARS/LAMB/Sharpness/TempBalance/AlphaDecay; also helps Muon and GPT-nano. Code https://github.com/hed-ucas/Layer-wise-Learning-Rate.