Explore the research collection
362 entries · showing 25–48 · Follow this search
- Paper
Characterizing When Language Models Take Harmful Actions to Protect Their Assigned Goals
Unifies agentic misalignment (e.g. blackmail to avoid replacement) and alignment faking as one decision structure of protecting an assigned goal, and characterizes when LMs take harmful actions to do so.
- Paper
The Verifier Is Part of the Simulator: Evidence-View Gaming in Agentic Equation Discovery
Shows agents in agentic equation-discovery pipelines can game the verifier's discretized evidence view, so the verifier effectively becomes part of the simulator and a target for reward hacking (NeurIPS 2026 Sim2Science workshop).
- Paper
Audit at the Precision You Deploy: Quantization Reshapes a Subliminally Learned Preference
Implants a subliminally learned 'favourite animal' preference and shows quantization changes how strongly it is expressed, arguing safety audits should be run at the deployed precision.
- Paper
Hacking or Just Failing? A More Capable LLM Monitor Better Separates Reward Hacking from Honest Failure
Builds a sandboxed task with counterfactually labeled episodes and five pre-registered studies showing a more capable LLM monitor better separates genuine reward hacking from honest failure in a Llama 3.1 8B agent.
- Paper
Dory1.0-4B: A Looped Normalized-GPT
Introduces Dory1.0-4B, a 4B latent-recurrent looped LM on a normalized-Transformer (nGPT) backbone with input, shared recurrent, and output blocks, giving elastic depth so one checkpoint serves multiple inference budgets.
- Paper
A Token Is Not a Unit of Difficulty: Segmentation Controls Where Adaptive Computation Goes Inside a Word
Studies where early-exit/adaptive-computation policies in Qwen3 spend their budget inside multi-token words and shows tokenizer segmentation, not the token itself, controls where extra compute goes across languages.
- Paper
You don't need long context
A challenge to the long-context roadmap, on cost grounds. Observation: later tokens are more expensive to generate than earlier ones - each decode step attends over a longer prefix and a larger KV cache - and on frontier open-weight models the per-token cost disparity between early and late positions rises to as much as 7x. If long contexts are that expensive, the question is whether tasks actually need them. The paper's answer, via FREQUENT COMPACTION (periodically compressing the working context back down to a short semantic summary and continuing from it): across a broad range of long-horizon and long-input tasks, frontier language models sacrifice little to no task accuracy when they are forced to maintain short contexts. The extreme version is the striking one: on long-horizon software-engineering tasks, performance does not collapse even when the agent takes AT MOST ONE ACTION PER CONTEXT - every step starts from the compacted state, acts once, and the state is re-compacted - meaning the trajectory's information survives being funneled through a short text bottleneck at every single step. From this the authors outline a concept they call semantic state space models (SSSMs): recast the agent as a state-space model whose recurrent state is not a latent vector but a semantic (natural-language) state, updated by compaction rather than by a learned transition - long-horizon behavior emerges from state quality, not context length. Caveats: abstract-level evidence - the task list, the size of 'little to no' accuracy loss, the compaction method and its own token cost, and which models were run are all full-text details; the 7x figure is a maximum disparity, not a typical one; results are on frontier open-weight models, whose compaction quality (the model summarizing its own state) may not transfer to smaller models; and tasks whose bottleneck is verbatim recall of a long input are exactly where a summary bottleneck should hurt most, so the breadth of 'long-input tasks' tested matters. Catalog placement: the demand-side counterpart to the catalog's long-context supply-side work (e.g. ID 1801's subquadratic sparse attention makes long context cheaper; this argues the expensive thing may be unnecessary) - and for agent architectures it is the compaction/state-carrying position stated at full strength: the context window as a cache you keep evicting into a semantic state, not a memory you keep growing.
- Paper
Pretraining Data Scale Reverses the Muon-AdamW Fine-Tuning Gap
Muon's pretraining-loss advantage over AdamW does not survive fine-tuning at scale - and the crossover is predictable. Empirically: at small pretraining data budgets, Muon-pretrained models also fine-tune better, but beyond a sufficiently large pretraining token budget the ranking flips and AdamW-pretrained models fine-tune to better downstream performance, despite Muon's better pretraining loss. The crossover point is not fixed: as model size increases, AdamW overtakes Muon at progressively SMALLER pretraining token-to-parameter ratios, so larger models cross over earlier in their training-token budget. To explain the reversal the authors model fine-tuning as a perturbation of the model's outputs and introduce the margin-to-spread ratio: how far the correct logit lies above the wrong logits, normalized by how widely the wrong logits are spread. A model with a high ratio has its predictions robustly separated relative to the noise floor of its incorrect alternatives, which is what a fine-tuning perturbation has to overcome or preserve. Measured in language models, the ratio tracks the empirical reversal exactly - Muon's margin-to-spread is larger at small data budgets and AdamW's is larger at large ones. Theory backing: in a linear associative memory model they prove that after a single update, gradient descent's margin-to-spread ratio gains on Muon's as the data budget grows, and simulations show the trend persists after extended training - i.e., the reversal is a structural property of the optimizers' update geometry interacting with data scale, not a tuning artifact. Caveats: abstract-level research - the specific model scales, token budgets, downstream tasks, and crossover magnitudes are in the full text, not the abstract; the proof is for a linear associative-memory surrogate after one update, with the LM claim resting on the empirical correlation between the ratio and fine-tuning outcomes; code was not linked from the arXiv page at catalog time. Practical read for anyone running a pretrain-then-finetune pipeline with Muon (the catalog's Muon thread already covers its weight growth, looped-model LR scaling, and orthogonalization cost): optimizer selection by pretraining loss alone can pick the wrong optimizer for the artifact you actually ship, and the risk grows with model size and token budget. The margin-to-spread ratio is also a candidate pretraining-time observable - a geometry statistic of the base model that predicts post-fine-tuning behavior, in the same family as the logit-margin signals tracked elsewhere in the catalog.
- Paper
Library of Layers (LoL): Adaptively Ordering Transformer Layers at Runtime
Every production transformer executes its layers in one fixed order; programs, by contrast, chain the same primitives (conditionals, loops) in different orders per algorithm. Library of Layers (LoL) gives the model a single global library of transformer blocks plus a router that dynamically ORDERS them at inference time for the problem at hand. The architecture has essentially one hyperparameter - the library size - which sweeps a continuum: a small library forces heavy block reuse (depth recurrence / looping), a large library with a subset active per step behaves like sparsity (MoE), and the endpoints recover dense and depth-recurrent designs, so the authors frame LoL as one family generalizing the parameter-efficiency and FLOPs-efficiency trade-offs of all three. Results are parity results, not wins: pretrained on text (FineWeb), LoL is competitive with dense, depth-recurrent, and MoE baselines - main experiments at 360M parameters (GPT-2-Medium shape modernized with RoPE, RMSNorm, SwiGLU, bias-free attention; a 1B variant follows the Llama-3.2-1B shape), and on lm-evaluation-harness benchmarks (ARC-Easy/Challenge, HellaSwag, PIQA, GSM8K) all models sit within 2 standard errors of each other, except the vanilla full-attention model scoring notably lower on ARC-Easy. The distinctive evidence is behavioral: on synthetic sudoku and maze tasks the model uses DISTINCT layer orderings to implement different solution strategies, and the routing can be intervened on to force a chosen strategy onto a given problem instance - the ordering is a controllable computational graph, not just a learned permutation. In a multilingual setting the chosen order patterns differ systematically by language and script. And when LoL is trained on safety data, simple probes fitted to the ROUTER's outputs distinguish safe from unsafe text with high AUROC (the exact figure was not extractable from the HTML full text at catalog time) - the routing decisions themselves carry a readable signal about the input. Caveats: 360M-1B scale throughout; headline text results are parity within noise rather than improvements; the strategy evidence is on synthetic toy tasks, not natural reasoning; runtime reordering costs and behavior at frontier scale are untested. In the catalog's looped-models cluster, LoL is the generalization at the end of the line: a fixed loop is LoL with a one-block library and a hard-coded cyclic order, and MoE is the same routing idea applied across width instead of depth order - LoL routes over both WHICH blocks and IN WHAT SEQUENCE. The intervenable routing and probe-able router state are also the monitoring angle: layer-order choices are an observable, steerable intermediate that fixed-order models do not expose.
- Paper
Rethinking Pre-pretraining
A compute-matched negative result on synthetic pre-pretraining (PPT) - a synthetic-data phase (formal grammars and rule systems) run before natural-language pretraining (PT), previously reported to help especially when natural language is scarce. Four curricula are tested: k-Dyck (multi-type bracket matching), NCA (nested bracket sequences from neural cellular automata), DeciRef (declarative reference corpora with C4-decodable rules), and code as a real-data control. Across three regimes, allocating compute to PPT never outperforms pure natural-language training. (1) DATA-CONSTRAINED (100M-token corpus, compute-optimal runs at 1e18 FLOPs, PPT doses of 1/5/10% of total FLOPs): simply repeating the 100M tokens for up to 10 epochs beats every synthetic curriculum on FineWeb validation bpb, with no consistent downstream advantage. (2) DATA-UNCONSTRAINED: power laws fit to compute-optimal runs at 1e18, 3e18, and 9e18 FLOPs and extrapolated to 50B tokens show PPT has a higher compute-optimal data coefficient - it is less compute-efficient than natural language, and the gap GROWS with scale (true at both 1% and 5% doses). (3) OVER-CHINCHILLA (881M parameters, 50B tokens, 1% PPT): almost no effect on FineWeb bpb or DCLM CORE, no method clearly better. The one regime where PPT appears to help - ADDITIVE compute, where the PPT phase is extra on top of a fixed PT budget, reproducing a prior NCA result on OpenWebText perplexity - is largely explained by a confound: the PPT models used a different weight initialization (N(0,1) embeddings, N(0,0.02) elsewhere) than the baseline (N(0,0.02) everywhere). Giving the baseline spectral initialization improves it by 5.4% perplexity and narrows the PPT gap to about 1.0%. With initialization handled and PPT compute given for free, residual gains persist only at small natural-language budgets (50M-100M tokens) and only when repeated epochs over the natural data are prohibited; they disappear by 1B tokens. Downstream, individual subtasks occasionally favor a PPT method (NCA on ARC-Challenge), but no method dominates and on aggregate none beats the baseline outside the no-epoching additive setting. Mechanism: models rapidly FORGET the PPT distribution during PT - a 1%-NCA model starts at 0.01 bpb on NCA and becomes worse than the never-PPT baseline at NCA itself within 200M PT tokens, with the embedding layers forgetting first. Interleaving the same synthetic data uniformly throughout PT prevents the forgetting entirely, yet still does not beat the natural-language baseline on FineWeb bpb - so forgetting is only part of the story; at equal compute the synthetic data appears to add nothing over natural language. The authors' own scope limits are explicit: evaluation is validation bpb plus aggregate benchmarks; they do NOT test generalization to complex hierarchical-structure tasks (PPT's original motivation), structure-matched downstream tasks like parsing, few-shot settings, or low-resource languages. Their recommendations for anyone studying a separate PPT phase: vary weight initialization across arms, permit repeated epochs over the natural data, evaluate retention on the PPT task itself, and compare against a spectrally-initialized baseline. Code is public (github.com/alexkstern/rethinking-ppt). For the catalog's data-constrained thread this is the control-condition companion to ID 1800's scaling law: repeated epochs over unique tokens are the baseline any synthetic curriculum has to beat, and initialization scheme is a hidden variable capable of manufacturing a multi-point 'data' gain.
- Paper
EmbeddingGemma 2: Unified and Efficient Multimodal Representations
Google's second-generation open embedding model, extended from text-only to a single unified representation space: EmbeddingGemma 2 natively embeds text, images, audio, video, and combinations of them, so cross-modal and mixed-modal retrieval use the same vectors as unimodal search. Two design changes carry the quality: simplified per-layer embeddings, and a multi-stage training curriculum with modality and objective progression (stages add modalities and harder objectives rather than training everything jointly from the start). On the authors' comprehensive embedding benchmarks spanning all modalities, they report a new Pareto frontier - the model beats both specialist single-modality embedders and general models two to twelve times its size. The release is engineered for resource-constrained deployment: modality encoders can be loaded selectively (ship only the encoders you need), the vision token budget is adjustable, embedding dimensions are truncatable (train once, serve shorter vectors at lower cost), and weights are quantized. Ablations over the key design decisions are included, and the model is released openly. Caveats: all benchmark claims are first-party (Google evaluating its own model on its chosen suite), and the abstract gives no parameter count or per-benchmark numbers, so the '2-12x larger' comparison cannot be checked at abstract level; the predecessor's niche was small on-device embeddings, and the efficiency features here are design properties, not measured latency or memory figures in the abstract.
- Paper
Latent Sparse Attention: Towards Subquadratic Ultra-Long Context Attention
Sparse attention whose indexer is subquadratic. The bottleneck the paper targets: at ultra-long context (above 1M tokens) full attention is prohibitive, and existing sparse-attention indexers - a dedicated module that selects a subset of keys per query - either still cost quadratically in context length or lose accuracy at that scale. Latent Sparse Attention (LSA) instead hierarchically clusters the keys in a learned latent space, and each query scores the hierarchy of clusters rather than every key, so selection cost grows subquadratically while prefill, decode, and training all get faster at long context. Two variants: Distilled-LSA (D-LSA), which retrofits a pretrained model via distillation, and Native-LSA (N-LSA), trained from scratch on the next-token loss alone. Headline results: on GLM-5.3-FLASH (Qwen-3.8-27B) at 10M tokens, D-LSA speeds up one attention layer by 22.7x in prefill and 4.6x in decode relative to that model's original sparse attention (72.4x and 42.5x relative to full attention), at similar accuracy across a variety of tasks; N-LSA matches full-attention accuracy with a 1.6x per-layer training speedup at 128k tokens. Caveats: the speedups are per attention layer, not end-to-end model throughput, and the abstract-level evidence is a single retrofit model at 10M plus native training at 128k - the regime where LSA wins (million-token contexts for long-horizon agentic work) is far beyond typical training contexts. In the catalog's attention-cost thread this is the learned-indexing alternative to fixed-structure sparsity: where a sliding-window hybrid (e.g. a 3:1 SWA:full mix) hard-codes which keys are reachable, LSA learns a key geometry and lets each query route through it - complementary to, not a replacement for, windowed attention at moderate context lengths.
- Paper
ElTab: Elastically Looped Tabular Transformers
ElTab is an elastically looped tabular transformer (TabPFN-style) trained with supervision at random early exits so one model serves many compute budgets; evaluated on 30 OpenML classification datasets.
- Paper
How to Loop Your Transformer: Loop Scaling, Specialization, and Parallel Inference
Study of looping in dense decoder-only transformers trained from scratch (up to 1B params, 155B tokens): which parts to loop, how many loops, how to pass information between loops, loop scaling, specialization and parallel inference.
- Paper
Depth through Recurrence: Towards Ultra-Efficient On-Device ASR
Revisits depth in on-device ASR and replaces stacked layers with recurrence over shared layers to get deep-model accuracy at a fraction of the parameters for watches/glasses-class hardware.
- Paper
Mechanistic Interpretability for End-to-End Self-Driving
Trains SAEs on a single-camera end-to-end self-driving planner; latents recover route intent (98.3%), speed and braking, with counterfactual edits showing causal features; CoRL 2026.
- Paper
Pre-Crime for Agents, at the Last Second: Probing When a Recruited Agent Gives In
Linear probes on an agent's activations can predict, before it happens, when a peer agent's pressure will make it break its operator's rule (a precursor to collusion) across six multi-agent scenarios; code released.
- Paper
Elucidating the Design Space of LM Data Attribution
Introduces the Controlled Attribution Benchmark (CATT) to isolate why LM training-data attribution methods fail by varying dataset properties one at a time (Bau lab).
- Paper
The Role of Quantization in Loss Spikes
Why do some pretraining runs look healthy for most of training and then diverge irreversibly? The paper names these delayed, terminal divergences time-bomb spikes and traces them to finite precision in the LM head. Mechanism: the cross-entropy gradient over the LM head is zero-sum along the vocabulary axis, but Adam's coordinate-wise preconditioning breaks that structure, inducing persistent drift in the mean output embedding and hence growth in output logit magnitude. In exact arithmetic that drift is harmless (a constant logit shift leaves softmax and its gradients unchanged), but in finite precision a large logit scale degrades how precisely the logit differences that determine the predictive distribution can be represented - measured directly, LM-head quantization error (RMS difference between native BF16 logits and FP32 logits recomputed from the same hidden states, plus the KL between the two predictive distributions) grows by orders of magnitude before each failure, and loss diverges soon after. Evidence (JAX/Flax modernized GPT-2 with QK-Norm, FineWeb, elevated learning rates, models 28M-1.4B): 404M models overtrained on 96B tokens (~12x Chinchilla) sit on near-identical loss curves until the higher-LR run time-bombs with accelerating logit growth; 28M models overtrained ~28x Chinchilla (16B tokens, five seeds) fail in strict precision order - BF16-true (weights and optimizer states stored in BF16) first, BF16-mixed later, FP32 LM head stable across the whole horizon - while logit norm grows under every AdamW baseline including FP32, so drift alone does not destabilize; precision decides whether drift becomes error. Mitigation: replace AdamW with SGD with momentum (momentum 0.99, separately tuned head LR) on the LM head only - SGD-M preserves the zero-sum gradient structure, keeps logit norm and quantization error nearly flat, prevents time-bombs even in BF16, stays competitive on final loss across the 404M LR sweep, and stores one fewer optimizer buffer; raising the head's AdamW beta1 to 0.99 closes much of the gap but still diverges at the largest trunk LR. Unifying result: z-loss, mu-centering, higher head precision, and SGD-M all prevent time-bombs and all keep quantization error bounded, suggesting suppressed finite-precision error is the shared mechanism behind previously unrelated mitigations. Costs: an FP32 LM head is the direct fix but the head GEMM is among the largest in the model and FP32 logits double the largest activation tensor; the optimizer-side mitigations keep BF16 and add little overhead. Caveats: demonstrated at 28M-404M scale in the overtraining regime with deliberately elevated LRs, not at frontier scale; fast transient spikes are a separate phenomenon, largely suppressed by learnable RMSNorm gains. Joins the catalog's precision thread as its loss-spike mechanism paper: LM-head quantization error is a measurable leading indicator that rises before the spike (a per-checkpoint series in the same family as the logit-margin signal), complementing the checkpoint-level spike-risk screen and the logit-growth mitigations already cataloged. Enrichment (2026-11-03, from senior author Micah Goldblum's launch thread for the paper's v2, revised 29 Oct 2026; project led by first author Zaiqian Chen): the thread's seed-averaged figures (n=5) put a concrete number on the at-horizon gap the abstract describes qualitatively - by 120k steps the AdamW baseline's logit quantization error climbs to roughly 1e0, while LM-head SGD-M holds it near 1e-2 to 1e-3, a two-to-three-orders-of-magnitude separation at the point where the baseline time-bombs; the same figures show the AdamW output-logit norm growing from about 1e6 to above 1e7 over 600k steps while the SGD-M curve stays flat. The thread also states the unification explicitly as the paper's moral: z-loss (acts on the loss), mu-centering (acts on the embeddings), and LM-head SGD-M (acts on the optimizer) are three intervention points on one principle - keep the LM head in the regime where BF16 arithmetic stays stable. Third-share thread additions (Dolatabadi explainer thread, via @miyashita_03, 2026-11-05): the delayed spike is framed as a time bomb set by absolute logit scale - a rare token whose LM-head row has a large norm produces logits around ~128, a magnitude where bf16 rounding misassigns probability mass; a small model spiked 3x after ~150B tokens and a larger one jumped from 2.9 to ~10 with benchmark forgetting. Raising peak LR reproduces the spike more strongly than widening the precision range does. Scope flag from the thread: the long runs are 28M and 404M models with no weight decay and learning rates chosen to provoke instability, so the mechanism explains a specific failure class rather than loss spikes in general. The share's framing (Miyashita): softmax is shift-invariant, so a shared logit offset cancels out - the damage is per-logit rounding at large magnitudes. The thread closes with an open question, flagged as the author's speculation: whether Muon-style momentum could serve as the LM-head optimizer in SGD-M's place.
- Paper
How Depth Growth and Looping Shape In-Context Learning in Language Models
Question: do looped and depth-grown language models merely save compute and parameters, or does reusing computation across depth change what the model learns to rely on? The paper tests the hypothesis that (soft) parameter reuse creates a shared inductive bias toward learning from context rather than from weights, studying how in-context learning (ICL) is acquired, retained, and mechanistically supported. Setup: pretrained LMs at 360M, 1.7B, and 3B (main comparison: 36-layer dense reference, all models trained on the same 100B tokens in the same order, matched optimizer-step budget and final inference FLOPs), plus controlled RegBench (unseen formal languages) and Omniglot tasks that pit context against fixed in-weights associations. Methods compared: the dense baseline; LIDAS depth growth (the authors' earlier method: start from 4 layers and periodically duplicate the central 4-layer block, copying weights and AdamW moments without resetting the learning-rate schedule; growth uses shallower networks early, saving an estimated 26% of training FLOPs at 3B and 22% at 360M/1.7B); and a looped model (Loop 10-8x2-10: 36 layer applications but only 28 unique layers, ~2.45B unique parameters at the 3B scale). Findings: (1) Context use - grown and looped models show larger early-to-late token-loss reductions than dense, and the grown model also reaches lower absolute late-token loss; both beat dense on few-shot GSM8K at every shot count, with the LIDAS gap widening as demonstrations increase, ending about +7 points above baseline at 8 shots (~19% vs ~12% strict exact match, per the review thread); on RegBench both predict unseen formal languages more accurately, the advantage emerging within the first string. (2) Acquisition and retention - on Omniglot tasks where a fixed class-label solution competes, grown and looped models retain higher ICL accuracy (about 0.75-0.80 vs ~0.70 for dense late in training) alongside lower in-weights accuracy, and when labels are reassigned in every sequence they acquire ICL earlier than the dense reference. (3) Mechanism - tracing the 12 strongest final induction heads in the 3B LIDAS model backward through training, 10 descend from just two heads (L2H9 and L2H10) in the initial 4-layer network; duplication clones these circuits across depth at 4-layer intervals, and in the looped model the same heads fire periodically across passes through the shared block. Ablating the top-20% induction-ranked heads drops 19-task few-shot F1 by 0.08 in dense vs 0.18 in LIDAS vs 0.28 in Loop, with correspondingly larger late-token-loss increases - causal evidence that grown/looped models rely more heavily on induction heads, though function-vector heads remain important. Caveats: pretraining at all three scales uses a single random seed; the looped model gives up unique capacity and trails dense slightly on MMLU (38.32% vs 39.15%); and the RegBench looped gains used width d=256 vs d=128 for the dense baseline, which skews that comparison. No author code released (training builds on Hugging Face's public nanotron framework). Joins the catalog's looped-models cluster as its mechanism paper: depth reuse propagates early induction heads across layers, which is why grown and looped models lean on context - complements ID 1548's looped-LM training recipes and ID 928's looped-MoE scaling laws. Author-thread additions (Kapl, 2026-11-04): the backbone is SmolLM3, pretrained from scratch; at 3B the grown and looped models beat the dense baseline on all long-context benchmarks tested (RULER, HELMET, NoLiMa) while matching it on the short-context suite. Induction heads emerge in opposite order - top-down in the baseline, bottom-up in grown/looped models - and end stronger (higher prefix-matching score); ablating them raises FineWeb-Edu NLL by an amount that grows with token position for grown/looped models but stays flat for the baseline. On the Garg et al. random-linear-regression task the grown model shows better in-context prediction alongside MORE memorization, so the context-over-weights bias is task-dependent for growth (the looped model shows less in-weights learning and higher accuracy there).
- Paper
Training Foundation Models with a Single Algorithm (Unified Training)
Foundation models are trained in stages — pretraining, midtraining, SFT, RL — each with its own data and algorithm. This paper argues the algorithmic separation is not fundamental. Building on MaxRL's likelihood interpretation (Tajwar et al.), it shows a suitable RL update is exactly maximum-likelihood fitting to a model-generated target distribution: for binary rewards, the MaxRL gradient equals an expectation under the current policy's success-conditioned distribution pi+, so an RL step is MLE on the model's own successful generations, with the generator held fixed during the update. The construction extends to generations from arbitrary fixed policies nu (fit nu's success-conditioned distribution — off-policy generations need no separate algorithm) and, via TailRL, to continuous rewards and other policy-gradient objectives. Unified training then writes every stage as a source (prompt distribution + target distribution) feeding ONE weighted likelihood loss over a time-varying mixture q_t = sum_s lambda_{s,t} (rho_{s,t} o mu_{s,t}): pretraining and midtraining are the empty-prompt static sources, SFT the demonstration source, RL the self-generated success source. The learning rule never changes; the design problem becomes which data, in what proportions, and when — with conventional staged training as the special case where one source holds all the weight at a time. Implementation: a single trainer over a common data representation, with asynchronous generators appending completed batches to a shared buffer and the trainer publishing weights every k updates (policy staleness measured in the appendix). Experiments, deliberately small-scale: (1) Controlled full pipeline — 124M model from scratch, fixed 20B-token pretraining corpus + 510M-token midtraining corpus of oracle solutions to Reasoning-Gym-style puzzles with controllable difficulty and compositional RL tasks; MaxRL, results averaged over two seeds. Best unified configurations beat staged training on final accuracy and coverage in both Base and Extended settings and on Extended generalization (larger puzzles seen in neither midtraining nor RL). Unified reuses data better: its two best configurations run 2 and 4 epochs over the midtraining corpus during pretraining, where staged training degrades when midtraining is extended past its best budget. Compute-matched frontiers (total compute including pretraining): staged is accuracy-optimal at intermediate budgets, unified wins at the smallest and largest budgets and on generalization at almost all budgets. Retention: unified initializations keep held-out pretraining loss and five-benchmark average near the pretrain-only model even as midtraining data grows, while even the best-retention staged configuration is substantially worse on both. (2) Real-world — 0.76B model from scratch, mathematical RL on Math12K with a 240M-token heterogeneous midtraining corpus (web text, math, code, reasoning traces) mixed at 0–5% token proportions. Math accuracy is roughly flat across proportions (slight decline) while coverage peaks at the largest proportions; every nonzero mixture pushes held-out midtraining loss BELOW the base model (staged training raises it) and SciQ generally improves, but Coding accuracy falls with more mixing despite higher coding coverage. Schedules at a fixed 0.5% average: annealing the mixture to zero by mid-training recovers Coding accuracy while keeping SciQ gains, at some retention cost — no universally preferred schedule. Continual learning: after math training, all unified models beat the staged model on final HumanEval+ and MBPP+ accuracy after identical coding RL (the 5% mixture best on all four accuracy/coverage metrics) despite starting from lower coding accuracy. Objective ablation at fixed mixture: REINFORCE gives higher Math accuracy and retention, MaxRL higher coverage. KL-penalty control: no tested penalty reproduces unified training's combination of math performance, retention, and SciQ/MMLU gains. Separately-normalized dual-loss control: the shared likelihood loss matches or beats it without a tuned coefficient.
- Model
Meet Lor — Mirendil's platform for agentic AI-lab work, now in private beta
Lor is Mirendil's platform built "to do the work of an entire AI lab": its agents write code, run experiments, and iterate on results for days, on any machine, hundreds at a time; Mirendil states it runs on Lor every day. Four capabilities: (1) Massively multi-agent — one job splits across dozens of agents, hundreds across projects, each independently followable and stoppable; company example: agents built environments from 100 PyTorch pull requests with 102 agents averaging 8 minutes each. (2) Compute included — agents request nodes, set them up, run the work, and release them; no cloud account or setup required; agents get full control of every VM/node they bring up. (3) Long-running work — durable, asynchronous, agents notice breakage and unblock themselves instead of waiting; company example: an overnight run found security bugs in LiteLLM and fixed them by morning; automations can run for weeks. (4) Any machine — the agent runs in the cloud and its commands run on the machine chosen (Lor-managed cloud computer, laptop, or any always-on machine); closing the laptop does not stop work; agents only operate on machines the user added, removable at any time. Model support: runs frontier models the user already uses plus open-source models, and is the home for Mirendil's own models — Fern (10M-token context) listed first. Model table in the post: Mirendil Fern; Anthropic Opus 5.5, Fable 5.1, Sonnet 5.5, Haiku 5.5, Opus 5, Fable 5; OpenAI GPT-6 Astra, GPT-6.1 Sol, GPT-6.1 Terra, GPT-6 Sol, GPT-6 Luna; Google Gemini 4 Argon; xAI Grok 4.7, Grok 4.6; Meta Muse Spark 1.3, Muse Wonder; Z.ai GLM-5.3, GLM-5.3-Flash, GLM-5.2, GLM-4.7-Flash; Moonshot Kimi K3.1 Pro, Kimi K3; DeepSeek DeepSeek 4.1 Flash, DeepSeek 4 Pro. Example handoffs given: "Run these 12 ablations overnight and write a report," "Audit every file in this repo for security bugs and open a PR for each fix," "Reproduce Table 2 of this paper on 8 GPUs and explain where our numbers differ."
- Post
Training Reve 2.0 at scale
Reve's training platform for its multimodal image models (Reve 2.0/2.1), built by a small team under tight engineering-time and compute constraints and validated at ten-thousand-GPU scale. Stack: Kubernetes + Ray on Google Cloud, with an in-house workload client GKR (Google Kubernetes Engine Runner) as a single cluster-aware CLI for submission, inspection, logs, and file transfer; KubeRay manages Ray job lifecycle; PyTorch + Ray Train for distributed compute; GitOps via ArgoCD/Terraform/Kustomize; Hydra YAML training-driver configs separating application config from launch templates. Job submission: GKR renders Jinja Kubernetes manifests, with RayJob (temporary RayCluster), persistent RayCluster, and plain Job types; extensive preflight checks before GPU time is spent (manifest validation, kernel-log/hardware/driver checks, compute and collective tests, mounts/libraries/transport) with an offer to tear down on failure. Platform: GCP future reservations for collocated long-term capacity; node families a3-megagpu-8g (8x H100 80GB, 1,800 Gbps GPUDirect-TCPXO) and a3-ultragpu-8g (8x H200 141GB, 3,600 Gbps RoCE); whole-node 8-GPU allocation preserving intra-node locality; rack affinity found minimal impact in-region (expected to matter more on Vera Rubin A5X 72-GPU NVLink domains); no capacity-based queueing by design — conflicts resolved by manual coordination, Kueue admits all jobs. Distributed execution: RayCluster with one head + many workers, auxiliary workers (inference/encoding/evaluation) as persistent Ray actors in separate resource pools behind per-node proxies, communicating via ZeroMQ (not Ray RPC) with weighted round-robin and per-rank bounded queues; driver capacity planning reserves auxiliary capacity first via a proportional GPU/CPU formula, then rounds by parallelism layout; data loaders decoupled from Ray into multiprocessing backends with deterministic sampling schedules resumable from checkpoints. Cross-region: clusters per GCP region, with a custom DiLoCo variant — independent local learners per RayCluster, central synchronizer merging weight snapshots with a separate outer optimizer, in barrier and decoupled modes (decoupled learners keep training and merge later, needing merge/replace rules). Failure containment: PyTorch Distributed Checkpoint (snapshot to CPU memory, background write to GCS, lowest-index rank triggers auxiliary checkpointing); optional torchft integration for live fault tolerance — RayCluster auto-shrink keeping surviving FSDP replica groups running past a trainer-process loss, with a Lighthouse quorum, manager heartbeats, and all-or-nothing optimizer updates per replica group; at a hypothetical 20,000 GPUs the authors estimate MTBF would fall below the checkpoint interval, making live fault tolerance non-negotiable. Warden, the fleet health manager: periodic Temporal workflows per node (one worker per node, state in Temporal DB), detection via GPU telemetry + Kubernetes state (definite fault → cordon; ambiguous → gkr check preflight suite), recovery sweeps rebooting idle cordoned nodes, stress-test then uncordons, repeated cordons escalating to GKE auto-repair; shrinking a RayCluster on replica-group loss without interrupting training. Observability: OTel/Prometheus/Grafana + self-hosted ClickHouse for high-cardinality metrics/logs (SQL access for LLM-assisted investigation); FleetMonitor Ray actor for auxiliary-worker queue/throughput/health; NCCL Inspector diagnosing stragglers by decomposing collective duration into waiting + transfer time (transfer ≈ min rank duration, waiting ≈ rank duration − min, arrival skew ≈ max − min, averaged ~30s), complemented by the PyTorch flight recorder. Failure analysis: after a crash, an LLM agent (given crash log, configs, code checkout, isolated workspace, debug/tracing skills, telemetry access) proposes a root cause, evidence, and fix, then waits for human approval before applying it and relaunching.
- Model
Qwenputer: a fully functioning, deterministic RISC-V CPU inside Qwen3.5
A stock Qwen3.5-4B with a 32-bit RISC-V CPU compiled directly into its weights — no training involved, a compiler sets every CPU weight directly. Mechanism: Qwen3.5 uses Gated DeltaNet (a linear RNN) in 3 of 4 attention layers; setting gate=1 and write strength beta=1 with one-hot key encoding makes each GDN head's state matrix work as exact, addressable RAM (one row per address, fixed size regardless of context length, unlike a KV cache). The CPU (RV32IM + Zba extension + bignum unit) is 11 compiled layers placed before Qwen's 32 layers; Qwen's own weights are unchanged, CPU weights added in extra dims/layers (hidden size 3968 = Qwen's 2560 + computer dims; vocab +230,324 trace tokens). Each instruction becomes a few generated tokens (ADDR, VAL, STEP); Qwen piggybacks on its trained tool-call format for `calc`, but no external tool, runtime, or sandbox ever runs — the compiled layers read the call, execute, and write the tool response. The CPU passes the official riscv-tests, matches qemu, and ran 18 million instructions free-running with no error; ~230,000 output positions replayed against a reference machine with zero mismatches. It runs C and MicroPython in the forward passes. Benchmarks (greedy, 40 problems/set, HF/blog tables): DeepMind div_big Qwenputer 97.5% vs Python-tool 95% vs base 72.5%; mul_big 97.5% vs 100% vs 55%; mul_div_multiple_longer 100% vs 97.5% vs 90%; add_or_sub_big 97.5% vs 97.5% vs 87.5%; NUPA long-integer arithmetic 48.6% (base) → 100% (Qwenputer, same as Python tool); synthetic integer arithmetic 97.5% vs base 75%. Normal text behaviour stays within noise of base (KL 6e-4 vs noise floor 5e-4). Experimental extension: an in-model filesystem in DeltaNet state (put/append/get/list/delete; 1,024 directory slots, up to 512 files, ~53k tokens of text; state saveable across conversations) — code on the rv-store branch, separate HF model, still experimental.