Explore the research collection
6 entries · Follow this search
- Paper
Phases of Muon: When Muon Eclipses SignSGD
An exactly solvable theory of when Muon beats its Adam-like baseline - with a phase diagram, not a blanket verdict. Setup: stochastic Muon (orthogonalize an EMA of minibatch gradients via Newton-Schulz) vs stochastic SignSGD on a high-dimensional matrix-valued least-squares problem whose per-sample gradients are rank-one outer products, mimicking a linear layer under backprop; as dimension and batch grow the loss dynamics become deterministic and the derived theory tracks simulations. Two data knobs organize everything: the covariance spectrum decays as a power law with exponent alpha (large alpha = steep spectrum, effectively low-rank data), and the target's loss in direction i decays with exponent zeta (large zeta = easy target, little loss in the hard small-eigenvalue directions). PHASES: Muon is favored for steep spectra with rich/hard targets (alpha > 2 and zeta < alpha + 1); SignSGD is favored for flat spectra (alpha < 1) and for easy targets generally; in the middle region the winner flips with the accuracy demanded - SignSGD reaches mediocre solutions first, Muon wins late at low loss; elsewhere the winner depends on how target loss scales with dimension. MECHANISM: Muon performs only a SQUARE-ROOT preconditioning in the data spectrum, not a full inverse - small directions get boosted by roughly sqrt(N/B_eff), and that half-strength boost is exactly right when the target loads loss onto hard directions, but over-boosts them for easy targets, where SignSGD's no-preconditioning wins. BATCH: everything runs through the effective batch B_eff = B(1+beta)/(1-beta) - momentum multiplies the effective batch - because Muon can only whiten directions the batch actually spans (batch rank ~ B_eff); with exact whitening and small B_eff it fails to resolve small eigenmodes and slows down, a transition SignSGD does not have. Muon's optimal learning rates are larger than SignSGD's and are derived exactly in the isotropic case, with a sqrt(N) gap at beta = 0.9 unless the batch grows. A practically relevant bonus: finite Newton-Schulz (NS-5) acts as a RIDGE on small singular values, which can help - Muon's speedup over SignSGD peaks around 1.13x at small B_eff/N and 1.46x at large B_eff/N, and in the large-batch regime the inexact NS-5 iteration BEATS the exact polar decomposition. In the isotropic setting the two optimizers' convergence rates match up to a constant factor once each uses its own optimal LR. Scope: this is a least-squares surrogate with rank-one gradients - a theory of the optimization geometry, not an LM experiment; the SignSGD baseline stands in for Adam (no second-moment adaptivity), and the data spectrum of real gradient covariances is an empirical question the paper does not measure. Proofs are accompanied by a Lean 4 formalization (project page: mlexpos.github.io/phases-of-muon). In the catalog's Muon thread this is the theoretical member, complementary to ID 1809's empirical fine-tuning reversal: 1809 says the Muon-vs-AdamW ranking flips with pretraining data scale AFTER fine-tuning; this says the ranking during optimization itself is a function of data spectrum and target hardness - both argue 'Muon vs Adam' has no data-free answer, and this one names the data property that decides it.
- Paper
Learning to Compute Is Not Learning to Retain or Reuse in Looped Transformers
Separates three independently-learnable skills: computing an answer, retaining it across extra loops, keeping the hidden state reusable by later computation. Setting: in-context execution of Mealy machines (state-tracking), simulator giving exact intermediate targets and counterfactual continuations; 2-layer shared block (width 128, 4 heads, MLP 512, no positional/loop embeddings), trained to exit at loop 32. Key results: final-only supervision is 100% at the trained exit but keeps 22.3% of answers at loop 64; supervising every position → 94.3%; supervising one uniformly-random position per example (same single-label density as final-only) → 99.8% retention; randomized exit budget raises loop-64 accuracy 30.0% → 85.6%; progressive training works in only 1/3 seeds vs 3/3 for the random-exit control (97.9% retention). Computation is exact — swapping a loop-k hidden vector for one from another input redirects every later position to that input's exact continuation (237/237 pairs across ten models) — but answers fade within a few loops. Retention ≠ reuse: freezing each position at the loop its answer first becomes readable crashes endpoint accuracy 100% → 4.1% (sampled-prefix) / 6.3% (matched random exit); waiting four more loops is harmless. External check: Bansal et al. (2022)'s released recurrent maze network solves 0 of 32 mazes when pixels are frozen at answer arrival, 4/4... all 32 when frozen four iterations later. Caveats (§7): one synthetic task family + one principal architecture; interventions don't identify a microscopic cause or general repair; six paired seeds for original comparisons, three for controls; sampled supervision still needs intermediate labels; finite-window retention ≠ hidden-state convergence or uniform length extrapolation.
- Paper
OperLoop: Looped Transformers as Optimizers
Reframes looped Transformers' recurrent transition as an optimizer update on the hidden state treated as a fast weight. Any loop transition derives from (1) an input-map projection, (2) a local objective whose gradient the shared blocks' output predicts, (3) an optimizer update rule. Diagnosis: existing transitions (Ouro, Huginn, Parcae, HyperLoop) have input-map mismatches between transitions and projections (Parcae omits Āᵀ; HyperLoop splits H^pre/H^post) — aligning maps cuts loss, +0.15pp Parcae / +0.54pp HyperLoop commonsense (aligned HyperLoop: 59.47 vs 58.93). Their design, OperLoop: delta objective ½‖o_l − t_l‖², explicit learned weight decay Λ_l, state-dependent causally-monotonic step size η_l (inspired by Delta Linear Attention, but target implicit rather than projected values). At matched training FLOPs (~50% params): best looped variant at both scales — EM avg 25.58 vs non-looped 5B baseline 23.89 (+1.69pp), 10B +1.04pp; Loop6 at 1.67× FLOPs: EM 31.90 (+8.01), 8-shot CoT GSM8K 17.13→31.08. Ablations: removing delta objective 25.58→24.84; causal step-size beats fixed η=1 (+1.18pp EM) and non-causal (+1.56pp). Caveats: all looped models have worse PPL and log-likelihood accuracy than the non-looped baseline (Wikitext 13.90 vs 13.08 at 5B) — the advantage shows only in generative EM eval (authors' own point: evaluate beyond PPL); gains vary by task (ARCcn at 5B: 37.63 vs baseline 40.96); small models (5B/10B, 300–500B tokens, 4k seq) — no frontier-scale evidence.
- Paper
Hyperloop Transformers
Parameter-efficient looped architecture for edge/on-device memory limits. Splits the model into begin/middle/end blocks, loops only the middle 3× (~25%/50%/25% allocation). Twist: hyper-connections (mHC-style) applied only after each loop iteration — begin-block output copied into n=4 parallel residual streams, input-dependent transition matrices mix streams per loop, outputs averaged back. Simpler diagonal transition replaces mHC's Sinkhorn-Knopp matrix (PPL 14.40 vs 14.59); loop-position embedding acts as depth-wise-RNN input. Net cost over vanilla looped: 150–300K extra parameters; plain PyTorch, negligible slowdown (no custom kernel). Results (FineWeb-Edu, 2.5× Chinchilla tokens, SwiGLU+RoPE): 1B: PPL 9.65 (579.7M) vs vanilla Transformer 10.19 (990.5M), mHC 10.07, Looped 10.02; downstream 49.8% vs 48.0%/48.6%/49.2%. 2B: PPL 8.49 vs 8.60/8.57; downstream 54.6% vs 52.8%/53.7%. INT4 GPTQ: holds 9.81 vs 10.27/10.16/10.24 (hyper-connections partially compensate looped models' extra quantization sensitivity — authors' honest caveat: looped layers see "more" inputs, making them harder to quantize). Overtrained 240M (100B tokens, 400 tok/param): stays competitive (12.19 vs 12.15/12.16/12.56). Caveats: authors' own main limitation is scale — capped at ~2B on academic compute; the "match a Transformer with 50% fewer parameters" claim untested at larger scales; v3 abstract softened "outperform" → "perform well compared to" (report v3 wording). Diminishing returns past 3 loops; loop-level hyper-connections (14.40) beat every-layer (14.45); logit-lens shows stronger vocab alignment (early-exit potential, unexplored).
- Paper
Video Generation Models Are Good Latent Reward Models
Extending reward feedback learning (ReFL) to video generation is blocked by pixel-space reward models: they need near-complete denoising plus expensive VAE decoding, OOM on full-frame sequences, and supervise only late-stage steps. PRFL (Process Reward Feedback Learning) conducts preference optimization entirely in latent space. A Process-Aware Video Reward Model (PAVRM) reuses the first 8 DiT blocks of the pretrained video-generation backbone (Wan2.1-14B) as a feature extractor, compresses spatiotemporal features with a learnable query-attention, and predicts motion-quality scores from noisy latents at arbitrary timesteps — trained on human labels of finished videos only, with noise injected at random timesteps (no per-step annotations). Training rolls out gradient-free to a sampled timestep, backpropagates reward through a single gradient-enabled denoising step, and alternates with SFT to prevent over-optimization. On Wan2.1-14B at 480p/720p (T2V and I2V): T2V dynamic degree +46.00 (480p) / +56.00 (720p), human anatomy +10.49 / +12.16; PRFL wins 67% of human comparisons (25 prompts, 30 annotators, 2,250 pairs) vs RGB ReFL. Timestep ablation on 100 prompts: early-only better on motion (DD 51.00 vs 44.00), late-only better on anatomy (HA 91.54 vs 87.52), full-trajectory sampling best on both. PRFL processes all 81 frames within 67 GB VRAM at 1.42×–1.49× faster training than first-frame-only RGB ReFL (whose full-frames variant OOMs). Caveats: the RGB ReFL baseline uses PickScore on the first frame only — a weak comparison; the missing control is the same ReFL setup with a different full-video reward model, so the results support the system but don't isolate the backbone-reward contribution. Author-stated limitation: focuses on motion quality; aesthetics/semantics evaluation left to future work. No code released at catalog time.
- Paper
Discord Unveiled: A Comprehensive Dataset of Public Communication (2015-2024)
Largest claimed public Discord dataset: 2,052,206,308 messages from 4,735,057 users across 3,167 public Discovery servers (~10% of 31,673 servers listed as of 2024-11-17), spanning 2015-05-13 to 2024-12-17. Collected via Discord API; usernames pseudonymized (mimesis), IDs SHA-256 truncated to 12 chars. Per-server JSON plus servers_metadata. 17% of messages from bots. English-US dominates preferred_locale (1705 servers) with Spanish, French, Portuguese also present. Gaming still the top description keyword (~15%). Authors argue Discord is understudied vs Twitter/Reddit and useful for user-driven moderation research. Paper submitted to ICWSM 2025.