Explore the research collection
22 entries · Follow this search
- Post
Stuck in a Loop: Runaway credit ratcheting in attention matrices
Eyler et al. (Hyperstition, Sep 9 2026) dissect why attention locks in early during training. The mechanism: every gradient through an attention head carries the attention weight itself as a factor, so attention acts as a strong FILTER during backpropagation - a weakly attended key gets almost no gradient, a strongly attended one gets more, and early differences ratchet. Measured on Qwen2.5-1.5B (5.33M layer-head-query comparisons): the spread of attention is ~10,471x while the spread of ADVANTAGE (how much shifting attention would actually help) is only ~5.012x - attention, not usefulness, decides gradient scale. Two regimes are separated: calibrated prioritization, where attention is already optimal on a known axis and the pressure is fine-tuning, and softmax deadlock, where a useful but weakly attended key cannot exert enough influence to ever be attended more. The attention Jacobian itself is an information bottleneck: its per-token effective rank is below 10 for at least 99% of tokens in every head measured. Empirically the lock-in is fast and run-specific: by step 1000 a run's attention patterns already resemble its final state more than different runs resemble each other. The authors also build a cross-head consensus ORACLE that finds 'buried keys' - semantically relevant sources the current attention mostly excludes, at attention ranks as high as ~600. A second surprise: heads are NOT separate probability budgets - averaging attention scores across heads within a layer costs almost nothing in median loss (except layer 0), so routing is largely compatible across heads and specialization lives in the values. The proposed fix, NATQ - a damped inverse-Fisher natural-gradient query update that bounds movement in attention-distribution space rather than parameter space - does broaden attention (entropy 3.75 -> 4.69 nats; sub-0.1% keys capture 67% of the increase in layers 4-7) but WORSENS validation loss in a 124M/5k-step test, and fails copy/retrieval tasks by favoring common continuations over answer tokens; attention-transplant experiments show routing alone does not explain the loss. The hypothesis left standing: ordinary gradient descent's low weights filter NOISY keys, and democratizing the backward pass amplifies their influence - the winner-take-all concentration may be load-bearing for learning, not a bug. Flags, as entered: a blog-level technical essay, not peer-reviewed; headline numbers are from Qwen2.5-1.5B probes and one small 124M NATQ run. Cross-references: the attention-dynamics thread in the catalog - a training-time counterpart to ID 1766's inference-side quantization story and to the Marin QK-norm discussion (both concern what shapes attention spread); for the user's 250M run, the attention-vs-advantage spread and the Jacobian's effective rank are candidate Helm training-health signals, and NATQ's failure is a caution against 'fixing' attention concentration.
- Post
What objective is reasoning solving? Reasoning as pathfinding in token space
Alex Wang's essay reframes LLM reasoning as PATHFINDING in token space. Given a prompt x and a verifier r, the target is the set S_x of answers the verifier accepts; each sampled chain z is one path, and the success probability p_x is the total probability mass of paths landing in S_x. The core identity: with a binary reward, expected reward IS p_x, and its policy gradient is exactly REINFORCE - which, expanded, is one step of rejection-sampling fine-tuning (STaR-style) on the model's own successful paths, scaled by the current success rate M/N. Three consequences follow. (1) Why chains lengthen in RL but forcing a single chain longer stops helping: training shifts mass toward whichever paths landed - if successful paths tended to be longer (backtracking, environment feedback, luck), the model learns length; an individual path is never guaranteed to converge, so extra forced length can overshoot into overthinking. Only the DISTRIBUTION is optimized. (2) Best-of-k is the orthogonal, guaranteed axis: success rises as 1-(1-p_x)^k over SAMPLES, not length. (3) RL amortizes search: compute spent finding paths in training is baked into the weights, which is why a trained model often succeeds in one sample at inference. The frame also dissolves two puzzles: CoT faithfulness is not implied by the objective (the reward scores only the final answer; intermediate tokens are unconstrained means, correlated with truth only via pretraining), and reward hacking is geometric - an imperfect verifier makes S_x differ from the truly-correct set, its wrong-but-accepted region is often the EASIEST to reach, and scaling RL samples/length fuzzes the verifier harder, so hacking gets MORE likely with scale before training amplifies the shortcut. Author's conclusion: reasoning is not solving an objective per-path at all; guarantees exist only in aggregate over the path distribution. Flags, as entered: a conceptual essay, not new experiments - its value is the unifying frame (built on Brown et al. 2024 sampling scaling, STaR, Muennighoff et al. 2025, Gema et al. 2025); the binary-verifier setup is an idealization of graded/partial-credit rewards. Cross-references: ID 1695 (the author's associative-memory essay); the catalog's latent-reasoning thread (a path need not be made of tokens at all - the frame extends to latent paths, which is the author's stated motivation); and the monitorability thread - the faithfulness section is the cleanest short statement of why answer-only rewards cannot buy faithful chains.
- Post
SINQ comes to GGUF: BeeLlama.cpp v0.5.0 makes every tested quantization recipe more accurate
BeeLlama.cpp v0.5.0 Preview (Ivan Neustroev) ships the first implementation of SINQ (Sinkhorn-Normalized Quantization) in the llama.cpp ecosystem. SINQ itself is from Müller et al. at Huawei (arXiv 2509.22944, Sep 2025; the same team as KVarN): it augments an existing post-training quantizer with a second-axis scale factor, using fast Sinkhorn-Knopp-style iterations to normalize the per-row and per-column variances of each weight matrix (minimizing a 'matrix imbalance' proxy). Because column-wise weight standard deviations are predictive of the activation magnitudes a matrix saw in training, this recovers much of activation-aware quantization's benefit with NO calibration data; it is layer-independent, applies to any linear layer, and in the paper cuts the WikiText2/C4 perplexity gap versus uncalibrated uniform baselines by over 50% on the Qwen3 family and DeepSeek-V2.5, at zero-to-negligible overhead (code: github.com/huawei-csl/SINQ). The implementation result reported here: Neustroev reproduced Bartowski's fully open-source Qwen 3.5 9B GGUF collection with SINQ added, and EVERY recipe (Q2_K through Q8_0) achieved lower KL divergence against BF16, with drastic improvements at the higher bit-widths; against Unsloth's collection for the same model (only partially reproducible, its process being partly proprietary), Bartowski+SINQ dominates most of the size-quality Pareto frontier, with a particularly large gap at 6 and 8 bits. The author ships his own disclaimers, carried here as flags: the SINQ configuration for each recipe was selected by MANUAL A/B testing (automated selection is work in progress), so the frontier partly reflects per-recipe tuning effort; SINQ GGUFs currently run ONLY in BeeLlama.cpp v0.5.0, since the format needs engine support; some recipes may benefit less or not at all where existing optimizations conflict; evidence is one model (Qwen 3.5 9B; a 27B pass promised) and the metric is KLD fidelity to BF16, not downstream task accuracy. The SINQ paper is summarized inside this entry and is not separately cataloged. Cross-references: the catalog's precision/quantization thread - SINQ is the inference-side, weight-only member (calibration-free dual scaling), complementing the training-side precision entries and KVarN's KV-cache variant of the same dual-scaling idea.
- 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
INTELLECT Policy Optimization (IPO)
Prime Intellect's new default RL loss in prime-rl 0.10.0, built for async/off-policy RL stability. The problem: in async RL the trainer policy π and the rollout-generating inference policy μ never agree exactly on a token's probability, and drift between them can collapse training. The old fix, IcePop (ratio-band masking from "Every Step Evolves," also used in INTELLECT-3), keeps a token iff π(y_t)/μ(y_t) ∈ [0.2, 5]. IPO keeps a token iff the absolute probability change |π(y_t) − μ(y_t)| ≤ ε (default 0.3), retaining the importance-weighted policy-gradient term τ_A Â_t · π/μ on kept tokens. Why the ratio misjudges both tails: a rare token 0.01→0.06 has ratio 6× → masked despite moving 0.05 of probability mass; a likely token 0.90→0.20 has ratio 0.22 → kept despite moving 0.70. Treating the vocab as {this token, everything else}, |π−μ| is the total-variation distance between the two engines on that split. The criterion comes from DPPO (Qi et al., 2026), which used probability-difference for the PPO trust region between policy updates; IPO applies it to the trainer–inference mismatch, with a sign-independent mask (unlike DPPO). Ablation on agentic SWE RL with GLM-4.5-Air (100B MoE, bf16) in a deliberately extreme setting — up to 64 steps off-policy, no routing replay, no router replay ("in most runs IcePop is stable"): arms indistinguishable for ~1k steps, then IcePop's trainer→inference KL explodes >20× around step 1.2k and SWE solve rate falls ~0.8→~0.3, while both IPO arms (ε=0.2, 0.3) train straight through. At ε=0.3 IPO masks ~0.25% of tokens (vs ~2% at the old ε=0.1 default, which collapsed entropy). Open caveat from the thread (Yusuf Sadek): at ε=0.3, a token at 0.25 trainer / 0.001 inference (difference 0.249, ratio 250×) is never masked, and IPO doesn't clip the importance weight on kept tokens — the mask gates inclusion only. All figures first-party; no independent repro. Same release also: top-p/top-k replayed exactly in the trainer, constant trainer batch size, MoE router frozen by default.
- 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
Teaching NVIDIA's Nemotron 3.5 Super-VL ML Engineering
Bespoke Labs post-trained NVIDIA's Nemotron-3.5-Super-VL 120B-A12B (hybrid Mamba-attention MoE, 120B total / 12B active) into an autonomous ML researcher, evaluating on AutoResearchExam — Bespoke's benchmark of extended ML-engineering tasks (22 CPU-only long-horizon tasks, 4–6h limits, single final submission, no grader feedback; a different protocol from the public ARE leaderboard). All post-trained variants are tiny LoRA adapters (r32, 224 tensors, 205 MB = 0.08% of base weights). Mean score: base 0.286 → Curated Decision SFT 0.319 (+11.3%) → self-context distillation 0.317 (+10.6%) → SCD + Reflection 0.358 (+24.8%), vs Muse Spark 1.3 at 0.258 and Qwen 3.8 Max at 0.353 (20× total parameters). Curated Decision SFT extracts useful decisions from Qwen 3.8 Max teacher trajectories (400 examples, 2.19M tokens). Self-context distillation has the model solve tasks with terminal-use guidance and hints, then strips the help — reconstructing each context without hints and excluding steps whose reasoning depends on hint-only information — and trains on the retained trajectories (3,365 examples, 7.44M tokens). The reflection extension (inspired by Retrospection-Only Fine-Tuning) has the SCD model review its own better-vs-worse attempt pairs and write concrete lessons, training on 972 reflection examples + 500 replayed SCD action examples; reflection-only variants regressed, and with no matched replay-only control the result supports only the combined recipe. Contamination screening via task IDs and instruction-text comparison found no eval overlap. All results are the companies' own; the proprietary ARE eval means no independent reproduction is possible.
- Post
SGD, AdamW, and the mystery of α = 2
Charles Martin (WeightWatcher author) offers an explanation for why WeightWatcher's spectral renormalization-group diagnostics behave differently under SGD and AdamW: layer spectral exponents α often approach the ≈2 marginal regime with SGD, but with AdamW many layers land at α < 2 — the regime he flags as possible overtraining. The paradox: in his LeNet-5-on-MNIST example, the AdamW run (α < 2) has better test accuracy than the SGD run (α ≈ 2). His answer: SGD is scale-invariant — for an idealized scale-invariant loss, rescaling weights W → bW, WᵀW → b²X and learning rate η → b²η yields a rescaled copy of the same trajectory, and this symmetry underlies the RG-flow emergence and Exact RG fixed-point conditions — whereas AdamW's adaptive normalization changes the scaling law (learning rate scales as b rather than b² in the idealized limit), breaking the SGD scaling symmetry and shifting the spectral trace-log drift. Working hypothesis: SGD scale-invariance is consistent with the RG flow, while AdamW's implicit bias moves learning away from the α ≈ 2 regime — which explains why WeightWatcher worked well in the pre-AdamW era and why modern-optimizer models are harder to analyze. A standing research question, not a publication; discussion invited on the WeightWatcher Discord.
- 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
Cutting Pretraining Costs by 62% — Hyperstition (ANVIL III optimizer)
ANVIL III is a Muon-family optimizer presented as the biggest optimizer breakthrough since Muon (2024). It beats a fully tuned Muon by 20-28 millinats of final validation loss at matched token budget, holding across 124M, 350M, 774M and 1.2B parameters and across overtraining depths; the gap typically grows from 30% to 80% of training (up to ~50 mnat in some configs), with Muon partially catching up during annealing. At a fixed 8x-Chinchilla budget, fitted scaling curves imply optimizer-only compute savings of 32%/39%/39%/50% at the four sizes; combined with an architecture variant (≈25% near-Chinchilla compute saving) the headline is ~62% less pretraining compute at frontier scale, plus ~30% lower inference cost from faster decode. Mechanistically, an 'Adam SNR' probe (descent inequality = Gini of |u_i^T G v_i| over singular directions, scored on held-out batches) shows ANVIL III's update directions have persistently higher signal-to-noise across the whole singular spectrum; 90% of its singular directions go downhill on held-out data vs 67% for Muon (random = 50%), and it is far less sensitive to truncating the weakest singular vectors (removing weakest 20%: Muon +6.9 mnat, ANVIL III +1.8 mnat). The team also released Feather 1.7B (1.68B params, 200B training tokens), which beats Qwen3-1.7B-Base (~36T tokens) on math with ~180x fewer training tokens (MATH500 63.0 vs 53.0; GSM8K 83.4 vs 76.6; GSM8K Platinum 85.7 vs 74.4; GSM-Symbolic main 81.1 vs 62.7), with three rounds of benchmark decontamination documented. A deprecated ANVIL II set the public NanoGPT speedrun record (73.889s -> 39.914s, 1.851x speedup, 46.0% training-time reduction — a larger percentage leap than the previous 45 records combined) and is public as part of the submission; no license stated for the code.
- Post
How to Train a Neural Net: Lecture Notes (MIT 6.7960 Deep Learning, Fall 2024)
Concise mathematical treatment of how a neural network learns its weights during training, from MIT's 6.7960 Deep Learning course (Fall 2024). Covers the forward pass, loss functions, gradients, backpropagation, and gradient-based optimization — aimed at moving from high-level intuition to a rigorous understanding of training math. Lecture 2 notes; a tip in the thread notes all 20+ lectures can be downloaded from the course's OCW page. Resource-sharing, not a research paper.
- Post
First Sparks of Thermodynamic Recursive Intelligence
Extropic post-trains Qwen3.6-35B-A3B with GRPO to reproduce classic connectionist experiments (Boltzmann machines, wake-sleep) as the first step toward Thermodynamic Recursive Self-Improvement: held-out reward nearly triples (0.127 to 0.361) after 100 steps, competitive with much larger frontier models. Next steps: TSU-based sandboxes and real-chip feedback from thermodynamic chips coming online in 2027.
- Post
Scaling Pre-Training in Practice: A Hierarchical Approach
Aleph Alpha's technical write-up of a practical, hierarchical approach to finding an efficient LLM pre-training configuration and scaling it from a small cluster to a large one. Three degrees of freedom are swept hierarchically: (1) parallelism scheme (FSDP/DP degrees), (2) activation checkpointing (full-AC, selective-AC, or none), (3) local batch size. The sweep runs on 16 GPUs (1/32 of target), with profiler traces (PyTorch profiler + Perfetto) used to pick a scheme that fits within ~95% HBM; the configuration is then verified and re-profiled at 128 GPUs and again at 512 GPUs. Demonstrated on a 30B-A3B MoE (30B total params, 3B active per token) scaled 16 -> 512 NVIDIA B200 GPUs (64 nodes x 8, InfiniBand): 16 GPUs: 28.4k TPS/GPU, 37.5% MFU, 92% HBM; 128 GPUs: 28.0k TPS/GPU, 37.0% MFU, 93% HBM; 512 GPUs: 26.7k TPS/GPU, 35.3% MFU, 94% HBM -- only ~6% per-GPU efficiency drop from 16 to 512 GPUs, claimed near-linear scaling. Training stack is Aleph Alpha's own optimized fork of PyTorch's torchtitan (no link to the fork given). Stated scope: a single architecture and a single sequence length (4096 tokens); cluster sizes assumed known in advance. No model, code, weights, or dataset released in the post.
- Post
RL is an evolutionary algorithm
Argues that pretraining, RL, and compaction are all evolutionary algorithms: micro-batch SGD is evolutionary search in the loss landscape (only generalizing updates survive), agent compaction evolves lesson summaries under environment feedback, and RL is evolutionary search in the reward landscape (weights as species, behaviors as individuals, reward as selection). Draws implications for generalization (multi-domain RL beats multi-teacher distillation), honesty/monitorability, prompt-reward design (mismatch breeds eval awareness), and agentic judging as a path to align capabilities with alignment.
- 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
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.
- Post
What a Railroad Game Taught a Model About Finance
Good Start Labs trained a 30B Nemotron-class model as a terminal agent in the 1830 railroad board-game engine, then evaluated held-out SEC-filings research. Single-turn game QA training transferred essentially nothing (21.7%→22.0%), while multi-turn agentic game training improved the Finance-Agent subset from 12.1% to 18.3%. Behavioral analysis attributes the gain not to more finance knowledge but to fewer confident false claims (83.0% base to 64.5% at step 100), with more searching or calibrated abstention. An independent Goodfire Silico study on two early checkpoints found a similar citation-grounding fingerprint on a separately designed test.