Explore the research collection
20 entries · Follow this search
- Paper
The Surprising Effectiveness of Shared Memory in Looped Transformers
Looped Transformers add compute without parameters by re-applying the same layers, but each recursion writes its own KV cache, so memory grows with compute. This paper pretrains looped models to share memory instead: only the first recursion writes a cache; later recursions read it while keeping a short window of their own. Sharing memory does not cost quality — it improves it. At 150M-1B parameters, the Looped Prediction Transformer (LPT) and its hybrid variant set a new quality-memory frontier for looped models: with five recursions, the hybrid lowers FineWeb-Edu validation perplexity by 1.12-1.82 vs a same-size standard Transformer while using 76-79% less context memory. Analysis: shared and local memory develop different representations, later recursions attend mostly to the shared memory, which also acts as a gradient highway to the first recursion.
- Paper
Why Adaptive Optimizers Underestimate Rare Tokens
In the softmax output layer, a rare token gets a small positive logit gradient on most steps and a much larger negative gradient on the few steps when it is the target. SGD simply adds these contributions; coordinate-wise adaptive methods (Adam, RMSProp, sign descent) divide each update by a running magnitude estimate that is largest immediately after the token appears. Two effects: (i) whole output layer — characterizes which optimizers preserve the mean output embedding: every method linear in past gradients does, as do Kronecker-factored/orthogonalized methods (Shampoo, Muon); Adam, Adafactor, Lion, sign descent do not (exact step-by-step expressions given); (ii) individual rare tokens — the normalization shifts the training fixed point below the token's true data frequency. Closed forms: sign descent lowers the logit of every token occurring in fewer than half of minibatches at a constant expected rate; for RMSProp with periodic arrivals, if a token is absent for at least two consecutive minibatches its equilibrium probability is strictly below data frequency for every learning rate, ratio tending to k/(2(e^(k/2)-1)). SGD and AMSGrad retain the unbiased fixed point. Tested in a unigram model and a small LM trained from a known generating distribution: with random arrivals the bias exceeds the periodic formula, and biased-fixed-point optimizers fit the generating distribution worse. Directly relevant to the user's LLM pretraining work — rare-token underestimation from Adam is an optimizer choice, not a data problem.
- Paper
daVinci-LLM: Towards the Science of Pretraining
Argues pretraining sets the capability ceiling and is under-studied due to industry secrecy vs academic compute limits. Releases daVinci-LLM under a fully-open paradigm (pipelines, training process, exploration). Uses Data Darwinism L0–L9 taxonomy for data processing; trains a 3B model from scratch on 8T tokens with a two-stage adaptive curriculum shifting from foundational to reasoning-intensive data. Linked Hub release SII-GAIR-NLP/davinci-llm-data (gated) covers L3–L5 subsets; code at GAIR-NLP/daVinci-LLM.
- Paper
ELECTRA: Pre-training Text Encoders as Discriminators Rather Than Generators
Replaced token detection: a small MLM generator fills 15% masks; the discriminator classifies every token as original vs replaced (MLE generator, not adversarial). Learns from all positions. ELECTRA-Small (14M, 4 days on 1 V100) GLUE 79.9 vs BERT-Small 75.1 and GPT 78.8. ELECTRA-Base 85.1 vs BERT-Base 82.2. ELECTRA-400K Large (335M, ~1/4 RoBERTa compute) GLUE 89.0 vs RoBERTa-500K 88.9; ELECTRA-1.75M 89.5 and SQuAD 2.0 test 88.7/91.4. ICLR 2020. Code https://github.com/google-research/electra.
- Paper
Sharpness-Aware Pretraining Mitigates Catastrophic Forgetting
Treats forgetting as local Hessian curvature along the fine-tuning direction. SAM, larger peak LR, and shorter WSD annealing each improve the learning–forgetting Pareto frontier even when they do not lower base pretraining loss. OLMo-60M / 192B tokens: SAM cuts StarCoder forgetting ~80% at matched FT loss; gap widens with token budget. Late-only SAM during WSD decay (~10% of steps) recovers much of full-SAM robustness. OLMo-2-1B mid-train 50B tokens: SAM vs OLMo recipe reduces forgetting 31% after MetaMath SFT and 40% after 4-bit NF4 quantization despite a slightly weaker base (42.9 vs 43.2 avg). Hessian analysis: SAM and large peak LR lower fine-tuning-directional sharpness. No official code on abs.
- Paper
Efficient Pre-Training with Token Superposition
Token-Superposition Training (TST) averages embeddings of non-overlapping bags of s contiguous tokens and trains with multi-hot cross-entropy, then a recovery phase reverts to standard next-token CE. Drop-in: no change to parallelism, optimizer, tokenizer, data, or architecture. Evaluated at 270M/600M (SmolLM2-shaped Llama3, untied embeddings) and validated at 3B and a 10B A1B MoE on DCLM. Consistently beats baseline loss and downstream metrics; equal-loss wall-clock up to 2.5× faster at the 10B A1B scale. Project https://nousresearch.com/token-superposition.
- Paper
How Much Is an AI Token Worth? Scaling Laws for Wild AI-Generated Web Text
Measures how 'wild' AI-generated web text affects LM pretraining: after FineWeb quality filtering, 27.5% of June 2026 web tokens are labeled AI-generated by Pangram, rising to 31.1% by August. Pretrains 800 language models varying the ratio of added AI tokens to human tokens and fits scaling laws to held-out losses on both human and AI-generated text. For data-starved models, adding AI tokens initially lowers loss on human text, but the benefit saturates and quickly reverses into harm; for models trained on high budgets of human text, AI tokens raise loss almost immediately while the same number of fresh human tokens keeps lowering it. Standard scaling laws (e.g. Hoffman/Chinchilla 2022) fail to predict this behavior, so the authors propose a new scaling law with separate benefit and harm terms that lets the value of an AI token change sign and reduces to Chinchilla in the absence of AI text; fit on smaller models it predicts the effect on models up to 3.6x larger with 41% lower error than the best existing law over all AI ratios. Recommendations: filter AI text when the target is human text, repeat human text before expanding the training dataset with AI-generated web text, and report validation loss on human and AI text separately; AI text remains valuable when the target is AI text. Releases WildAI, an 83B-token corpus with AI, topic, and format labels, plus all 800 models and code.
- Paper
Generalization Dynamics of LM Pre-training ("Discovering Mode-Hopping")
The usual mental model -- that LMs stably mature from pattern-matching parrots to generalizable intelligence during pre-training -- is wrong: throughout pre-training, LMs frequently and suddenly hop between parrot-like and intelligence-like computations ("mode-hopping"). Across a toy eval suite, LMs suddenly latch onto memorized or in-context patterns instead of in-context learning, use System 1 instead of System 2 thinking, pick up what sounds true instead of what is true, fail at multi-hop persona QA, out-of-context reasoning, and emergent misalignment -- then just as suddenly revert and generalize. Mode-hopping is not explained by standard optimization dynamics: it is locally stable and cannot be fixed by checkpoint averaging; the authors frame it as a capacity-allocation problem in which generalizable circuits compete with early-learned shallow circuits, with each pre-training window's data deciding which wins. Two applications: (1) selecting intermediate pre-training checkpoints that strongly generalize reasoning and alignment, better than final or mid-training checkpoints; (2) selecting pre-training data that controls and stabilizes generalization dynamics. Concrete numbers from the announcement: OLMo3-32B went from 81% accuracy to 0%, then back to 81.7% within 40B training tokens; an earlier 4.5T-token checkpoint beat a 4.9T one on GPQA transfer after math fine-tuning (36.3% vs 29.8%) and robustness to alignment attacks (53% vs 21%). Code/eval suite: GDsuite (GitHub).
- Paper
ReScraper: Unified Scraping and Cleaning of Web Data for Effective LLM Pretraining
Proposes ReScraper, a unified 0.6B-parameter language model that replaces the entire heuristic pretraining-corpus cleaning stack (HTML scraper + dozens of rule-based filters). ReScraper first extracts the main content from raw pages, then chooses among four operations: keep as extracted, edit out noisy lines/spans, delete entirely, or rewrite when poorly written but informative. Trained on supervised data curated from three teacher models. On the same crawled data pool, pretraining 400M, 1.4B, and 2.8B models on the curated data improves DCLM Core score by a relative 3.8-4.7% over the strongest baseline at each scale, including costly multi-agent curation. Each operation plays a distinct, complementary role; one-model extraction+cleaning beats a cascade of separate models; ReScraper concentrates edits on the pages that need them, raising poor-page quality while keeping corpus diversity.
- Paper
Telescopic Language Models
Trains a nested-capacity Transformer that is usable at many compute budgets: stochastic prefix supervision over layer prefixes plus a full-capacity anchor. A 200M proxy trained on 20B FineWeb-Edu tokens was usable at every one of 20 layer prefixes.
- Paper
How Far Are We from Removing the Visual Encoder? Scaling Laws for Encoder-Free Multimodal Pretraining
Studies scaling laws for encoder-free multimodal pretraining (raw visual input into the language model, no separate vision encoder) and asks at what compute budget it catches up with encoder-based models.
- Paper
Mixture-of-Recursions: Learning Dynamic Recursive Depths for Adaptive Token-Level Computation
Shares layers across recursion steps and routes individual tokens to different recursion depths, giving adaptive per-token compute: easy tokens get shallow passes, hard tokens recurse deeper. Experiments span 135M-1.7B parameter models.
- Paper
How Model Growth, Recursion, and Boundary Operators Influence Scaling Exponents
Chen, Vegesna, Dahal & Wilson show that architecture — specifically model growth via looped/recurrent transformers — can modify pretraining scaling exponents, not just shift loss curves. A 7.4B growth architecture matches GPT-3 13B on CORE with roughly 20× less compute, with gains that increase with scale; even a simple boundary operator in a vanilla transformer helps.
- Paper
Understanding Reasoning from Pretraining to Post-Training
Studies how pretraining choices shape the returns to RL post-training and what RL actually does to the model, using chess as a controlled testbed. Language models from 5M to 1B parameters are pretrained on human chess games, supervised fine-tuned on synthetic reasoning traces, then RL-trained on chess puzzles with verifiable rewards. Post-RL performance at a given RL compute level is well-predicted from pretraining loss, and RL reward-curve slopes improve approximately linearly with pretraining tokens.
- Paper
Self-Play Pretraining with Zero Data
arXiv:2609.30063 (2026-09-24; X announce @michaelyli_ 2026-09-25). Proof-of-concept: from random init, a generator RL-proposes programs for a Brainfuck-like universal TM; a learner does next-byte prediction on the emitted bytes only—no natural data in training. Generator reward is AdamW-preconditioned gradient alignment with the learner’s recent parameter trajectory (frontier curriculum); ablations beat difficulty-only and fixed universal-prior sampling. Compute-optimal frontiers show power-law zero-shot BPB gains on text, images, audio, melody, DNA, math, code; self-play also induces ICL (reverse/stack/assoc/sum/max/min) where fixed priors fail; generator discovers Fibonacci/geometric/etc. much earlier than a Solomonoff-style prior. Authors frame results via contingent vs universal predictive structure. Code: github.com/acowsik/self_play_pretraining. Small-scale PoC (models <~25M in discussion).
- Paper
GrowLength: Accelerating LLMs Pretraining by Progressively Growing Training Length
arXiv 2310.00576 (cs.CL/cs.LG; published 2023-10-01) from Texas A&M / Amazon / Rice. GrowLength starts pretraining on short sequences and progressively lengthens them, adapting context-window-extension ideas to the pretraining stage. Claims faster convergence and lower loss than fixed-length baselines at equal time or equal token budgets on Pythia-style models (70M–410M), and is orthogonal to FlashAttention/quantization/pruning.
- Paper
AI can Autonomously Evolve Pretraining Data Curation
GAIR/SII/FDU/SJTU (cite Mi et al.; arXiv 2603.14420; Data Darwinism Part II). DataEvolve: observer identifies issues, designer writes a cleaning prompt, cleaner executes on samples, judge scores 1-10 with diagnostics; experience pool + strategy pool carry knowledge across 30 generations per category. Applied to 8 Nemotron-CC academic STEM categories (672B tokens) to produce Darwin-CC (504B, ~25% token drop from targeted cleaning not rewrite). 3B Qwen2.5 trained 500B tokens: Darwin-CC 44.13 avg on 18 benches vs raw 40.17, DCLM 42.42, FineWeb-Edu 36.52, Ultra-FineWeb 36.29; MMLU +18.64, MedQA +13.48 vs raw. Evolved strategies converge on L4-style cleaning (noise/format + domain preservation) not Wikipedia/QA rewrite. Ablation: best vs suboptimal strategy +2.93 avg. Fitness is sample scoring, not full training; limited to 8 academic categories.
- Paper
HRM-Text: Efficient Pretraining Beyond Scaling
Sapient Intelligence 1B Hierarchical Recurrent Model for language: slow H-module and fast L-module (2 H cycles x 3 L updates = 8 steps / 4 effective recursions), MagicNorm, warmup deep credit assignment (K=2 to K=5), sigmoid-gated attention, RoPE. Trains only on instruction-response pairs with response-only NLL and PrefixLM bidirectional prompt attention. 40B unique / 60B training tokens, ~$1500, 1.9 days on 16 H100s. Reports MMLU 60.7, ARC-C 81.9, DROP 82.2, GSM8K 84.5, MATH 56.2; competitive with several 2-7B open models at 96-432x less estimated compute and 100-900x fewer tokens. Ablations: HRM beats FLOP-matched Transformer/looped/RINS; task-completion + PrefixLM each move the needle. Discord post is a third-party ablation read (huskydogewoof) of Table 3/4, not the authors.
- Paper
Late-to-Early Training: LET LLMs Learn Earlier, So Faster and Better
LET adds a decaying cosine-alignment loss so early layers of a larger target, early in training, match the last-layer hidden states of a small already-trained teacher (late-to-early-layer and late-to-early-step). On 1.4B LLaMA-like models on The Pile (~20B tokens) it reports up to 1.6x faster downstream improvement and ~5% higher average one-shot accuracy vs standard CLM, even with a 10x smaller teacher (SmolLM-135M); 7B also beats baseline, reverse KD, and SALT. Ablations: last-to-early (L2E) alignment is best; lambda=0.1; S_stop=1500. No official code on the abs page.
- Paper
Beyond Random Sampling: Efficient Language Model Pretraining via Curriculum Learning
First systematic curriculum-learning study for LLM pretraining: more than 200 models, up to 100B tokens, three strategies (vanilla sort, pacing, interleaved) times six difficulty metrics (compression ratio, fertility, Flesch, MTLD, n_tokens, perplexity) on CulturaX English. 0.5B LLaMA3.2-like, plus 1B/3B. CL reaches the random baseline 18-45 percent faster in early/mid training. Best warmup (CL then random) gains up to 3.5 percent (0.5B) and about 3.1 percent at 100B tokens. Strongest metrics: compression ratio, MTLD, Flesch; high-perplexity tails are often noisy. Orthogonal to data selection. English decoder-only only; static precomputed scores. No official code on the abs page.