Claude Wrote Its Own Inference Engine — and Cut First-Token Latency From 12 Seconds to 0.48
November 22, 2026 · 5 min read
The setup sounds like a dare. Researchers from Carnegie Mellon, Nvidia and other institutions handed Claude Opus 5.5 a basic server codebase, four GB300 graphics cards and twelve hours, and asked it to use Claude Code to write its own inference engine — the software that serves a model's answers to users. The team gave the model the same starting point a human engineer would get, then stepped back. The result, published as Singularity-Bench, is the kind of number that makes engineers stop scrolling: the engine Claude wrote serves its first token with a P90 latency of 0.478 seconds. The mature open-source engine SGLang, on the same task, takes 12.029 seconds.
Latency is not the only gap. In the same amount of time, Claude's engine completed nearly 40% more requests, and the study's simulated revenue ran 40.8% higher. First-token latency is the delay a user feels before anything appears — the pause between sending a prompt and seeing the first word — so a 25-fold improvement is not a rounding error. It is the difference between a product that feels instant and one that feels like it is thinking. A model wrote a better engine than the one humans have spent years tuning.
Only 5 of 11 passed both gates
The headline number is the best case, not the typical one. Eleven AI-built engines were tested, and only five passed both acceptance gates the researchers set — the bar for correctness and reliability, not just speed. Six engines were fast, or clever, and still failed. That is the part of the study that deserves as much attention as the 0.478 seconds: self-improvement is real, but it is uneven, and most attempts do not clear the bar. The story is not that AI can now write its own infrastructure flawlessly. It is that it can do it well enough, sometimes, to beat the human-built standard.
Why this matters more than a benchmark
An inference engine is plumbing — unglamorous, essential, and invisible when it works. It decides how much hardware a model needs, how many users it can serve, and how much each answer costs. A model that can rewrite its own plumbing gets faster and cheaper every generation, and the improvement loop starts to close: better models write better engines, which serve better models, which write better engines still. That loop is the reason this study matters beyond its numbers. It is a small, measured step toward AI systems that improve their own infrastructure without waiting for a human engineer.
The catch: speed is not the whole job
Speed is one metric, and it is not the one that decides whether an engine ships. Correctness decides that: whether every token is right, whether edge cases are handled, whether the engine fails gracefully instead of silently. The acceptance gates in Singularity-Bench exist for exactly this reason — to separate an engine that is fast from an engine that can be trusted. The 0.478 seconds is real, and so is the fact that six of eleven engines did not pass. The gap between a demo and a deployment is measured in the tests the demo never had to take.
What to watch next
Three things to watch. First, whether any lab puts a self-written engine into production, and what happens when real traffic hits it. Second, whether the loop compounds — a faster engine training a better model that writes a faster engine — or whether it plateaus at the first generation. Third, how the human-built engines respond: SGLang and vLLM have years of tuning behind them, and a 25-fold gap is the kind of result that gets a reply. The benchmark set the score. The loop is the story; the latency is only the first measurement of it. The industry now has to decide whether to believe it.