Dyserve: Dynamic Strategy Generation for Agent Serving

Jiayi Qian, Zishen Wan, Hanchen Yang, Souvik Kundu, Tushar KrishnaSCALE @ ICML 2026

TL;DR

Dyserve is a framework that dynamically optimizes LLM agent workflows by using Integer Linear Programming (ILP) to select the best combination of models and verifiers for every step of a task. By treating the serving strategy as a structured optimization problem, it matches the accuracy of "verify-everything" approaches while delivering a staggering 10x reduction in latency.

What Problem Does This Paper Address?

Building reliable AI agents usually requires "agentic workflows"—sequences of LLM calls, tool uses, and verification steps (like self-reflection or multi-agent debate). However, these workflows face a fundamental "efficiency-accuracy" trade-off.

Currently, developers usually commit to a fixed pipeline: either they use a massive, slow model for everything, or they add expensive verification steps at every node to prevent errors from propagating. This is structurally suboptimal. A simple retrieval task doesn't need the same level of scrutiny as a complex code synthesis step. Furthermore, runtime conditions change—a server might get congested, or a tool might time out. Static workflows can't adapt to these shifts, leading to wasted compute or avoidable failures.

Methods

The authors introduce Dyserve, which moves away from "hand-written" workflows toward "generated" serving strategies. The system consists of three main pillars:

  1. Workflow Abstraction: It represents an agentic task as a Directed Acyclic Graph (DAG). Each node in the graph isn't just a single call; it’s a decision point where the system can choose a specific model (e.g., a small 4B model vs. a larger 27B model) and a verification policy (e.g., self-consistency, LLM-as-a-judge, or no verification at all).
  2. Profile-based ILP Solver: To decide which options to pick, Dyserve uses an Integer Linear Program (ILP). It uses offline profiling data—which measures how different (model, verifier, task-type) combinations perform in terms of accuracy and token count—to solve for the optimal "subgraph." The objective is to maximize accuracy while penalizing latency, guided by Lagrangian weights.
  3. Event-driven Suffix Repair: This is the "dynamic" part. If a high-impact event occurs during execution—such as a verifier flagging an error or a sudden spike in system load—Dyserve triggers a "suffix repair." It re-solves a smaller ILP for the remaining parts of the workflow, adapting the strategy on the fly based on the new system state.

Datasets

The researchers evaluated Dyserve primarily on LiveCodeBench (focusing on medium and hard problems).

To build the offline profiles that drive the ILP, they used a diverse set of benchmarks across three categories:

  • Code: HumanEval+ and MBPP+.
  • Math: MATH-500, AIME24, and AIME25.
  • Reasoning: GPQA-Diamond and MMLU-Pro.

Key Insights and Ideas

  • The Substitution Effect: One of the most powerful insights is that model strength and verification are often substitutes. A high-vulnerability task might reach the same accuracy using a massive model alone or a smaller model paired with a multi-round debate verifier. Dyserve identifies the cheaper path to the same result.
  • Topology-Aware Vulnerability: Not all nodes in a workflow are equally important. The authors found that "root" (initial planning) and "leaf" (final output) nodes are often more vulnerable. By weighting these nodes more heavily in the ILP, Dyserve knows exactly where to spend its "latency budget" for maximum accuracy gain.
  • Joint Optimization is Mandatory: The paper demonstrates that you cannot optimize the model choice and the verifier choice separately. The "best" verifier depends entirely on which model produced the initial candidate, and vice versa.

Key Results

  • 10x Latency Reduction: On LiveCodeBench, Dyserve matched the accuracy of the strongest "verify-all" baseline (0.74 vs 0.76) but did so in 37.2 seconds compared to the baseline's 383.4 seconds.
  • Pareto Dominance: Dyserve consistently outperformed fixed-model baselines. For instance, it beat a standard 27B model baseline by 2 percentage points in accuracy while actually reducing latency.
  • Efficiency at Scale: The ILP solver is incredibly lightweight, resolving in less than 100ms per request, making it feasible for production environments where millisecond overheads matter.

Limitations and Future Work

  • Suffix Repair Evaluation: While the "suffix repair" (dynamic re-planning) mechanics are implemented and unit-tested, the paper notes that a full empirical evaluation of this feature under various load-shift scenarios is still "ongoing."
  • Operator Interactions: The current profiling treats each node somewhat independently. Future work aims to capture "operator-interaction effects," where the choice made at one node might fundamentally change the accuracy profile of a downstream node.
  • Expanded Decision Space: The authors plan to fold more complex behaviors like speculative execution and sophisticated retry/escalation logic directly into the ILP objective function.

Summary updated

BibTeX
@inproceedings{qian2026dyserve,
  author = {Jiayi Qian and Zishen Wan and Hanchen Yang and Souvik Kundu and Tushar Krishna},
  title = {{Dyserve: Dynamic Strategy Generation for Agent Serving}},
  booktitle = {SCALE @ ICML},
  year = {2026},
  url = {https://openreview.net/forum?id=OsglQqiMQC},
}
Figure