mlsanityData to 7 Oct 2026

Batch Query Processing and Optimization for Agentic Workflows

arXiv 2509.02121 ↗First posted 2 Sep 2025cs.DB cs.DCcited by 6

On the map: Efficient LLM inference and serving → Efficient reasoning and agent inference

Abstract (arXiv)

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.

Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Placed in Efficient reasoning and agent inference, one of 12 directions in Efficient LLM inference and serving. Builds on 59 of its 130 references that are in the map. First posted on arXiv 2 Sep 2025.

Builds on

59 of 130 references.

Closest ancestors · 3

Same direction, newest first

  1. 2025KVFlow: Efficient Prefix Caching for Accelerating LLM-Based Multi-Agent Workflows10 Jul
  2. 2025Autellix: An Efficient Serving Engine for LLM Agents as General Programs19 Feb
  3. 2024DroidSpeak: KV Cache Sharing for Cross-LLM Communication and Multi-LLM Serving5 Nov

Other references · 56

  1. 2017Attention Is All You Needcited by 59,932
  2. 2024The Llama 3 Herd of Modelscited by 14,192
  3. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  4. 2021Training Verifiers to Solve Math Word Problemscited by 9,743
  5. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
  6. 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
  7. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
  8. 2025Qwen3 Technical Reportcited by 8,195
  9. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
  10. 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
  11. 2016Simple and Scalable Predictive Uncertainty Estimation using Deep Ensemblescited by 3,888
  12. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
38 more
  1. 2023Generative Agents: Interactive Simulacra of Human Behaviorcited by 3,500
  2. 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,413
  3. 2023AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversationcited by 1,906
  4. 2022GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformerscited by 1,838
  5. 2022Fast Inference from Transformers via Speculative Decodingcited by 1,615
  6. 2025Search-R1: Training LLMs to Reason and Leverage Search Engines with Reinforcement Learningcited by 1,371
  7. 2023HuggingGPT: Solving AI Tasks with ChatGPT and its Friends in Hugging Facecited by 1,173
  8. 2023SGLang: Efficient Execution of Structured Language Model Programscited by 1,107
  9. 2023DSPy: Compiling Declarative Language Model Calls into Self-Improving Pipelinescited by 803
  10. 2023Splitwise: Efficient generative LLM inference using phase splittingcited by 536
  11. 2017Ray: A Distributed Framework for Emerging AI Applicationscited by 516
  12. 2023SpecInfer: Accelerating Generative Large Language Model Serving with Tree-based Speculative Inference and Verificationcited by 359
  13. 2025EAGLE-3: Scaling up Inference Acceleration of Large Language Models via Training-Time Testcited by 318
  14. 2023Prompt Cache: Modular Attention Reuse for Low-Latency Inferencecited by 255
  15. 2025Small Language Models are the Future of Agentic AIcited by 254
  16. 2024LLM Agents Grounded in Self-Reports Enable General-Purpose Simulation of Individualscited by 235
  17. 2024Bridging Language and Items for Retrieval and Recommendation: Benchmarking LLMs as Semantic Encoderscited by 213
  18. 2024CacheBlend: Fast Large Language Model Serving for RAG with Cached Knowledge Fusioncited by 211
  19. 2023CacheGen: KV Cache Compression and Streaming for Fast Large Language Model Servingcited by 199
  20. 2024TradingAgents: Multi-Agents LLM Financial Trading Frameworkcited by 182
  21. 2025Beyond Ten Turns: Unlocking Long-Horizon Agentic Search with Large-Scale Asynchronous RLcited by 144
  22. 2024AgentScope: A Flexible yet Robust Multi-Agent Platformcited by 120
  23. 2024Parrot: Efficient Serving of LLM-based Applications with Semantic Variablecited by 96
  24. 2019Neo: A Learned Query Optimizercited by 80
  25. 2020MLIR: A Compiler Infrastructure for the End of Moore's Lawcited by 64
  26. 2025PathRAG: Pruning Graph-based Retrieval Augmented Generation with Relational Pathscited by 60
  27. 2020Heterogeneity-Aware Cluster Scheduling Policies for Deep Learning Workloadscited by 56
  28. 2024DocETL: Agentic Query Rewriting and Evaluation for Complex Document Processingcited by 49
  29. 2025AutoAgent: A Fully-Automated and Zero-Code Framework for LLM Agentscited by 49
  30. 2020HetPipe: Enabling Large DNN Training on (Whimpy) Heterogeneous GPU Clusters through Integration of Pipelined Model Parallelism and Data Parallelismcited by 46
  31. 2024Project Sid: Many-agent simulations toward AI civilizationcited by 46
  32. 2018BlazeIt: Optimizing Declarative Aggregation and Limit Queries for Neural Network-Based Video Analyticscited by 41
  33. 2024A Declarative System for Optimizing AI Workloadscited by 35
  34. 2024Teola: Towards End-to-End Optimization of LLM-based Applicationscited by 32
  35. 2024Semantic Operators: A Declarative Model for Rich, AI-based Data Processingcited by 29
  36. 2024Optimizing LLM Queries in Relational Data Analytics Workloadscited by 20
  37. 2025AgentScope 1.0: A Developer-Centric Framework for Building Agentic Applicationscited by 16
  38. 2024AI Metropolis: Scaling Large Language Model-based Multi-Agent Simulation with Out-of-order Executioncited by 14

50 most cited of 56 All 56 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 6.

6 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026FlowBank: Query-Adaptive Agentic Workflows Optimization through Precompute-and-Reuse
  2. 2026AAFLOW: Scalable Patterns for Agentic AI Workflows
  3. 2026Pythia: Exploiting Workflow Predictability for Efficient Agent-Native LLM Serving
  4. 2026Scepsy: Serving Agentic Workflows Using Aggregate LLM Pipelines
  5. 2026From Static Templates to Dynamic Runtime Graphs: A Survey of Workflow Optimization for LLM Agents
  6. 2026APWA: A Distributed Architecture for Parallelizable Agentic Workflows
  7. 2026SAGA: Workflow-Atomic Scheduling for AI Agent Inference on GPU Clusters
  8. 2026[AAFLOW+] Stateful Operator Abstraction with Zero-Copy Distributed KV Cache Orchestration for Multi-Agent Workflows