Explore the research collection
24 entries · Follow this search
- Post
Predicting LoRA size for any dataset
Engram, 'Predicting LoRA size for any dataset' (blog, Nov 24 2026). A predictive theory and measurement method for sizing a LoRA adapter to an SFT dataset, in bits. Capacity of a rank-r adapter is C(r) ~ (1 / 2 ln 2) E[sum of the top-r squared singular values of an iid Gaussian matrix] - about 1.3-1.4 bits per LoRA parameter at low rank, ~0.48 at full rank (Qwen3.5-0.8B v_proj, 512x1024, ~378k bits), with a closed form via the Marchenko-Pastur law. Method: measure a dataset's size in bits under the base model (log-likelihood, YaRN-extended 2M-token windows), generate synthetic datasets of exactly N bits by arithmetic coding under the base model to measure capacity, then read the required rank off the capacity curve. Predictions hold on real datasets: rank predicted within 5% error across Engram's own workspaces, Harvey legal data, developer docs, swebench-django, MATH-500, GSM8K, Tulu 3, No Robots, OpenThoughts3, MMMLU, and enwik8. Two structural findings: capacity is super-additive across layers (1.5 bits/param for one layer to 3.3 for 24 layers), and learning is conserved against forgetting - models forget roughly as much as they learn (forgetting/learning ~1.00), so new information displaces old information rather than adding to it. Flags: first-party blog, not peer-reviewed; all results on a single base model (Qwen3.5-0.8B); no code linked in the post. Cross-references: CSPD (staged slot 31) reports 2.40x rank-4 LoRA throughput as its serving baseline - this post is the rank theory behind that baseline choice; the forgetting-conservation finding pairs with Unified Training (ID 1762) and staged Deletion Tuning (slot 13) in the retention thread, and the bits-per-parameter capacity framing with Subspace Tuning (#116) and MobileSpec/FuRA-S (staged slot 6). For the user's stack: a principled rank picker for his SFT/RLVR adapters instead of a default r=16 sweep, a capacity budget in bits for post-training on his 250M, and a forgetting~learning conservation check for Helm retention monitoring.
- Post
Graphon: unified, schema-free graph memory for AI agents ($35M Series A)
Graphon (graphonlabs.ai) is a unified memory layer for AI agents, launched alongside a $35M Series A raised six months after its seed. Founders Arbaaz Khan and Clark Zhang previously worked on robot memory at NASA JPL, Google DeepMind, Meta and NVIDIA. The product builds ONE graph across a company's documents, emails, images and videos WITHOUT a hand-made schema, so new data types do not break the memory structure - aimed at the 'AI still forgets' problem in deployed agents. Launch claims, all company-reported: 94% accuracy on the LoCoMo long-conversation memory benchmark using only 7.9K tokens of context per question, presented as higher accuracy at lower cost than the strongest published baselines; #1 on ATM-Bench and ATM-Bench Hard; 84% on DolphinBench at '10x cheaper'; and a claimed new cost-accuracy Pareto frontier across 7 benchmarks, with the launch chart stating that baseline and frontier numbers are taken from independent third-party evaluations. Calibration context: the incumbent Mem0 publicly reports 92.5 on LoCoMo at ~6.9K tokens per query, so Graphon's headline is an incremental frontier move rather than an order-of-magnitude one, and LoCoMo scores are known to be sensitive to grading method, retrieval depth and configuration. Flags, as entered: no public paper or technical report accompanies the launch - the methodology behind the numbers cannot be audited; the X post sharing the launch (@omarsar0) discloses that the founder is a friend of the poster, and the founder's launch video is marked as a paid partnership; several of the named benchmarks (ATM-Bench, DolphinBench) are small and new. Cross-references: the agent-memory line in the catalog - LoCoMo appears across multiple benchmark entries, and this is the commercial/product counterpart to the graph-memory research entries (e.g. hierarchical graph memory and reconstruction-based graph memory papers), notable for taking the schema-free, cross-modal-company-data angle rather than conversation-only memory.
- Post
Hedra Model Factory: autonomous post-training and inference platform for physical AI
Hedra - an a16z-backed San Francisco research company working on multimodal and physical AI, founded by Michael Lingelbach (RL research at Stanford and NVIDIA) - launched Model Factory, an autonomous post-training and inference platform aimed at robotics, manufacturing, biology and defense teams. The pitch is to productize the 'recursive self-improvement loop behind frontier research' as a service, with an explicit human-gated definition: Hedra researchers work alongside autonomous AI agents that orchestrate training runs, curate data and iterate, but researchers and customer evaluation gates approve changes rather than models modifying themselves unsupervised in production. The platform is a four-part loop: (1) flexible GPU sandboxes running on Hedra's inference engine, with no long-term capacity commitments; (2) post-training as a service - customers bring simulation engines and proprietary data, Hedra helps build the RL environments and datasets (including vision-language models that caption and score data or give feedback during online RL), supporting SFT, LoRA adapters and RL with checkpoint evaluation before serving; (3) co-optimized low-latency deployment on premises or at partner data centers; (4) a data flywheel feeding production experience back into the next model version. Evidence offered at launch, ALL company-reported and none independently verified: Hedra retrained its H3 video model for physical consistency, scoring 34.9 on Google DeepMind's Physics-IQ benchmark versus 30.3 for H3 Max; an inference-optimization engagement cut Krea 3 2K image-edit latency from ~22s to 3.6s (about 6x) on the same four AMD Instinct MI355X GPUs; and the company claims revenue grew 15x over the past 12 months without disclosing the base. The launch also references a World Model Runtime (WMR) as part of the stack. Research staff are credited from Stanford, Berkeley, UIUC, NVIDIA, Meta Superintelligence Labs, Fireworks AI and Salesforce. Cross-references: the commercial-platform cluster - Lor (#135, Mirendil's agentic lab platform), Reve (#134, training platform), Eigent AI (ID 1645, RL environments as a frontier-lab service); Hedra is the physical-AI, services-led variant of the same thesis - the self-improvement loop sold as infrastructure plus embedded researchers, rather than as a self-serve product. No paper, technical report, or open artifact accompanies the launch.
- Post
Neurons as an Interpretable Basis
Goodfire's technical companion to Nick Cammarata's 'Neural Networks Are Already Clean' argues that MLP neurons - long dismissed as too polysemantic to study directly, which pushed the field toward learned feature dictionaries (SAEs) - are in fact a tractable, interpretable basis in their own right, studied on Qwen3.6-35B-A3B with sparsification methods, attribution tools and research agents. Three findings. (1) Neurons are already functionally sparse: the model's causal work concentrates in the extreme activations (above the 97th percentile, below the 3rd, per neuron pole), and ablating the 92.2% weakest neuron activations on each forward pass raises LM loss by only 2.9%; the residual damage can be repaired with just 91M tokens of SFT and 9M tokens of RL. (2) Neurons have few computational MODES: characterizing a neuron by its computational function - the subcircuits of upstream drivers and downstream readers it participates in - rather than by semantic similarity of its inputs, most neurons have a single mode, or one mode responsible for >=90% of their causal effect; multimodal neurons have a small, legible number of modes (e.g. several Python-related modes, or a math mode alongside a Japanese-honorifics mode), with more circuit similarity within modes than between them. (3) Agent-generated natural-language descriptions of neurons are operationally good: given the description, a judge model predicts whether the neuron will fire in a passage with 95% accuracy against random text (89% against text routed to the same expert) in the strong-activation regime; simulating the neuron from its description recovers 73% of the restorable damage from ablating it; and the team can synthesize text that fires a neuron more strongly than anything in a 10B-token corpus. A pattern runs through all three: the stronger the firing, the more the model depends on it and the more precisely it can be described - interpretability is best exactly where the computation matters most. A public Neuron Atlas accompanies the article. Flags, as entered: first-party (Goodfire sells interpretability tooling), single model studied (one MoE), percentages are from the article's abstract/introduction at cataloging time; this is a research article, not a peer-reviewed paper. Cross-references: the empirical counterpart, from the same lab a day apart in sharing order, to the Goodfire mechanistic-shaping paper (arXiv 2611.07071) - shaping presupposes that internal concepts are findable and monitorable, and this work argues the raw neuron basis is cleaner than the field assumed, which if right lowers the cost of the probe/refit machinery shaping relies on; also bears on the catalog's SAE/feature-dictionary line of work, whose motivating premise (neurons too polysemantic to use) this directly contests.
- Post
Self-Improving Post-Thinking (SPoT)
Meta AI's RAM team argues a missing ingredient in LLMs is a built-in self-judging ability, and trains one in (blog post presenting Chapter 3 of the tech report 'Self-Improving Training & Thinking', arXiv 2601.21343). Post-thinking: after the usual pre-thinking trace and the answer, the model generates a critical assessment of its own just-produced text, ending in a structured verdict - Safe/Unsafe, Correct/Incorrect, or a confidence value in [0,1]. The recipe (SPoT) can be inserted at continual pretraining, mid-training, or post-training. Training: in the non-verifiable setting, RL on the continuations (online DPO) is combined with SFT distillation of a strong teacher judge's post-thoughts, with one crucial detail - post-thinking is supervised ONLY on pairs with contrasting verdicts, because as generations improve the verdict stream skews majority-label and indiscriminate training collapses the self-judge into always predicting it. In the verifiable setting the teacher is removed and the post-thought is trained by RL with a verdict-match reward (+1 if the verdict agrees with the known correctness, 0 if well-formed but wrong, -0.1 if no verdict is produced) alongside the answer's own correctness reward. Safety (continual pretraining on Llama 1.4B, built on Self-Improving Pretraining): greedy safety rises from 91.1% (SIP alone) to 94.6% with SPoT, and letting the model select among 8 candidates using its own verdicts (PoT@8) reaches 98.2% average safety - within 1.2 points of selection by the external GPT-OSS-120B oracle despite the policy being ~86x smaller; +21.3 points on average across five safety benchmarks versus no post-thinking, at no measured cost to generation quality; the self-judge reaches ~89% agreement with the teacher after ~100 steps. Reasoning (Llama 3.1 8B in a Thinking Mid-training pipeline: post-thinking SFT at mid-training, SFT at post-training with a rule-based verifier rewarding answers, then teacher-free post-thinking RL): learning to judge makes the model a better solver before any verdict is used - Avg@8 across five math/science benchmarks rises 34.1 -> 42.8 versus 38.7 for RL post-training without post-thinking; PoT@8 self-selection lifts 42.8 -> 48.2, already beating majority@8 (47.2), and verdict-weighted majority voting is best at 51.1 vs 49.4 for plain voting; the self-selection margin grows at every stage (2.1 -> 3.6 -> 5.4 points), largest under RL where the verdict is rewarded for agreeing with a verifier rather than imitating a teacher. Confidence (Qwen3 4B, post-thought rewarded by Brier score against true correctness): selective accuracy at a 0.5 abstention threshold reaches 82.76% vs 78.64% for prompted confidence and 65.03% with no confidence signal; self-judge AUROC improves 0.610 -> 0.836; about +5 points selective accuracy on out-of-distribution benchmarks at 90% coverage; and the confidence signal generalizes to flagging unanswerable questions it was never trained to detect. Flags, as entered: first-party Meta research blog - all numbers are the team's own, at blog level of detail (full experiments in the tech report's Chapter 3); scales are 1.4B-8B; no code release mentioned. Cross-references: the constructive counterpart to the catalog's monitorability thread - rather than monitoring reasoning from outside, the judgment is trained into the policy as a separate post-hoc, reward-trained channel; pairs with ID 1861 (covert underperformance invisible to per-trajectory monitors) and the harness digest's operator #9 (reward-description visibility); the verdict-collapse-to-majority-label failure and its contrasting-pairs fix are a general trap for self-judge training.
- Post
Can LLMs redesign themselves as they train?
doubleAI research blog (2026-11-06) on 'mechanistic intervention': coding agents placed inside the training loop that redesign a network's architecture as it trains, splicing program-like 'code layers' into the network behind zero-initialised learnable gates (at insertion the network is unchanged; gradient descent opens the gate if the layer helps). The agent's core tool is the phantom gradient - the gradient of the loss with respect to each layer's representations (equivalently, of zero-initialised per-token weights that are not there), centred per target token; layers where phantom-gradient demand persists across checkpoints mark unmet demand SGD is not satisfying. Candidate layers are fitted so their output points along the centred phantom gradient, scored on held-out documents against a plain linear-map baseline, and must survive twin races (identical run, layer off) and sham controls (same shape and parameters, scrambled inputs) plus a causality check before ranking - unusually careful controls for a blog post. Four experiments. (1) nanochat (286M, 12 layers): the agent inserted three code layers; validation loss dropped after each insertion and the gap persisted to step 5,000. (2) Sliding-window blind spot (124M, 8K-token documents, 500-token window): a parameter-free exact-match lookup code layer (tokens following earlier occurrences of the last 3 tokens, fed to every attention head) restored recall of variables defined 600-4,000 tokens earlier - but timing mattered: inserted halfway through training, recall reached 72% vs 55% when the identical layer was present from step 0, at near-identical loss; the authors read this as shortcut learning (present from the start, the network leans on the layer instead of building its own circuits). (3) CLRS-Text (86M trained from scratch): ordinary training plateaus at 55% accuracy and solves only ~33% of problems at input lengths between those seen in training; ten grown code layers lift overall accuracy to 84% and in-between-length accuracy to 79%; twice the training does not close the gap (linear probes locate where the network holds the values the code needs to read). (4) Self-modification: DeepSeek-V4.1-Flash (763B MoE) acted as the agent on itself for competition maths without thinking mode - it built a linear probe on its own residual stream (seven deepest blocks, read once the solution is finished) from its own graded solutions to 243 problems from 2024-25 contests, wrapped it in a sampling-controlling code layer (resample up to 3x when the probe predicts a wrong answer), and raised AIME 2026 from 76.2 to 82.3 and HMMT Feb 2026 from 52.7 to 60.8 (combined 63.9 -> 71.0); the probe rejects ~4/5 of wrong answers and ~1/15 of right ones, a length-only resampling baseline gains under 2 points, and mid-solution probes encode difficulty rather than correctness - the 'I got this wrong' signal exists only once the answer is written. A companion run let Qwen3-8B (thinking on) write its own sampling policy in Python over prebuilt stop/doom/local probes, evolving ~15,000 candidate policies scored on ~800 older contest problems: 59% -> 66% combined, at 2.8x the thinking tokens of a single attempt. Flags, as entered: first-party lab blog, no paper and no code release linked, no independent replication; the training experiments are small (86M-286M); the self-modification gains are partly bought with extra sampling compute and are not compared against compute-matched best-of-n/majority voting (the length baseline only partially covers this); the 2026 contest sets are stated to be hidden from the agents throughout (MathArena sourcing). Cross-references: extends the weight-space programming thread (IDs 1798-1799) from editing weights to editing architecture; Experiment 2's lookup layer is the Copy-Paste LMs pointer-head idea tested inside a sliding-window hybrid, with a new timing result; the DeepSeek/Qwen probe policies connect to the self-verification and inference-policy thread in the agent-app work.
- 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.
- Post
Carbon-X: When Natural Language Meets DNA
A 14B open model mid- and post-trained from Qwen3-14B (POST ERROR, flag: the announcement post says "Qwen3.5 14B" — every primary source says Qwen3-14B, HF metadata base_model: Qwen/Qwen3-14B) to reason over DNA sequences in the same token stream as natural language — "chat to your DNA." Architecture is the unchanged Qwen3-14B backbone (14.82B BF16 params, 40 layers, hidden 5120, GQA 40Q/8KV heads, head dim 128, SwiGLU, RMSNorm + QK-norm, RoPE θ=1e6, 40,960-token window). The one architectural idea is a hybrid tokenizer in a single stream (explicit contrast with BioReason's separate DNA encoder): text uses Qwen3 BPE; DNA is encoded as non-overlapping 6-mers (4,096 6-mer tokens + 1,364 tail tokens + <dna>/</dna>/<oov> markers = 5,515 DNA tokens, vocab 157,184 total), ~1/3 the tokens of BPE on DNA; the tokenizer auto-detects runs of ≥6 ACGT bases, and any 6-mer containing a non-ACGT character collapses to a single <oov> token (resolution loss by construction); custom tokenizer code requires trust_remote_code=True. RECIPE (all numbers model card): (1) vocab-extension warmup — DNA tokens random-init, ~10B tokens with the transformer body frozen (embeddings only), then unfreeze; (2) mid-training — 302B tokens, seq 8,192, global batch 512 seqs (~4.2M tokens/step, 72K steps), cosine LR 5e-5 → 5e-6; mixture Raw DNA 55% (eukaryotic genomes 38.5%, mRNA/OpenGenome2 8.8%, prokaryotic 5.5%, mRNA w/ splice+promoters 2.2%), English 20% (FineWeb-Edu 8%, DCLM 8%, FinePDFs-Edu 4%), biology text 15%, instruction 10%. Blog ablation story (4B-scale sweeps): LR was the dominant forgetting knob — higher LR learns DNA fast but catastrophically forgets English, lower LR preserves English with DNA at chance; separate embedding/body LRs, gradient-conflict layer protection, specialist merging, more replay, and embedding-init schemes all FAILED; what worked was lower LR + larger model (14B preserved English where 4B at the same LR did not) + longer run; cosine beat WSD (WSD worsened forgetting in their experiments). (3) SFT — 3 epochs, cosine 1e-5 → 1e-6, loss on assistant tokens only; variant-effect reasoning (~30%), sequence classification, procedurally generated DNA skills, sequence recovery, bio Q&A, general chat. Supervision provenance (blog): distillation was tried and ABANDONED — frontier teachers refused/hallucinated, open models too weak, self-distillation from the mid-trained model's own RL rollouts imported unsupported claims; instead they built deterministic verifiers that check claims against the supplied DNA with domain experts, and the grounded SFT checkpoint beat the self-distilled one on FrontierVEP. (4) RLVR — asynchronous GRPO (TRL + vLLM), thinking disabled, two rounds with pass-rate-based prompt selection from the model's own rollouts (98,433 prompts round 1, 58,249 re-selected round 2), 16 samples/prompt, completions ≤4,096, LR 1e-6, asymmetric clipping ε=0.2/0.28, max grad norm 0.2; rewards are code-checked verifiers per task, INCLUDING a penalty for ungrounded rationales in variant-effect prediction. RESULTS — ALL first-party HF, no independent replication, released same day: five DNA benchmarks (thinking disabled, 1 sample/problem; each rival shown at the reasoning effort with its highest AVERAGE — their selection rule): BioReason Coding 74.9 (best; GPT-6.1 Sol Max 71.0, Opus 5.5 Max 70.3), BioReason Non-SNV 85.1 (Opus 94.8, GPT 91.7), GenomeQA 63.6 (GPT 67.2), NextBase 39.4 (best; GPT 32.9), FrontierVEP 70.4 (Opus 76.2, GPT 74.9) — average 66.7 vs GPT-6.1 Sol 67.5 and Opus 5.5 60.9, claimed +27 points over the Qwen3-14B base (base row not tabulated) at ~1/1,800 the inference cost per problem by their cost model (blog subtitle says 1,000× — internal inconsistency, flagged). GenomeQA hides two weak tasks (histone marks 34.6, splice sites 29.8). General ability retained: IFEval 79.3% prompt-level strict. KEY CONTROL: RL applied directly to Qwen3-14B with no mid-training never rose above the 50% chance baseline on FrontierVEP — the capability had to be installed by mid-training first. Sub-agent result (first-party): Kimi K3 with required Carbon-X consultation rose 49.4% → 60.5% (+11.1pp) on their DNA index. Authors' limitations: not clinically validated; exact sequence operations unreliable (pair with deterministic tools); hallucinates without context; long DNA generation degrades (a reader/explainer, not a designer); inputs beyond training lengths untested; eukaryote-infecting viral genomes excluded from training data. Two of the five benchmarks (FrontierVEP, NextBase) were built by the authors themselves, and several frontier-model scores are refusal-driven rather than capability-driven (authors transparent: e.g. Opus NextBase falls to 1.1% at max effort as refusals rise) — the "matches frontier" framing partly prices in rivals' safety refusals. Also unresolved between primaries: blog says Carbon-X "works with llama.cpp," model card says llama.cpp/GGUF are NOT supported because the custom DNA tokenizer cannot load there — flagged.
- Post
Reactive Optimizers — OPAL (OPtimizer with an Agent in the Loop)
Thesis: optimizers are static — hand-crafted or discovered offline, then run unchanged. A reactive optimizer instead puts a zero-shot LLM agent (Claude Opus 5.5 in all blog experiments; nothing learned or retained across runs) inside a single training run and gives it code as the entire interface. The agent iteratively rewrites two programs: `updater.py`, the optimizer itself, executed every step — the whole algorithm is up for rewriting, not just hyperparameters — and `analysis.py`, self-written probes that extract the training-dynamics statistics the agent chooses to watch (per-parameter-group gradient norms, update size relative to weights, cosine between consecutive gradients, per-tensor spike detection). One agent conversation spans the run, so it remembers what it tried and why. In the released package, checks run every 50 steps, decisions are capped (default ≤50, front-loaded into the first 5% of the run), and the agent's remit is bounded: it cannot touch model, data, loss, batch size, step count, or evaluation, and until its first edit the wrapped run is bit-for-bit identical to the plain run. Guardrails in the package: a new updater takes over on all ranks at once and runs a 20-step trial — an error reverts to the previous program; a first-step failure is undone exactly when a snapshot of parameters + optimizer state fits in `snapshot_limit_gb` (default 2 GB); a later failure is NOT undone and the agent is only told; an `eval_integrity` check flags a program that moves parameters away for an evaluation and back. Training can run asynchronously while the agent thinks (blocking=False), edits landing a median of 65 updates later on Goldfish. Headline claim (authors'): where no recipe has been tuned for the setting, OPAL — always INITIALIZED from an existing recipe — matches or beats the best recipe one could pick off the shelf one-shot. Baselines, precisely: for settings derived from modded-nanogpt Track 3 (162M GPT on FineWeb), five leaderboard records transplanted with natural adjustments (#46, #30, #21 Shampoo, #36 tuned Muon, #2 AdamW; at quarter batch, all LRs ×¼) — OPAL initialized from #36 ranked first in every new setting (quarter batch; Chinese, Thai, Kyrgyz from 1 GB Goldfish sets; Chinese/Thai bars are means of 3 runs). Goldfish Amharic (125M GPT, 1 GB, 10 epochs; metric bits/sentence on held-out FLORES-200): official recipe 83.48 → OPAL from that recipe 81.11; an LR sweep found a static recipe at 80.89 — ahead of OPAL-from-official — but OPAL initialized from the swept recipe ended ahead again at 80.73 (Swahili similar: 79.37 → 77.60). Image generation: LightningDiT-XL/1 on ImageNet, FID-50K 1.83 vs official recipe's 2.18 with guidance (4.33 vs 5.15 without); RAEv2-B (official recipe already a Muon variant, GMuon) 3.19 vs 3.39 in the blog — the repo table shows prompt sensitivity: 3.10 with an efficiency-asking prompt, 3.46 with the neutral prompt. SiT-B/2 (repo table): FID-50K 35.7 → 23.6. On the original, heavily tuned modded-nanogpt setting the gain is small (validation loss 3.2749 vs record #36's 3.2781), and the README documents a run that ended WORSE (3.2878 on OPAL 0.2.0). What the agent actually does, from the decision logs: builds intricate per-parameter-group multi-stage LR schedules (including mid-run LR increases; A/B/A tests alternating two LRs for a few hundred updates each and keeping the winner; re-planned earlier cooldowns from loss trends); migrates tensors from AdamW to Muon module-by-module (attention/MLP first, then adaLN split into chunks, timestep embedder last); on modded-nanogpt it measured that token-embedding entries are ~15 in size where adjacent bf16 values are 0.0625 apart, so as the LR decayed, rounding would discard a growing share of each update — from update 1,040 it kept that one matrix's Adam moments in float32 with compensated rounding on writeback and left everything else alone. Loss-spike defense: in a SiT run it traced 17 of 18 logged gradient spikes to the timestep embedder and wrote per-tensor clipping thresholds set from each tensor's own recent gradient norm (global threshold kept as backstop); in a controlled ResNet-18/CIFAR-10 experiment with four inserted stretches of random images and labels (agent not told), the first two stretches cost it −50.0 and −66.3 accuracy points (≈ the static baselines), but between stretches it added loss damping, replaced it with clipping, then wrote a gate that holds back batches whose loss is far above recent clean ones — the third stretch cost −12.1 and the fourth +0.7, while Muon+clip, AdamW+clip and Stable-SPAM still lost 28.5–76 points per stretch. Overfitting: ResNet-18 on CIFAR-10 with 10% wrong labels, no augmentation, agent sees train + dev metrics but is never told about the label noise — AdamW ends at test loss 2.49 / 73.5% accuracy (early-stopped 1.01 / 72.9%; weight-averaged 0.83 / 77.5%) and predicts the wrong trained label on 100% of the 4,500 mislabeled training images; OPAL ends at 0.69 / 78.6%, predicts the wrong label on only 4% (true label on 78%), via progressively higher learning rates plus a self-chosen weight average ("extended SWA") selected on the dev set. Toy control check (2D landscapes, OPAL restricted to heavy-ball with momentum resets/return-to-best): mean log10(f − f*) −11.6 vs −2.2 for the best of 12 common static recipes and −7.4 for the best of 382,080 swept recipes. Cost: ≈100 decisions on LightningDiT cost $6.42 at Opus 5.5 list price on top of ~74 H100-hours (~$510 AWS on-demand); asynchronous mode adds 1.01–1.14× wall-clock vs the static run (blocking at every decision: 1.30–4.39×). Authors' stated limits: gains shrink when a run is short AND its recipe is already fine-tuned (the two conditions coincide in the original modded-nanogpt setting; other settings train 8–120× more updates); reactive behavior is another source of nondeterminism and makes training less reproducible; most experiments run once, a few three times; the current implementation does not support sharded training or optimizer compilation. Repo README adds: v0.3.4, single GPU / single-node DDP only (no multi-node, FSDP, DeepSpeed); "the agent can make a run worse: it cannot restart or roll back training, it can only fix its programs at the next decision"; results vary run to run because the agent chooses differently. Repo ships a one-line `opal.wrap()` wrapper around any torch.optim optimizer, `opal doctor` / `opal estimate` / `opal show` / `opal report` tooling, examples, a CPU test suite, and an experimental Codex backend (gpt-6.1-sol); 34 stars, created the day of the thread.
- Post
Defeating Nondeterminism in LLM Inference
The "concurrency + floating point" story for LLM nondeterminism is incomplete: the forward pass contains no atomic adds and is run-to-run deterministic. The true culprit is lack of BATCH INVARIANCE — matmul/RMSNorm/attention kernels change reduction order/tiling with batch size (split-K matmuls, tensor-core tile choice, attention split on KV cache vs current tokens), and inference servers change batch composition via continuous batching, so "identical" requests from one user's perspective get different outputs. Fix: batch-invariant kernels for the three reduction ops (data-parallel RMSNorm; single compiled matmul config, ~20% cost vs cuBLAS; attention with pre-kernel KV-cache/page-table layout update and FIXED-SIZE split-KV — which required internal FlexAttention changes not included in the code release). Evidence: 1000 temperature-0 completions of 1000 tokens from Qwen3-235B-A22B-Instruct-2507 ("Tell me about Richard Feynman") → 80 unique completions, identical for first 102 tokens, first divergence at token 103 ("Queens, New York" 992 vs "New York City" 8); with batch-invariant kernels all 1000 identical. True on-policy RL: RLVR on BigMath with Qwen2.5-VL-Instruct-8B, bitwise-identical sampler/trainer → KL divergence flat at 0, trains smoothly without importance weighting; the naive run's reward collapses ~step 318 with a KL spike. Claim: train/inference numeric mismatch "implicitly turns our on-policy RL into off-policy RL." Fun detail: Triton FlashAttention backward differs algorithmically from the FA-2 paper — recomputes to avoid atomics at 40% more FLOPs. Repo: github.com/thinking-machines-lab/batch-invariant-ops (torch.Library substitution layer + vLLM FlexAttention deterministic-mode demo), MIT.
- Post
You could have invented transformers from memory
A pedagogical explainer (not a research result) deriving linear maps, MLPs, and self-attention as associative key-value memory stores from first principles. The unifying quantity is the interference-to-signal ratio — interference from other stored memories vs the target's signal — and capacity is the number of memories before interference matches signal (random unit keys, query with a stored key). At d_k=64: outer-product linear store ≈64; optimal linear (least-squares/whitened keys) ≈128; ReLU MLP ≈128; squared ReLU / SwiGLU ≈2d_k²/3 ≈2,700–2,900; cubed ReLU ≈2d_k³/15 ≈35,000; self-attention with β=√d_k ≈e^{2√d_k−2} ≈1.2 million; β ∝ log M allows an essentially unbounded store (>2M in experiments). Derivations: interference terms add like a random walk (√M); σ(s)=ReLU(s)^p gives capacity M≈d_k^p; the exponential is a weighted sum of all powers, so capacity grows exponentially in the sharpness β: M≈e^{2β(1−β/d_k)} for β≪d_k; normalizing weights for numerical stability yields exactly f(x)=Vᵀsoftmax(βKx). Unlike MLPs, self-attention is non-parametric: keys/values come from context tokens, so the store grows with context length. Notes that the original transformer's v2/v3 described the feedforward layer as "a kind of attention" (passage removed from later versions) and tried replacing FFNs with learned-key-value attention at similar quality. The long-context section compares β∝log M tricks (Su 2021 entropy scaling, Scalable-Softmax, Qwen LogN-Scaling, Qwen2.5-1M YaRN scaling), driving the interference ratio to ~10⁻⁴ at 2M memories. Author-stated caveat: the count is random-vector recall of a single layer, ignoring training data; companion pointers to bits-per-parameter memorization work (Morris et al. ~3.6 bits/param; Allen-Zhu & Li ~2 bits factual knowledge/param). Includes interactive demos (sliders for M and β with live interference/signal visualization). Asides: a gradient-descent step is a memory write (Irie, Csordás & Schmidhuber); transformers' MLPs store facts in superposition.
- Post
PriorBPB: Reducing the Answer Length Confound of Bits-per-Byte While Improving Accuracy Prediction
BPB divides a model's total surprisal on a gold answer by its UTF-8 byte length to remove tokenizer dependence — but answer length is a property of the benchmark, not the model. The post shows total bits decompose as a fixed per-item cost α plus a per-byte rate β, and corpus BPB equals α/mean(n) + β algebraically, so the fixed cost (largely first-token surprisal, ~10× later tokens) is divided by the task's mean answer length. Empirical effects: on MMLU full text (Qwen3-4B) the shortest-fifth answers score ~11× worse than the longest fifth; median across tasks the ratio is ~2×. The fixed-cost share is task-dependent (SQuAD2 later tokens nearly free via copy-from-passage; OLMo-3-7B GSM8K cost 96% length-scaled), so no single constant normalization fits. Mean-of-ratios BPB (mean of per-item ratios — not a rate) inflates further, up to ~2× (+122% on MMLU full text vs corpus BPB). Under corpus BPB, Qwen3-0.6B-instruct beats its 1.7B/4B siblings on 15/19 tasks — an apparent inverse-scaling trend: α is larger at 4B than 0.6B on all 19 tasks (1.2× to 7×) while β shows no trend, plausibly from wrapping completion-style gold answers in an instruct chat template. PriorBPB fixes the aggregation: estimate each model/task's marginal per-byte cost curve R(k) non-parametrically from per-token bits, then average it under one shared geometric length prior (μ=111 bytes, pooled median, frozen pre-scoring). With a task's own length distribution it recovers corpus BPB exactly. Across 62 base checkpoints from five families: within-task top/bottom quintile ratio 0.98 (essentially length-invariant) and cross-task mean |correlation| with answer length 0.68 → 0.18, while following accuracy more closely than mean-of-ratios BPB (+0.021 base, +0.122 instruct). Residual caveats: survivorship bias in late-position R(k) and μ-dependent residual length correlation, so μ must be reported.
- Post
Post-training infrastructure at Proximal
Proximal's engineering post on their internal post-training stack for agentic RL. Training and inference run on Modal GPUs (an internal fork of Miles, the OSS RL framework based on Slime); rollouts run in gVisor/microVM sandboxes on their own Kubernetes cluster, coordinated via a lightweight command daemon (pxd). Key design choices: async training where each rollout keeps the adapter it started on while new groups start on the newest published weights (rollouts >3 versions stale are never trained on; 128 finished groups per step; mean staleness 1.7 at 4:1 inference-to-trainer ratio); inference capture moved inside the replica after cross-region (Sweden vs US West) network waits cost minutes per rollout; single-replica on-demand GPU containers instead of 8-GPU nodes, growing inference 3:1 to 4:1 mid-run; a custom KV-cache-headroom router hitting 99.6% cache hit rate; fault tolerance via a durable rollout store on Modal Volumes (a run survived losing 40% of inference capacity mid-step, fully recovering in 19 minutes); LoRA weight sync over HTTPS sharded across ranks (delta sync tried, not worth it for small adapters); custom attention recomputation keeping only FlashAttention outputs + log-sum-exp, cutting step time 7.3% at long context. Sandbox fleet: tasks declare 1-8 vCPUs (mean 2.3); pods request 25% CPU / 40% memory of hard limits, packing 26 sandboxes per 16-vCPU node; image-aware scheduling raised cache hits 1% to 37% (2s cold starts); zstd over gzip sped image unpack 15-25%; their sandboxes beat a SOTA provider ~5x median / 7x+ p90 on command latency. Case study: Qwen3.8-27B with rank-32 LoRA, 128 envs/step, group size 8, vanilla GRPO on internal agentic coding tasks — DeepSWE pass@1 37.2% (+8.4 over base in 44 steps), pass@8 67.7% to 86.6%; gains survive dropping tasks flagged flawed by Epoch AI/Scrim/internal review. Built on OSS Miles and SGLang, with contributions back upstream (SGLang #43047, Miles #3977).
- Post
E2S Finetuning: From Expert Demonstrations to On-Policy Learning
E2S (Expert-to-Student) Finetuning turns off-policy expert demonstrations into more on-policy SFT data via amortized sampling. The formulation is constrained generation: the expert trace defines the validity constraint C_tau (e.g., semantically equivalent responses, correct outcomes on math), while the student model decides the relative probabilities of valid responses. Among normalized distributions supported on the valid set, the closest to the student under KL is the student distribution conditioned on validity: q*(y) = p(y)*1[y in C_tau]/Z_tau. While Finetuning with Sampling (arXiv 2610.02140) reaches this target with per-example MCMC search, E2S amortizes the search by training a conditional sampler across examples with GFlowNets: trajectory balance with a shared offset z_tau becomes a group-relative loss (no normalizer network) that matches the accepted-output distribution. Implementation uses LoRA adapters on the student backbone as the sampler (expert trace conditions the sampler; student scoring and SFT use only the original prompt). Two variants: E2S-Offline (fit sampler once against the fixed student, generate a dataset, then SFT) and E2S-Online (refit the sampler against the current student after each update). In the Finetuning-with-Sampling math setting (Qwen2.5-3B, MATH levels 3-5, 8,230 training problems), Math avg. / Prior avg.: base 31.8/42.2, expert SFT 24.2/38.9, GRPO 45.7/41.4, MCMC+SFT 53.4/42.0, E2S-Offline 55.5/42.1 (+3.9% relative vs MCMC+SFT), E2S-Online 59.4/42.2 (+11.2% relative vs MCMC+SFT, +6.0 points vs MCMC+SFT, +35.2 points vs vanilla expert SFT, while matching the base on prior tasks). Drawing 1/2/4 responses per expert example lifts offline Math avg. 55.0 -> 56.3 -> 57.2. Diversity is a property of the target distribution (preserving relative mass across valid reasoning modes), not an extra bonus term.
- Post
Agentic RL: Token-In, Token-Out Done Right (TITO)
Interactive HF Space article (qgallouedec/tito) arguing multi-turn agentic RL silently breaks when decode→parse→re-tokenize drifts tokens so gradients hit sequences the policy never sampled. Fix: keep a token buffer; never re-encode decoded samples; tokenize tool deltas via prefix-preserving chat-template property. Surveys 18/19 open families as prefix-preserving for tool messages; documents Qwen3 Jinja one-line fix and GLM stop-token placement pitfalls. Alternative is per-family renderers libraries.
- Post
Language Models for Text Classification: From Bag-of-Words to Jev
Long-form visual guide and essay (2026-09-29) using the hype around Jev -- a proprietary fast,cheap,general-purpose text classifier from TypeSafe AI -- to tell the history of language models for text classification and analyze what Jev likely is. Covers pre-transformer baselines (bag-of-words plus naive Bayes/logistic regression,word embeddings,RNNs/LSTMs/ULMFiT,CNNs),transformers (BERT/ModernBERT,GPT-style decoders with a classification head,T5 text-to-text),a Jev overview (Choice/Noul/Score APIs; 96.47%/96.20% on IMDb test at low cost,comparable to fine-tuned ModernBERT without per-task fine-tuning,with an IMDb-test-contamination caveat; a Tetris real-time demo via the Choice API),how to retrofit a Jev-like API onto any BERT/GPT/T5 model with a single-output scoring head,an educated guess at Jev internals (ModernBERT-scale encoder,100% synthetic data,proprietary "Reinforcement Learning for Calibrated Decisions"),the RLCR public method,calibration techniques (temperature scaling,Brier loss),use cases (email sorting,prompt-injection prescreening,LLM judges,context building),Jev alternatives (GLiNER,Contrastive LMs,Laya),and OpenAI's Jev-like Decision API announced at DevDay 2026. Argues Jev's novelty is not fundamental but raises the bar for justifying fine-tuned specialist classifiers and could make agent harnesses faster and cheaper. Author is not affiliated with Jev; not an endorsement.
- Post
Where's the "intelligence explosion"?
Argument essay on why no runaway intelligence explosion has materialized. Distinguishes five forms of AI self-improvement, argues current self-improvement feedback would need to be roughly 5-10x stronger to be self-sustaining, and expects narrow superintelligence in verifiable domains while seeing no current evidence for runaway Type-5 recursive self-improvement.
- Post
Intelligence Density (Density Aware Training)
Trajectory's 'Intelligence Density' field notes argue the right efficiency metric is cost per completed task, not cost per token, and introduce Density Aware Training — a knob-free post-training technique that cuts wasted output (90k→37k tokens at equal pass rate on a legal-agent benchmark) and resists the reward hacking where standard RL inflates training reward via verbosity while held-out performance collapses.
- Post
Invent a Dataset: Training Data for Custom Models
Adaption (founded by ex-Cohere/Google researchers Sara Hooker and Sudip Roy) launched Invent a Dataset: describe the behavior you want a custom model to learn in plain English and get back a structured, training-ready dataset — no seed corpus, schema design, or labeling required. One datasets.invent API call sets domains, row count, format, and language expansion; generation is async and output is instruction pairs or preference pairs downloadable as JSONL, JSON, CSV, or Parquet. It is the first half of a zero-data loop with AutoScientist (launched May 2026), which co-optimizes the data and training recipe against the objective — Adaption reports AutoScientist beats human-configured training by 35% on average (win rates 48% to 64% across eight verticals, 5k-100k rows, on Together AI fine-tuning architectures).
- Post
We built a 20x faster Grok bot (Cerebras agent speed write-up)
Cerebras X Article (2026-09-25) by @milkandmatcha and @0xSero: engineering write-up of a dinner-reservation personal-assistant demo using Qwen 3.8 27B on Cerebras with the Pi agent harness. Recorded same-request runs: Meta Muse ~4m36s, Claude Cowork ~6m25s (57 tool calls), Grok Bot ~7m40s; their optimized agent median ~22s (~19×; title says 20×). Claimed levers: (1) parallel independent restaurant availability checks, (2) faster Cerebras inference between tool steps, (3) pre-baked website-navigation skill reducing tool calls >80% (live availability/prices still checked). Explicit caveats: not a general ranking; skill discovery happens before the timed run; bundles model+harness+path. Mentions CompactionRL (arXiv 2607.05378). No new model weights.
- Post
Differentiable neural computers
DeepMind research blog (2016-10-12) accompanying a Nature paper (nature.com/articles/nature20101). Introduces DNCs as memory-augmented networks that learn to use external memory for Q&A over structured data (stories, family trees, London Underground map) and to solve a block-puzzle game via RL. Frames DNCs as combining neural learning with computer-like random-access memory / data structures (lists, trees, graphs). Canonical og:url deepmind.google/blog/differentiable-neural-computers/.
- Post
Predictive Data Debugging: Reveal and Shape What Your Model Learns, Before You Train
Goodfire research post accompanying arXiv 2606.12360 (Anatomy of Post-Training…; submitted 2026-06-10). Passes preference data (e.g. Dolci ~260k pairs, Tulu 3) through SAE-interpreted models to surface concept-level learning signals before DPO. Reports R²≈0.9 correlation between predicted and observed concept changes. Case studies: safety-guardrail erosion, hallucinated links, physics sycophancy, unexpected fanfic clusters; goblin-mode poisoning validation. Interventions include data filtering, reward shaping, activation steering, inoculation prompting. Methods shipping in Silico (early access).
- Post
EvaByte: Efficient Byte-level Language Models at Scale
HKU NLP + SambaNova blog (2025) for EvaByte, a 6.5B byte-level model (vocab 320: 256 bytes + 64 specials) with 8 multibyte prediction heads and EVA (chunked linearized attention). Trained on 1.5T bytes of text/math/code mainly from Dolma v1.7, The Stack v2, FineWeb-Edu, and DCLM-Baseline, batch 8M bytes, 32K context, 256 SambaNova SN30-2 RDUs. After 1.2T bytes (EvaByte-Phase1), two annealing runs (100B and 200B bytes) are souped into EvaByte, then SFT (EvaByte-SFT) on a Tulu 3 / OpenHermes 2.5 / OpenCoder mix. Claims competitive open 7B tokenizer LMs with ~5x less training data (bytes vs Llama-3 tokens) and up to 2x faster decoding than tokenizer LMs via self-speculative multibyte generation. Hub cards Apache-2.0. Paper listed as coming soon; cite the blog.
- Post
SWE-1.7: Frontier Intelligence at a Fraction of the Cost
Cognition blog dated 2026-07-08 launching SWE-1.7, described as the most capable model they have trained so far. SWE-1.7 is post-trained from a Kimi K2.7 base that had already undergone extensive RL; Cognition argues additional RL still moved the Pareto frontier. Reported pass rates: FrontierCode 1.1 Main 42.3%, Terminal-Bench 2.1 81.5%, SWE-Bench Multilingual 77.8% (table also lists Kimi K2.7 Code, GPT-5.5, Opus 4.8/4.7, GLM-5.2, Composer 2.5, SWE-1.6). Training notes: entropy/stability work for long async RL, multi-cluster RL across four datacenters on three continents with object-storage weight shipping, a data-quality pipeline with execution tests and anti-reward-hacking hardening, and self-compaction for long-horizon tasks. Served in Devin (Web/Desktop/CLI) via Cerebras at 1000 TPS. No public weights or training corpus on this page.