TL;DR
The paper introduces Dyserve, a workflow-aware serving layer designed specifically for agentic AI applications structured as Directed Acyclic Graphs (DAGs). By jointly optimizing model selection and verification policies at admission time and employing a precomputed "strategy ladder" at runtime, Dyserve achieves up to 10 points higher accuracy at 1.1× to 6.8× lower latency compared to traditional serving baselines.
What Problem Does This Paper Address?
Modern AI agents rarely rely on a single LLM call. Instead, frameworks like LangGraph or AutoGen orchestrate complex workflows containing multiple dependent LLM queries and tool executions.
Currently, a major optimization gap exists between two layers of the stack:
- Agent Frameworks: They understand the logical workflow structure but are blind to backend server loads.
- Model-Serving Engines (e.g., vLLM): They efficiently schedule individual LLM requests but treat them as isolated inputs, completely unaware of the broader workflow context.
Because of this disconnect, systems cannot make joint decisions about which model size (e.g., 4B vs. 27B) or verification strategy (e.g., self-consistency, voting) to use for a specific node based on its position in the graph and the live server congestion.
Methods
Dyserve acts as an intermediary layer that treats the entire workflow—rather than a single LLM call—as the unit of optimization. It operates in two main phases:
1. Admission-Time Policy Compilation
When a workflow request arrives, Dyserve models the choice of model and verifier for every node as an Integer Linear Program (ILP).
- Skill-Conditioned Profiling: Instead of relying on volatile wall-clock latencies, Dyserve profiles hardware-independent token demands across different skills (e.g., code, math, reasoning).
- Topology & Vulnerability Weighting: The ILP prioritizes allocating stronger models and heavier verification to critical "high-reach" nodes (like early planning steps) whose errors would catastrophically propagate downstream.
2. Runtime Repair and Adaptation
To keep the system responsive under heavy multi-tenant traffic, Dyserve avoids running an expensive ILP solver on the live execution path:
- The Strategy Ladder: At admission, Dyserve pre-solves the ILP at multiple cluster pressure levels. If backend queues congest, a hysteresis controller dynamically swaps the uncommitted suffix of the workflow to a lower-demand strategy via a simple pointer swap.
- Event-Driven Recovery: If a tool call fails during execution, Dyserve performs a one-time residual re-solve on the remaining unexecuted nodes, incorporating the failure error as diagnostic feedback.
Datasets
The authors evaluated Dyserve across four diverse agentic benchmarks:
- LiveCodeBench (LCB): For code generation tasks.
- GAIA: For multi-step reasoning and tool use.
- ComplexFuncBench (CFB): For complex function-calling scenarios.
- SWE-bench: For repository-level software engineering.
To build the reusable, hardware-portable skill profiles, they utilized held-out probe datasets including HumanEval+, MBPP+, MATH-500, AIME24/25, GPQA-Diamond, and MMLU-Pro.
Key Insights and Ideas
- Resource Elasticity & Axis Coupling: Model choice and verification are highly substitutable. For instance, a small 4B model paired with a verifier can match the accuracy of an unverified 27B model but with a completely different cost/latency profile. They must be optimized jointly.
- Vulnerability $\neq$ Topology: A node's importance isn't dictated solely by its position in the graph. Counterfactual fault injection revealed that a math node at the leaf level can cause a massive drop in final correctness, whereas a code node at the same position has almost zero downstream impact.
Key Results
- Frontier Performance: Dyserve achieved the highest accuracy across all four benchmarks, outperforming the highest-accuracy baselines by 3 to 10 accuracy points while delivering 1.1× to 6.8× lower latency.
- Burst Resilience: Under heavy multi-tenant traffic bursts, Dyserve's strategy ladder successfully defended the system's Service Level Objectives (SLOs). It restored an oversubscribing plan's tail latency from 823 seconds down to 136 seconds, boosting SLO goodput from 18.1% to 67.2%.
- Fault Tolerance: The event-driven recovery mechanism rescued 84% of injected tool failures, compared to just 55% achieved by a standard flat retry strategy.
- Low Overhead: The full admission compilation takes under 60 milliseconds at the 95th percentile, making it highly practical for production deployment.
Limitations and Future Work
While highly effective, the authors note a few limitations:
- Static DAG Assumption: Dyserve requires the workflow structure to be materialized at admission. Workflows with highly dynamic graph expansions (where the DAG structure changes mid-execution based on LLM outputs) currently require triggering a brand-new compilation instance.
- Scale of Evaluation: The current implementation was validated on single-node, four-GPU heterogeneous fleets. Testing on massive, multi-node cluster fleets remains an open direction.
- Skill Tagging: The optimization quality relies on accurate dominant-skill tagging for workflow nodes at design time.
Summary updated