
Humanity's Last System: Coding agents building inference systems from scratch
TL;DR: How good are coding agents at building inference systems from scratch? We introduce Humanity's Last System (HLS), an ultra-long-horizon agentic coding benchmark that gives frontier agents live GPU sandboxes …
以下正文同步自 Hacker News 最新,版权归原站所有,已转换为易读排版。
TL;DR: How good are coding agents at building inference systems from scratch? We introduce Humanity's Last System (HLS), an ultra-long-horizon agentic coding benchmark that gives frontier agents live GPU sandboxes with up to 8xH200s and up to 36 hours to build systems hyperspecialized to a model, hardware platform, and production workload. HLS introduces a token-level verifier that checks a submission against a trusted reference while allowing the numerical variation that occurs in real serving systems. We evaluate frontier proprietary and open models across text and multimodal inference tasks using production workloads. The top-performing agent, Opus 5, outperforms the baseline in 71% of runs and achieves impressive speedups in some runs. The rest trails far behind: no other agent beats the baseline in more than 24% of runs. We release the evaluation framework and over 150 trajectories, comprising over 238,000 steps, to support analysis of how agents develop hyperspecialized systems and how they could develop them better.
Task specificationServed modelGPU topologyWorkload specificationBuildAgent12- to 36-hour budgetGPU sandboxH200s with NVLinkiterateTimed evaluationworkload shown for agentic codingSubmitted systemthe final commitWorkload generatorTerminal-Bench 4 agentstools run in live CPU sandboxesrequestsoutputssubmitrecordTimed tracesevery output and its timingCorrectnessverifierPerformancescorerpassTask specificationServed modelGPU topologyWorkload specificationBuildAgent12- to 36-hour budgetGPU sandboxH200s with NVLinkiterateTimed evaluationworkload shown for agentic codingSubmitted systemthe final commitWorkload generatorTerminal-Bench 4 agentstools run in live CPU sandboxesrequestsoutputssubmitrecordTimed tracesevery output and its timingCorrectnessverifierPerformancescorerpass
Figure 1. An agent receives the task specification and builds a serving system in a GPU sandbox. Its final commit is deployed in a fresh container and serves the task's timed workload, shown here with agentic coding's generator, whose Terminal-Bench 4 agents run their tools in live sandboxes. The outputs and timings recorded during that one run are used for both verification and scoring; a server that fails verification scores zero.
Frontier models are increasingly heterogeneous in their architectures, from sparse attention to recurrent states, which complicates maintaining a generic abstraction and day-0 support for newly released models. Generality can leave performance on the table, and building optimized generic serving systems requires substantial expert effort. Coding agents could reduce this engineering burden by building systems hyperspecialized to a model, hardware platform, and workload. Our previous work, VibeServe [1], demonstrated this possibility: agents generated hyperspecialized serving systems that outperformed existing engines in several settings. These results motivate studying agents' ability to carry out the systems engineering needed for such hyperspecialization.
Building these systems is an ultra-long-horizon coding problem: kernels, memory management, scheduling, and parallelism must be designed, integrated, profiled, and tested together over many hours. Many existing coding benchmarks focus on isolated kernels or incremental patches to existing codebases, leaving this end-to-end engineering process less directly tested. The challenge of HLS is for agents to sustain this development process to build fast, correct, hyperspecialized stacks from scratch.
HLS provides this evaluation framework together with traces from our rollouts. Across the 153 rollouts, the median trajectory spans 1,213 steps and 826,000 tokens, with the longest trajectory reaching 4.14 million tokens. The trajectories link agents' experiments, errors, and design changes to their implementations and evaluation outcomes, enabling analysis of how they develop a serving system over many hours.
Our tasks cover text, agentic, and multimodal serving using production workloads and traces on one to eight H200s over NVLink. Concurrent traffic and multi-turn sessions exercise scheduling and cache management in ways that a fixed batch of uniform requests can miss. The model architectures span dense Transformers, MoE, and hybrid models.
In the agentic-coding task, we ask the agent to create an inference stack for GLM-5.3-Flash on 8xH200s with support for contexts up to 1M tokens using Terminal-Bench 4 [2] problems as the workload. Prefix reuse is particularly challenging because GLM-5.3-Flash combines the attention cache of DeepSeek Sparse Attention (DSA) with the mutable recurrent state of Kimi Delta Attention (KDA). KDA updates its recurrent state in place at every token. Consequently, a cached state at length LLL cannot be reused for a shorter matching prefix, and that prefix must be recomputed from scratch. The agent must decide which prefix boundaries to checkpoint, which snapshots to retain while sessions wait for tools, and when to evict them. More snapshots can reduce recomputation, but leave less memory for attention caches and active requests.
These decisions interact with how the model is parallelized across the 8 GPUs: prefill–decode disaggregation, and tensor, expert, and context parallelism for prefill and decode. Tensor and expert parallelism (TP+EP) distributes computation and experts but replicates DSA's state, while tensor and decode context parallelism (TP+DCP) partitions the attention cache at a higher communication cost. Each layout leaves a different memory and communication budget for cached states and active sessions. The agent must therefore choose parallelism and checkpointing policies together, under a workload whose context lengths, prefix reuse, and active sessions change as Terminal-Bench agents (the workload) execute tools.
A natural way to check an optimized serving system is to measure how well its outputs perform on a downstream task. For a speech-recognition (ASR) model, transcription accuracy may be exactly what matters; for a general-purpose language model, passing one task says little about behavior on others. HLS therefore supports two approaches: task-level metrics for a specified downstream use, and token-level verification to test whether a server preserves the reference model's output distribution.
The choice determines which optimizations are acceptable. Agents can optimize aggressively for a task-level metric, so the task-level verifier must fully cover the intended downstream workload. In our speech-recognition task, an Opus 5 submission shortened Whisper's zero-padded encoder window. This changed some transcripts but stayed within the transcription-accuracy tolerance: an acceptable tradeoff for the evaluated workload, even though the outputs were no longer token-equivalent to the reference.
For general-purpose text serving, downstream evaluations can be too narrow, noisy, or expensive to establish that model behavior is preserved. Our token-level verifier instead checks the tokens emitted under the timed workload by teacher-forcing the reference on the submission's trajectories. This exposes the verifier to the same concurrency, cache reuse, and context lengths that determine serving performance. Exact agreement is too strict a test because of batch nondeterminism and differences between kernel implementations. Too tolerant a margin, on the other hand, would accept servers whose errors degrade the model. HLS calibrates its tolerances from trusted implementations, including vLLM, SGLang, and vLLM-Omni, serving the task's workload.
500 MMLU-Pro questions97.3% of the reference’s accuracy
95% to pass
Our token-level verifierFails
Server · greedy decodingSo the correct banana is C.Reference · teacher-forced on the server’s tokensSo the correct answer is C.91% vs 0.01%
Figure 2. Our token-level verifier compares the output distribution at every token with a trusted reference implementation while tolerating numerical variation seen with kernel implementation choices and batch nondeterminism in serving. End-task accuracy compares only the answer with the answer key and misses many defective servers seen in our rollouts.
HLS scores a system by how quickly it serves the task's workload relative to a production-engine baseline on the same hardware; a submission that fails correctness receives zero. For vLLM baselines, we use the shipped defaults without additional tuning, except for agentic coding, where we set tensor parallelism to eight (tp=8) and expert parallelism to eight (ep=8). For streaming tasks, we measure time to first token (TTFT) and time per output token (TPOT). We divide each by its corresponding service-level objective (SLO) and take the larger ratio. Thus, each request is judged by whichever latency is worse relative to its target. For non-streaming tasks, we measure job completion time (JCT). We take the geometric mean over requests or trajectories and normalize by the baseline: 1× matches the baseline, and scores above 1× indicate an improvement. A server must sustain the specified traffic, so queueing and delays decrease its score.
Agents work in containers on NVIDIA HGX H200 systems with compilers, profilers, model checkpoints, and development data provided. The test split that the agent is graded on is held out. General internet access is disabled, but agents may install packages with pip, except for high-level inference frameworks and optimized kernel libraries. Their final committed implementation is frozen and deployed into a fresh container for evaluation (Figure 1).
Coding agents can build serving systems that outperform production engines, but success varies substantially across tasks and attempts. Opus 5 produces correct systems in 81% of runs and beats the baseline in 71%, achieving the highest maximum speedup on six of the seven tasks (Figure 3). Its strongest results include 25.87× on speech recognition, 4.92× on omni chat, and 2.40× on speech synthesis. It still fails to produce correct systems consistently across all tasks, making correctness verification essential when evaluating an agent's claimed speedups.
fast_1
fast_0
Generic serving
Agentic coding
Deep research
Code completion
Speech recognition
Speech synthesis
Omni chat
Opus 5maxClaude Code
71.4%
81.0%1.91×0.99×1.83×1.89×25.9×2.40×4.92×Kimi K3maxClaude Code
23.8%
33.3%1.01×12.4×1.24×1.04×Opus 4.8maxClaude Code
19.0%
71.4%0.45×0.029×0.43×7.10×1.08×0.76×GLM 5.3maxClaude Code
14.3%
28.6%0.80×13.2×1.20×GPT 5.6 SolmaxCodex
9.5%
42.9%0.013×0.54×1.66×0.54×GPT 5.5xhighCodex
0.0%
28.6%0.25×0.038×
0.01×1×25×+speedup over the baseline
faster than the baseline (>1×)
failed verification (0)
Figure 3. Each task column shows a model's best speedup over the production baseline among its three 12-hour runs; 1× matches the baseline, a purple border marks a speedup above 1×, and a gray ✗ means no run passed verification. Following KernelBench [3], we define fast_p as the share of runs that pass verification and achieve a speedup greater than p. fast_0 is the share of runs that pass verification, and fast_1 is the share that pass verification and beat the production baseline. Select a cell to open the run's full trajectory and source, or switch to All runs to see all three runs.
To understand the differences between agents, we also examined how they used the same 12-hour development budget. Opus 5 runs averaged 2% idle time and typically continued testing after their last code edit, which came at a median of 9.6 hours. Opus 4.8 runs averaged 25% idle time, with a median last code edit at 6.2 hours. GPT 5.6 Sol, Kimi K3, and GLM 5.3 generally edited until the final one to two hours; their lower passing rates therefore cannot generally be explained by stopping early. New measurements dominated every model's time; repeats on unchanged code averaged only half an hour (Figure 4).
The up
正文由 探How 从来源站点 RSS 同步,内容未经改写;遇到排版缺失或需要图片、视频时请以原文为准。