← Back to Paper Radar

Archived This paper is outside Paper Radar's one-year feed. More archived papers

Batch Query Processing and Optimization for Agentic Workflows

Junyi Shen, Noppanat Wadlom, Yao Lu
arXiv.org | 2025

Reading guide · Based on sections of the original paper

The authors present Halo, a single-server runtime that treats batches of agentic LLM workflows as query-plan DAGs. It jointly schedules GPU LLM calls and CPU tool calls with a state-aware cost model and an epoch-based dynamic-programming solver, reusing models and KV caches and merging duplicate tool calls.

Why read this

This is for practitioners running many structurally similar LLM-plus-SQL/API pipelines on a multi-GPU box who want to know where cross-workflow scheduling and deduplication actually pay off.

What the authors found

  • The authors ran end-to-end batch latency tests with 1,024 queries on six synthetic DAGs. Against LangGraph, AgentScope and Parrot, Halo's lead was 1.03–2.6× on W1–W4 and 2.4–3.6× on the redundancy-heavy TPC-H workflows (W5, W6), which the authors attribute to merging duplicate I/O. Against stage-wise OpWise it was 2.4× on W1 (676s vs 1595s) and 1.6× on W6. The >400× figure is against serial query-by-query vLLM, not a batched baseline. 6.2. End-to-End Benchmarks
  • In the ablation, removing request coalescing raised latency by 154% on W6 but only 16% on W1. Removing opportunistic execution cost 56% on W6 and 1% on W1. The size of the gains therefore depends strongly on workflow redundancy and topology. 6.5. Ablation Study
  • With 256 queries, the DP scheduler's latency was within about 0.5% of a MILP oracle. It planned in 2.24s versus 1.44h on W1, and in 1.15s versus 172.84s on W6. Greedy HEFT reached 1.41× normalized latency on W6. 6.3. Optimality Analysis

Main limitation

All results come from synthetic DAGs on a single three-H200 server, with each workload capped at three models to suit the baselines. The workloads are designed to contain repeated SQL, so gains on real workflows with less redundancy are untested. Output quality is argued from semantic equivalence rather than measured. 6.1. Setup

Where to start

6.5. Ablation Study · Check which mechanisms drive the speedups on each topology, to judge whether your workflow's redundancy and shape resemble W1 or W6.

Abstract

Large Language Models (LLMs) in agentic workflows combine multi-step reasoning, heterogeneous tool use, and collaboration across multiple specialized agents. Existing LLM serving engines optimize individual calls in isolation, while multi-agent frameworks focus on orchestration without system-level performance planning. As a result, repeated prompts, overlapping contexts, and fragmented CPU-GPU execution create substantial redundancy and poor hardware utilization, especially in batch analytics scenarios. We introduce Halo, a system that brings batch query processing and optimization into agentic LLM workflows. Halo represents each workflow as a structured query plan DAG and constructs a consolidated graph for batched queries that exposes shared computation. Guided by a cost model that jointly considers heterogeneous resource constraints, prefill and decode costs, cache reuse, and GPU placement, Halo performs plan-level optimization to minimize redundant execution. The Processor integrates adaptive batching, KV-cache sharing and migration, along with fine-grained CPU-GPU pipelining to maximize holistic hardware efficiency. Evaluation across six benchmarks shows that Halo achieves up to 3.6x speedup for batch inference and 2.6x throughput improvement under online serving, scaling to workloads of thousands of queries and complex graphs. These gains are achieved without compromising output quality. By unifying query optimization with heterogeneous LLM serving, Halo enables efficient agentic workflows in data analytics and decision-making applications.

Generated automatically from paper sections on 2026-11-28.