TL;DR
Throwing a coding agent at a massive production AI framework like vLLM is like asking a watchmaker to tune a single gear inside a running jet engine—the codebase is simply too vast and tangled for the agent to predict end-to-end effects. EngineTailor flips the script by giving agents a tiny, self-contained inference engine built for just one specific model, chip, and workload. By shrinking the workspace from hundreds of thousands of lines of code down to a few thousand—and guarding the finish line with an un-hackable verification gate—agents reliably discover real-world speedups while banking reusable tricks for future hardware.
What Problem Does This Paper Address?
Making AI models run fast (inference optimization) is a notoriously delicate systems problem. You might write a blazing-fast GPU kernel, only to watch your gains evaporate due to memory layout conversions, cache misses, or host dispatch overhead elsewhere in the pipeline.
Production frameworks like vLLM (684K lines of Python) and SGLang (416K lines) juggle these interactions across dozens of models, chips, and distributed serving modes. That generality is great for humans deploying cloud clusters, capability-wise, but it creates a brutal "framework-comprehension tax" for AI coding agents. When an agent retrieves a few code fragments from a half-million-line repo, it loses sight of the complete execution path. Conversely, narrowing an agent's focus to isolated micro-benchmarks (like optimizing a single CUDA kernel in a vacuum) misses end-to-end system bottlenecks. How do you structure software so an agent can hold the entire system in its head?
Methods
The authors' core philosophy is one target, one engine: a minimal but complete inference engine (~3.3K lines of Python) registered to a single (model, hardware, workload) triplet. "Minimal" means stripping out all unrelated models, schedulers, and multi-node machinery. "Complete" means keeping the model loader, cache path, profiler, accuracy oracle, and end-to-end benchmark intact.
EngineTailor governs evolution across three strictly separated planes:
- The Optimization Plane: A Manager Agent reads system profiles to spot bottlenecks and dispatches bounded tasks to fresh, isolated Worker Agents in parallel.
- The Protected Acceptance Plane: Agents have zero authority over how their code is judged. Candidate diffs enter a serial queue behind a one-way boundary. A frozen referee runs a slow, ground-truth reference check (e.g., requiring $\ge 98\%$ next-token agreement via teacher forcing for LLMs) and an independent end-to-end benchmark. Only clear wins (
WIN) or pre-approved non-regressing structural setups (ENABLE) advance the engine. - Two-Level Evolution (The Shared Substrate): While the inner loop evolves the current engine, an outer loop logs every runnable code variant, failure mode, and hardware precondition into an append-only shared substrate. When tackling a new chip or model later, the Manager retrieves compatible recipes—giving future agents a battle-tested head start, though every borrowed trick must re-earn its keep under the new target's gate.
Datasets
Because this is a systems optimization paper rather than a model-training paper, traditional training datasets are not the focus. Instead, the authors evaluate EngineTailor across seven registered model–device–workload "boards" spanning cloud GPUs (NVIDIA SM100) and edge hardware (Jetson AGX Orin, Jetson AGX Thor, RTX 5070, Apple M1 Pro):
- Autoregressive LLMs: Qwen3-4B, Llama-3.1-8B, Qwen3.5-2B, and Qwen3-0.6B (evaluated on batch-one generation and concurrency-16 serving using sentinel, semantic, and teacher-forced token probes).
- Embodied Vision-Language-Action (VLA) models: Pi0.5 and Wall-OSS-0.5 (evaluated on single-chunk continuous action-tensor fidelity and latency).
- Interactive World Models: Oasis-500M (evaluated across a complete 200-frame interactive video rollout).
Key Insights and Ideas
- Software scope is an agentic hyperparameter: Giving the exact same agent (
Codex gpt-5.6-sol) the exact same ~\$81 compute budget yielded zero admitted improvements on SGLang (where 96.9% of tokens went to re-reading cached framework context), whereas on EngineTailor it unlocked 3.1x–4.1x short-prefill speedups. - Local micro-benchmarks lie—in both directions: In several fascinating stress tests, narrow checks disagreed with full-engine reality. A Pi0.5 attention swap ran 1.5x faster in isolation yet added 56.7 ms to end-to-end latency. Conversely, a Qwen normalization kernel that failed a local filter ended up slashing end-to-end decode latency by 24% once integrated!
- Plausibility is not fidelity: Comparing EngineTailor's strict gate against a baseline agentic serving system (VibeSys) revealed a subtle trap: a candidate that quietly aggressively quantized weights passed standard "does the text look coherent?" service checks, but failed EngineTailor's teacher-forced trajectory check. Without strict gates, agents silently trade accuracy for speed.
Key Results
EngineTailor improved performance across all seven targets on their respective boards:
- Edge VLA Robotics: On Jetson AGX Orin, Pi0.5 action latency dropped to 190.3 ms—43.0% lower than the specialized PhyAI engine (333.9 ms). On Jetson Thor, Wall-OSS latency fell by 54.0% (2.17x faster).
- Interactive World Models: Oasis-500M on SM100 sped up 23.3x, dropping from 612.5 ms/frame to 26.31 ms/frame.
- Cloud LLMs & Cross-Target Reuse: Qwen3-4B on SM100 beat SGLang decode latency by 24.4% at 4k context. Furthermore, taking a graph-boundary recipe learned on a VLA model and re-qualifying it on Qwen3-4B boosted concurrency-16 throughput by 51.2% (3,078.6 $\rightarrow$ 4,654.8 tok/s).
- Where peers still lead: On high-concurrency serving (c16) for Llama-3.1-8B, EngineTailor reached 3,465 tok/s, trailing SGLang's mature scheduler (4,171 tok/s) by 16.9%.
Limitations and Future Work
EngineTailor does not automatically carve a minimal engine out of HuggingFace or vLLM from scratch; humans (with coding-agent help) had to prepare each starting ~3K-line engine before the measured optimization budgets began. The authors hypothesize that the growing shared substrate will amortize this setup cost over time, though testing whether retrieval stays crisp as the library scales to hundreds of targets remains open future work. Additionally, robotics evaluations stop at numerical action-tensor fidelity rather than physical, closed-loop robot tasks, and the head-to-head budget audit against SGLang was limited to a single target configuration.
Summary updated