Explore the research collection
38 entries · showing 25–38 · Follow this search
- 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
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
Toward RL on mixed-precision, mixed-accelerator samplers
RL training normally runs samplers on a fixed homogeneous cluster of the latest accelerators to keep sampler–trainer mismatch low, throwing away inference optimizations built for other vendors/generations. Modal asks whether RL can sample from mixed-precision, mixed-accelerator fleets while staying stable and performant. They train Qwen3.6-35B-A3B on agentic coding tasks (2.7K de-leaked Xiaomi/MiMo-V2.6 repo tasks, up to 256K context, binary test-pass reward in a fresh sandbox) with fully asynchronous RL in the open-source Miles framework: SGLang samplers and a Megatron-LM trainer updating the policy in BF16 on B200s, 128 prompts × 8 trajectories per update, no staleness limit. Two sampler setups: mixed (six accelerator kinds — B200/B300 with NVFP4 weights, H100/H200 with FP8 and BF16 weights, A100/RTX PRO 6000 with BF16 weights — each with its own kernels and FP8 KV caches) vs homogeneous (B200 only, BF16 weights, BF16 KV cache). The fix is off-policy correction on top of GRPO: masked importance sampling (per-token ratio kept inside [0.2, 5], zeroed outside), score centering (removes drift toward the sampling policy), and top-p sampling with mask replay (shared support). Uncorrected GRPO collapses on both setups; each correction piece alone only delays collapse; only score-centering + masked importance sampling trains stably to convergence, reaching SWE-bench Pro V2 pass@4 ~65–75% on the HARD-51 subset and ~94% on the full set. With the full correction, mixed samplers match homogeneous pass@4 throughout training despite a 4.7× larger average sampler–trainer KL, at ~15% lower sampler cost per update on a setup built for validation, not minimal cost. The central claim: stability depends on whether the mismatch keeps growing, not its magnitude — accelerator and precision differences need no new kind of fix, since off-policy correction is agnostic to why the sampling policy differs from the training policy.
- 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
New in llama.cpp: Decision Models — /v1/systemone typed-decision endpoint
llama.cpp's server now supports decision models through a /v1/systemone endpoint: you send a state (text, JSON, a screenshot, or a chat message list) plus typed questions, and the model returns a probability for each option in a single forward pass — no token-by-token generation and no output parsing. The API follows the System One format introduced with TypeSafe's Jev model, so existing clients only need a new base URL (implementation: llama.cpp PR #29818). Three question types: choice (options with optional descriptions, returns top option plus per-option probabilities), score (2-10 levels, returns an expected level), and noul (yes/no, returns probability of yes). Six supported models at launch: Julia-1 (144M, mmBERT-small, 50+ languages, Apache 2.0, 3 ms), Laya (421M, ModernBERT-large, English, Apache 2.0, 5 ms), Kev-4B (4B, Qwen3.5-4B-Base, English, Apache 2.0, 12 ms), lev (4B, Qwen3.5-4B, English, Apache 2.0, 36 ms), OpenJev (27B, Qwen3.8-27B, multilingual + images, CC BY-NC 4.0, 43 ms), and Clef (27B, Qwen3.8-27B, English + images, Apache 2.0) — latencies are median time per question on one NVIDIA RTX PRO 6000. Router mode lets one server load several models on demand and pick per request; a community Decision Index leaderboard compares the models. Typical uses: request routing, content moderation, checking an agent step worked, or choosing an agent's next action.
- 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
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
The Atlas Neuron (Arth Singh: continual learning with no backprop, no replay, no task labels)
Can a model learn tasks one after another without forgetting, with no replay, no task labels, and no backprop? The Atlas neuron: keeps one page of memory per "world"; when several batches in a row look unfamiliar (3 consecutive batches below 85% of the world's frozen usual familiarity, or batches with only never-seen labels), it forks a new page, and only the current page learns, so old pages can't be overwritten. Each image is compressed by a fixed random projection to 256 numbers; per class, each page stores 128 landmarks (online k-means) and a chart in pixel space = the class mean plus its top 16 principal directions (incremental PCA, one streaming pass). To classify, each chart bends from its mean along its 16 directions toward the input; the leftover squared distance is what the chart cannot explain; the class score combines the smallest unexplained distance among its charts with its closest landmark similarity across ALL pages (no routing to a world first). The two vote weights are the only numbers learned by gradient descent (self-calibrated from inverse spreads). Results in the Mammoth continual-learning library (one pass, no task labels, 5 seeds): 96.7% after 20 tasks of Permuted MNIST vs 45% for a sequentially trained MLP; beats DER++ with a 5,120-image buffer on 5 of 6 benchmarks (exception: Rotated MNIST 94.2 vs 94.5), e.g. 96.7 vs 92.3 on Permuted MNIST; also beats the joint-trained MLP reference on 5 of 6. A landmark-only lookup-table ablation with 2x memory matches 3/6 tasks but collapses on Split CIFAR-10 (17.0 vs 41.5) -- the charts do the work. Costs: 9.2M stored floats on permuted tasks vs DER++'s 4.2M; a leaner shared-charts variant matches on permuted tasks at 2.4M but loses on Split CIFAR-100. On natural images it only partly works: with frozen unsupervised patch features it reaches 41.5% on Split CIFAR-10 but stays weak on Split CIFAR-100 (14.4% vs 37.5% DER++); streaming LDA beats it above 2M floats. Caveats: rotated nearby angles merge into one page; Permuted KMNIST is the one benchmark where the lookup table stays ahead; memory grows with the number of worlds. Partly old lineage: subspace classifiers back to CLAFIC (1960s), Hinton/Dayan/Revow's 1997 wake-sleep charts; new is the automatic forking rule bolted onto modern continual-learning benchmarks.
- Post
AutoBenchmark: benchmark creation and the role of humans (Meta RAM blog)
AutoBenchmark is a framework in which an autoresearch agent builds a benchmark end-to-end from a task specification and revises it over iterations using two feedback signals: solver-agent trajectories and scores, and critique from an LLM verifier checking benchmark quality. Each benchmark is produced as a Harbor-compatible evaluation package (container environment, task instructions, evidence, reference solution, machine-checkable grading criteria). Stages: 1) Benchmark Proposal -- agent decides the construct, operationalizes it multiple ways, gathers primary sources, instantiates runnable tasks, makes the designer decisions (what the solver sees, partial credit, reference solution proving solvability); 2) Benchmark Solving -- solver agents attempt tasks, graded by an answer judge, giving a difficulty signal; 3) Benchmark Review -- an LLM judge rates the benchmark on construct validity, correctness, feasibility, usefulness, and overall verdict, retaining the best accepted checkpoint (lowest-scoring accepted iteration) and checking difficulty against external solvers. Before any solver run, the harness executes the agent's reference solution against the real verifier and admits it only at score >= 0.9. Three benchmarks built automatically: Graveyard Bench (ideation -- avoiding dead-end ideas, grounded in documented negative results), SilentTrain Bench (experimentation -- patching buggy code that silently degrades training, grounded in silent defects), Rebuttal Bench (assessment -- judging whether a paper rebuttal resolves reviewer weaknesses, grounded in public review threads). Findings: fully autonomous benchmarks are close to saturated (in-loop solvers above 80, first three iterations all 100.0 on Muse Spark); fine-grained human proposal feedback halves solver scores (Rebuttal Bench: 90/84/80 -> 43.5/51.2/39.1 on Spark/Glimmer/Nemotron); coarse one-sentence intent helps only marginally; difficulty transfers to held-out solvers (NVIDIA-Nemotron-3.5-Lightning-30B-A3B, Claude Opus-5); when the loop stalls, human direction at that point helps (SilentTrain: 88.1 -> 64.2 on Spark); the verifier catches defects scores cannot see (leaked answers, shallow constructs), so selection on score alone keeps verifier-rejected iterations.
- Post
METR: Expenditure Horizon (blog post)
METR blog post (2026-07-21) on expenditure horizons, including estimating human expenditure for pull requests with an LLM judge. Shared by Wenhao Chai in the context of agent scaling behavior and the argument that hybrid AI+human setups need careful human-in-the-loop design.
- Post
The Next Scaling Problem
Long-form engineering essay on scaling cloud agents by pulling the runtime out of the sandbox and rebuilding the system around durable agent work. Core principles: (1) A computer should be something the agent calls, not somewhere the agent lives -- the agent is a stable shared service while sandboxes are disposable execution resources with their own lifecycle (models, memory, files, credentials, tools each get one). (2) Write ahead of execution -- a WAL-style protocol: record a transition before performing the operation it authorizes, with stable identities as idempotency keys, so a replacement runtime can reconstruct a thread from committed facts after a failure. (3) Durable delivery via a queue that outlives producers. Describes the Tetral architecture: Gateway (provider integration, stateless), Bridge (PostgreSQL commits with ownership/order checks), Queue (ordering, leases, retries, dead-lettering), Sandbox Service (computer lifecycle), Public API + Event Stream; the runtime itself is replaceable compute running a pure reducer with no DB/network I/O. Storage model: session_events (ordered event log), session_messages (model-context projection), session_bridge_operations (idempotency receipts); compaction adapted from OpenCode. Contrasts with Cursor's Temporal-based durable-execution approach.
- Post
Training-Free Looped Transformers (WisPaper blog summary)
WisPaper user-blog walkthrough of Training-Free Looped Transformers (arXiv:2605.23872, already papers_local id 529): wrap contiguous mid layers of a frozen LLM in a numerical-integration loop (block- vs layer-mode); naive reapplication fails, ODE/Euler sub-stepping keeps states in-distribution; reported e.g. +2.64 pp MMLU-Pro on Qwen3-4B-Instruct across seven model families; depth-fraction ~45–60%. Blog restates paper claims; does not add new experiments.