Difficulty-Aware Agent Orchestration in LLM-Powered Workflows

Jinwei Su, Yinghui Xia, Qizhen Lan, Xinyuan Song, Chen Chen, JingSong Yang, Lewei He, Tianyu Shi · OpenReview

Abstract

Large Language Model (LLM)-based agentic systems have shown strong capabilities across various tasks. However, existing multi-agent frameworks often rely on static or task-level workflows, which either over-process simple queries or underperform on complex ones, while also neglecting the efficiency-performance trade-offs across heterogeneous LLMs. To address these limitations, we propose Difficulty-Aware Agentic Orchestration (DAAO), which can dynamically generate query-specific multi-agent workflows guided by predicted query difficulty. DAAO comprises three interdependent modules: a variational autoencoder (VAE) for difficulty estimation, a modular operator allocator, and a cost- and performance-aware LLM router. A self-adjusting policy updates difficulty estimates based on workflow success, enabling simpler workflows for easy queries and more complex strategies for harder ones. Experiments on six benchmarks demonstrate that DAAO surpasses prior multi-agent systems in both accuracy and inference efficiency, validating its effectiveness for adaptive, difficulty-aware reasoning.

Introduction

Current Large Language Model (LLM) agent frameworks typically rely on static or task-level workflows. This "one-size-fits-all" approach means that a system designed for a specific domain, such as mathematical reasoning, uses the same complex multi-agent pipeline for a simple arithmetic problem as it does for a multi-step calculus proof. This leads to two major inefficiencies: over-processing, where simple queries waste expensive tokens and increase latency, and under-performance, where complex queries lack the specialized operators needed for success.

Furthermore, most existing frameworks are LLM-homogeneous, using a single powerful backbone for every agent. This ignores the potential performance-cost benefits of routing simpler sub-tasks to smaller, more efficient models. To solve these challenges, we introduce Difficulty-Aware Agentic Orchestration (DAAO), a framework that dynamically generates custom multi-agent workflows for every individual query.

Methodology

DAAO consists of three interdependent modules that collaborate to build a query-specific Directed Acyclic Graph (DAG) of agents:

  1. Difficulty-Aware VAE ($N_{\theta_d}$): This module encodes the input query into a latent space and decodes a scalar difficulty score ($d$). This score is not manually labeled; instead, the system uses a self-adjusting policy where difficulty estimates are updated based on whether the generated workflow successfully solves the query.
  2. Modular Operator Allocator ($N_{\theta_o}$): Using the difficulty score, this module determines the depth (number of layers) and width (number of parallel agents) of the workflow. It selects from a pool of operators—such as Chain-of-Thought (CoT), Debate, ReAct, and Self-Refine—using a Mixture-of-Experts (MoE) style selection process.
  3. Cost- and Performance-Aware LLM Router ($N_{\theta_m}$): Instead of a single model, DAAO assigns specific LLMs (e.g., GPT-4o-mini, Llama-3.1-70B, Qwen-2-72B) to each operator, balancing reasoning needs against a computational budget.
The DAAO architecture showing the flow from query difficulty estimation to workflow generation and feedback.

Adaptive Workflow Scaling

A core innovation of DAAO is treating difficulty as a learnable latent variable. By observing its own success and failure rates, the system calibrates resource expenditure over time without human-annotated labels. For an "Easy Query," the system might trigger only a single Chain-of-Thought agent. For a "Hard Query," it might trigger multiple layers involving debate, refinement, and ensembling.

An example of a medium-difficulty query where DAAO generates a three-layer workflow involving CoT, ReAct, and Refine operators.

Experimental Results

The framework was evaluated across six diverse benchmarks, including GSM8K/MATH (mathematical reasoning), HumanEval/MBPP (code generation), MMLU (general knowledge), and GAIA (tool usage).

Performance and Efficiency

DAAO outperformed existing automated orchestration methods, such as AFlow and MaAS, by 3.5% to 15.2% across benchmarks. On the difficult MATH dataset, it achieved a best-in-class score of 55.37%. Beyond accuracy, DAAO demonstrated extreme cost efficiency. Compared to the state-of-the-art AFlow, DAAO reduced training costs by approximately 90% and inference costs by 84%. For example, on the MATH benchmark, DAAO's total cost was $2.61 compared to AFlow's $24.16.

Generalization and Heterogeneity

The system showed strong inductive ability, generalizing to unseen LLM backbones like DeepSeek-v3 and transferring knowledge across domains (e.g., training on MATH improved performance on GSM8K). The results confirm that routing sub-tasks to a mix of models is superior to using a single "super-model," achieving better results at a fraction of the cost.

Conclusion

DAAO addresses the limitations of static agent workflows by introducing a dynamic, difficulty-aware orchestration framework. By learning to calibrate complexity and routing tasks to heterogeneous LLMs, it achieves superior performance and efficiency. Future work will focus on expanding the operator pool for multimodal queries and incorporating real-time feedback to adjust workflows during execution.

Summary updated

BibTeX
@inproceedings{su2026difficulty,
  author = {Jinwei Su and Yinghui Xia and Qizhen Lan and Xinyuan Song and Chen Chen and JingSong Yang and Lewei He and Tianyu Shi},
  title = {{Difficulty-Aware Agent Orchestration in LLM-Powered Workflows}},
  booktitle = {The Web Conference},
  year = {2026},
  doi = {10.1145/3774904.3792240},
}
Figure