Explore the research collection
2 entries · Follow this search
- Paper
Efficient Reasoning with Flow Language Models
Flow Language Models (FLMs) are continuous-state diffusion LMs trained by conditional flow matching: they interpolate Gaussian noise to one-hot clean targets, train a clean-token cross-entropy objective, and at inference Euler-integrate the learned ODE over N denoising steps, discretizing to tokens only at the very end. Discrete diffusion baselines pass a single categorical value per position between steps, discarding alternative-token probability mass. The paper's theory: the FLM state is exactly a temporal superposition of candidate-sequence vertices, so historical support for non-top-1 candidates persists; that retained support can change prediction margins even within a fixed hard state (a margin span of Δ implies worst-case reproduction error ≥ |Δ|/2 for hard-state-only readouts); and decoder-risk bounds show the continuous state can strictly lower prediction risk vs the hard projection. Empirically, on Maze10/15/20 at 4 denoising steps with matched model sizes, FLM beats the best discrete baseline by +1.2/+18.0/+21.2 percentage points of exact sequence accuracy (99.5/99.1/91.3), with FLM already at 95.9% on Maze15 in a single step; FLM stays ahead of MDLM across three model sizes and 1–512 steps and reaches the 95% target on Maze15 with 36.5% fewer parameters (88.25M vs 139.00M). On Sudoku-Extreme (86.88M), FLM leads at 1–2 steps (21.0%/36.7% vs 19.2%/36.2%) but enhanced discrete samplers overtake from 16 steps onward; the 1-step edge transfers zero-shot to Standard Sudoku (29.5% vs 27.1%). Mechanism evidence: at t=0.80, 23.8% of cells in the accumulated state retain a second candidate ≥0.05 (vs 4.9% in the instantaneous prediction), and interventions removing non-top-1 information degrade recovery (Natural ≥ Top-2 > Top-1), so the retained alternatives are actually used — this is the error-preemption effect where alternative digits fade across steps and let FLMs correct initial mistakes. Wall-clock: FLM is fastest at N=1 on all tasks (0.151s vs 0.303s MDLM on Maze20), comparable at N=64.
- Paper
nanoswe: Speedrunning SWE-bench — a 2.8B agent trained from scratch for ~$1,000 reaches 25.5% on SWE-bench Verified
nanoswe is a community speedrun of SWE-bench Verified, forked from Karpathy's nanochat: how good a coding agent can ~$1,000 of train compute buy when the model is trained from random initialization on agentic SWE trajectories, with SWE-bench's 12 source repositories strictly held out (the 1.59M-trajectory corpus was audited and 4,516 violating rows purged)? Budgets are denominated in B200-hours at $5/h ($60 track = 12 h; $1000 track = 192 h). The August 2026 scaling sweep found solve rate roughly log-linear in train compute: a ~$10 run already scores 0.53% pass@1, the $60 run (1.38B) reaches 5.0% — the level of Claude 2 at SWE-bench's release — and the $1000 run (5.67B) reaches 11.0%. Two findings complicate the distillation story. First, a stronger teacher can be a worse teacher: replacing Qwen-Coder-30B-A3B trajectories (teacher at 29% pass@1) with Qwen 3.6 35B A3B trajectories (58%) dropped the $60 student from 5.0% to 2.1%, because the stronger teacher's test-first workflow leaves the weak student stuck writing reproduction tests (no patch in 74% of attempts vs 8%). Second, trajectory-only training buys code and little else: the speedruns generalize to synthetic bugs that exist nowhere online and to bugs from real 2026 pull requests, but MMLU and GSM8K do not improve with speedrun compute even after elicitation fine-tuning, while a differential-item-functioning analysis against SmolLM3-3B fine-tunes finds no detectable problem-coverage blind spots from skipping web pretraining — at matched ability the cohorts solve essentially the same problems. The current $1000-track record (Oct 2026) shrinks the model to 2.82B and adds a short web warmup: 6.7B FineWeb-Edu tokens, then 37.8B tokens of SWE-smith trajectories from a Nemotron teacher, reaching 25.47% pass@1 (pass@5 41.4%) on the project's 483-instance cluster-runnable subset of Verified — above the originally reported scores of Claude 3 Opus (15.8%) and GPT-4o (23.2%), under a different scaffold.