Dependency-Aware Task Decomposition and Parallel Multi-LLM Execution on Serverless Workflows
Abstract
Complex LLM tasks are increasingly solved by splitting them into dependent subtasks, yet these subtasks are usually executed sequentially by a single strong model. This inflates latency, since independent subtasks wait on one another, and cost, since simple subtasks are over-provisioned with an expensive model. We present RouteFlow, a serverless framework that decomposes a task into a dependency graph, assigns each subtask to a strong, medium or lightweight LLM according to the type of computation it performs, and executes the graph as a serverless workflow in which independent subtasks run in parallel. We evaluate RouteFlow on 100 LongCoT chemistry problems of easy, medium and hard difficulty, using each problem's own decomposition, against two baselines that use GPT-5.2 for every subtask, one sequential and one parallel. Running independent subtasks in parallel reduces end-to-end latency by 22%. Also assigning simpler subtasks to the medium and lightweight models raises the speedup to 1.47x over sequential execution and reduces cost by 7-9% compared with the parallel baseline and by 2-4% compared with the sequential one, while solving about as many tasks (15-16 of 100 in every configuration).
Create a lesson
Metadata
- Categories
- cs.DC, cs.AI
- Comments
- 6 pages, 3 figures, 4 tables. Accepted at the Second International Workshop on AI and Serverless (WoAIS '26), co-located with ACM/IFIP Middleware 2026, Tarragona, Spain
Related papers
Activation-Aware Balancing of Fused CPU and GPU Expert Execution for Offline MoE Inference
Shared title terminologycs.DCBorui Xu, Weihao Cui, Yao Chen et al.
Memory-Aware Scheduling of Large Task Graphs
Shared title terminologycs.DCIoannis Lamprou, Panagiotis Xanthopoulos, Etienne Filhol et al.
ModelLess: A Serverless System for Multi-Tier LLM Inference on Shared GPUs
Shared title terminologycs.DCDing Shi, Wei Wu, Jiayuan Chen et al.
Reliability-aware AI Agent Execution in Collaborative Edge Computing: A World Model Approach
Shared title terminologycs.DCXiangchun Chen, Jiannong Cao, Longxiang Gao et al.
Torcalia.jl: An MPI-based Runtime System for Asynchronous Task Parallelism in Julia
Shared title terminologycs.DCArgiris Sofotasios, Dimitris Metaxakis, Chrysostomos Stylios et al.
Contention-Aware Flexible Execution for Machine Learning Workloads
Shared title terminologycs.DCMarco Kurzynski, Shaizeen Aga, Di Wu