Explore the research collection
5 entries · Follow this search
- Paper
e-means: outperforming k-means (in one-tenth the epochs)
e-means (Bessa et al., Meta FAIR; arXiv 2611.09501, Nov 6 2026, CC BY 4.0) replaces Lloyd's k-means with an exponential-moving-average optimization procedure over mini-batch updates - essentially treating centroid estimation the way deep learning treats weights, powered by modern DL machinery - with dead-cluster revival as a key component. The practical crux is that its two would-be hyperparameters, EMA decay rate and batch size, are set by fitted SCALING LAWS (fit on ~75k runs, validated on 5k+ runs) that prescribe them from problem size and dataset, so the user chooses only k: a genuine drop-in replacement with no sweep. Results across 26 embedding datasets (100k to 10B points): e-means reaches a LOWER loss than Lloyd k-means at 25 epochs in just 1.4 to 2.6 epochs, frequently beating even k-means++ from a random initialization (the mini-batch stochasticity escapes local minima Lloyd gets stuck in); the epoch savings translate to 10-45x GPU wall-clock speedups over state-of-the-art k-means implementations (launch-thread chart on DEEP, 1M vectors, 16,384 clusters: 12.5x fewer epochs, 11.8x faster on 64-core CPU, 13.6x on one H100, against faiss k-means, SuperKMeans and Flash-KMeans). At the extreme end it partitions DINO10B - 10 billion DINO embeddings - into 16 million clusters in 2.5 epochs, below Lloyd's 25-epoch loss; paired with IVF it gains another order of magnitude at billion scale. Released in FAISS 1.16.0 (contrib/e_means) with figure-reproduction code, a project site with an interactive results map across the 26 datasets, and a browser playground. Flags, as entered: first-party (Meta FAIR) results at abstract/thread level at cataloging time; the speedup range is wide (10-45x) and hardware/implementation-dependent; the comparison currency is training loss (inertia) on embedding datasets, which is the operative metric for quantization and data-curation uses but says nothing directly about downstream task quality. Relevance: k-means is the workhorse under vector quantization, retrieval indexing and dataset curation/dedup pipelines, so a tuning-free 10x-faster drop-in inside FAISS is immediately usable infrastructure rather than a research curiosity.
- Paper
Towards Continual Learning: Mitigating Forgetting With Subspace Tuning
Imports the update GEOMETRY of on-policy training into offline fine-tuning to stop catastrophic forgetting. Premise (from cited prior work): RLVR and on-policy distillation barely move the principal singular directions of weight matrices and forget little, while SFT concentrates updates along exactly those directions and forgets heavily. METHOD (SST): for each weight matrix W with top-k singular vectors U_k, V_k, project the APPLIED update — Π(ΔW) = (I − U_kU_kᵀ) ΔW (I − V_kV_kᵀ) — so the protected singular triplets are preserved exactly and learning happens densely in the spectral tail. Default protection is extreme: rank fraction r = 0.99, i.e. the top 99% of singular directions are frozen and updates live in the 1% tail (the inverted regime from LoRA-style methods). Three load-bearing design decisions: (1) project the applied update, NOT the gradient — Adam's diagonal preconditioning does not commute with projection, and a toy study (Qwen2.5-0.5B, 60 Adam steps) shows gradient projection still leaks 69% of the final weight change into protected directions (held-out NLL rise 0.72) vs update projection's ZERO leakage and NLL rise 0.13 (unconstrained FT: NLL +13.0, 98% of change in protected directions); (2) dense gradient estimation — gradients computed in full, only the step is confined (the paper maps OPLoRA onto the mis-scaling variant and Sculpting onto a partial gradient projection); (3) basis REFRESH — recompute the SVD basis from current weights every K steps (R100/R10) so a fixed complement doesn't strangle long runs; refresh re-opens directions at a mild retention cost (~3–5 points) and is the explicit adaptation–retention knob — note the strict "preserved exactly" guarantee holds only between refreshes / for the no-refresh variant. Optimizer-agnostic (demonstrated with Adam AND Muon), composes with SFT and SDFT (self-distillation fine-tuning), no extra trainable parameters, no inference cost; overhead +1.5% per step for projection alone (Qwen3-8B full FT), 5.1% (R100) / 37.6% (R10) total, dropping to 0.6% / 4.7% when SVD work is split across GPUs. RESULTS (all first-party; Qwen3-8B thinking-mode fine-tuned on <think>-trace data in Science / Finance / Pathology & Medicine; prior capability = avg of GPQA-Diamond, MMLU-Pro, GSM8K, HumanEval, IFEval; base LM avg 81.0): Science — SFT Δ −25.5 (LM avg 55.5) vs SFT+SST Δ −1.0 (80.0) with HIGHER in-domain accuracy (80.1 vs 77.6; R10: 84.0, Δ −0.8); SDFT alone Δ −24.0 → SDFT+SST+R100 Δ −0.3; Muon arm: SFT+Muon Δ −21.5 → +SST Δ −1.3; post-hoc KL repair (ReInvoke) only recovers to Δ −10.7 and loses in-domain accuracy. FinQA is the catastrophic cell: SFT Δ −57.3 (LM avg 23.7; GPQA 60.1 → 10.1) vs SFT+SST Δ +1.3 (82.3, ABOVE base) at equal-or-better in-domain accuracy. Subspace-protecting baselines at their official settings (Sculpting, OPLoRA) lose 18–26 points of prior capability on average where no-refresh SST loses ~1; handing OPLoRA SST's protection level closes much of the gap but still trails on 3 of 4 domains. Scaling: unconstrained SFT loses 30–40 points at EVERY size (Qwen3 1.7B→14B); SST's forgetting SHRINKS with scale, within ~1% of base from 8B onward, with higher target accuracy at every size. KL(π_base‖π_θ) on WikiText-2 is 2–4× lower than unconstrained recipes; a reverse-KL penalty on SFT does NOT reproduce the trade-off (weak = no retention help; strong = suppresses learning without preserving capability). Sequential chains: under plain SFT, FinQA → Pathology → Science dormancy drops dormant domains 28 and 18 points; under SST each domain rises in its stage and holds (SDFT+R10 loses 20 points on FinQA→Science; SST+R10 loses none). Rank ablation: stronger protection improves BOTH retention and in-domain accuracy in their sweep. Caveats: hyperparameters were SHARED across methods, not tuned per method (authors concede SST's optimal LR need not equal SFT's — the headline gaps are large enough that the conclusion likely holds, but the exact frontier is unmeasured); closest-prior-art coverage is incomplete — SVFT (NeurIPS '24; ΔW = U M Vᵀ with M restricted to the tail block is structurally very close) is NOT compared, a gap flagged in a thread reply by Vijay Lingam; scale ceiling 8B main / 14B–32B sweeps, hundreds-of-billions untested; retention measured on five benchmarks + WikiText-2 KL only (nothing on long-context or multilingual retention); two of four domains train on Claude Sonnet 4.6-generated traces and the Olmo qualitative study is judged by Sonnet 4.6 (fabrication rate is a phrase-based lower bound). Paper ~1 week old, no independent replication.
- Paper
Next-Concept Modeling: Fast, Parallel Coarse-to-Fine Text Generation
Diffusion language models offer parallel sampling but degrade with fewer steps, process the full sequence every step, and need many training passes. Next-Concept Modeling (NCM) is a two-stage coarse-to-fine alternative: a multiscale residual VQ-VAE encodes text into a hierarchy of discrete codes from coarse to fine (adapting VAR-style next-scale prediction from images, requiring substantial modeling changes since text has no natural downsampling and single-token errors matter), and a transformer generates one level at a time, predicting all codes within each level in parallel — one forward evaluation per level. At ~100M parameters, NCM beats strong diffusion baselines on unconditional generation (TinyStories, LM1B, OpenWebText) with 4–11× fewer function evaluations: on LM1B it uses 11× fewer NFE than DUO and runs 21× faster at better generative perplexity (single H100, batch 16), and on OpenWebText it matches the strongest diffusion LM at 10× faster. Tokenizer plus generator train on 13.36B token positions on LM1B, ~4.9× fewer than baselines' 66B. On XSum summarization it uses 16× fewer NFE than AURORA-LM and runs 31× faster at comparable ROUGE-L, with the best summarization scores; on WMT14 De–En translation it beats all but one non-AR baseline. On Sudoku it scores 99.5/96.5/86.1 (easy/med/hard) with 12 NFE, outperforming AR baselines (greedy: 14.6/5.1/1.0 at 128 NFE) and diffusion/flow baselines including DUO (96.3/84.7/58.4), MDLM, and the strongest flow baseline FMLM+ (97.7/92.8/81.3). Spending the saved sampling time on more candidates with MBR decoding gives ~7% higher ROUGE-L than the strongest summarization baseline at the same time budget. Preliminary scaling: larger generators improve quality at fixed training-token budgets. All numbers are the authors' own at ≤~100M scale; no independent reproduction.
- Paper
MLPs Are Hebbians: Constructing Efficient Fact-Storing MLPs for Transformers
HazyResearch/Stanford explains the empirical surprise that LLMs store facts at an information-theoretically optimal rate: the first Transformer-compatible closed-form MLP construction satisfying all three properties observed in LLMs — (i) optimal fact-storage scaling, (ii) arbitrary input/output geometries, (iii) usable inside Transformers. The key analytical move is analyzing the MLP decoding margin, which prior work ignored. Under isotropic embeddings it hits information-theoretic optimal capacity scaling, needing 10-104x fewer parameters than prior constructions at matched fact count; for arbitrary key/value embeddings it attains the same scaling up to geometry-dependent penalization factors. Their transformer block can use the constructed MLPs for factual recall at near-optimal capacity scaling (15-63x fewer params than prior constructions), revealing a fundamental capacity-vs-usability tradeoff for fact-storing MLPs in transformers. Proof-of-concept modular fact editing: swapping a 1-layer transformer's fact-storing MLP with a new one edits facts with no retraining, only ~3% higher cross-entropy on non-fact tokens, and doubles the fact-editing score of SoTA weight-update methods (MEMIT, AlphaEdit, ROME) when editing 10% of the fact set.
- Paper
Large Language Monkeys: Scaling Inference Compute with Repeated Sampling
Scaling the amount of compute used to train language models has dramatically improved their capabilities. However, when it comes to inference, we often limit models to making only one attempt at a problem. Here, we explore inference compute as another axis for scaling, using the simple technique of repeatedly sampling …