Dependency-Aware Task Decomposition and Parallel Multi-LLM Execution on Serverless Workflows
–arXiv.org Artificial Intelligence
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).
arXiv.org Artificial Intelligence
Dec-2-2026