TL;DR
Query-level agentic workflows—customized for every single input—are often an expensive overkill. This paper demonstrates that a small pool of high-quality task-level workflows can achieve nearly identical performance at a fraction of the cost. By introducing SCALE, a framework that replaces exhaustive execution-based evaluation with LLM self-prediction and minimal calibration, the authors slash token usage by up to 83% while maintaining 99.4% of the original performance.
What Problem Does This Paper Address?
In the world of Large Language Model (LLM) Multi-Agent Systems (MAS), "workflows" are the blueprints that dictate how different agents interact to solve a problem. Currently, there are two ways to build these:
- Task-level: Generate one optimized workflow for an entire dataset (e.g., "always use a coder agent followed by a reviewer").
- Query-level: Generate a unique workflow for every single question (e.g., "this specific math problem needs a calculator agent, but that one needs a logic agent").
While query-level approaches are highly adaptive, they are incredibly expensive to run at scale. Conversely, existing task-level optimization methods (like Aflow) are "token-hungry" during the design phase; they require executing every candidate workflow on a full validation set to see if it works. For complex benchmarks, this "training" phase can consume hundreds of millions of tokens. The authors ask: Is this massive cost actually necessary for high performance?
Methods
The authors propose SCALE (Self-prediction with few-shot CALibration for Evaluation), a low-cost framework for task-level workflow generation. Instead of running every candidate workflow on every validation query, SCALE uses a two-stage process:
- Warm-up Stage: A brief period of traditional search (using Monte Carlo Tree Search) where workflows are fully executed to gather baseline statistics.
- Surrogate Evaluation Stage: This is the core innovation. Instead of full execution, the system uses the LLM optimizer to predict its own workflow's success ($S_{pred}$). To keep these predictions honest, SCALE runs the workflow on a tiny subset (1–3%) of the validation data ($S_{few}$).
- Adaptive Calibration: SCALE combines the prediction and the few-shot results. If the LLM’s self-prediction differs significantly from the few-shot reality, the system automatically increases the weight of the real execution data to correct for overconfidence.
Datasets
The framework was evaluated across six diverse benchmarks:
- DROP & HotpotQA: Reading comprehension and multi-hop reasoning.
- GSM8K & MATH: Mathematical word problems of varying difficulty.
- HumanEval & MBPP: Python code generation and program synthesis.
Key Insights and Ideas
- The Query-Level Myth: The authors found that a "Top-5" set of task-level workflows often covers as many correct answers as a fully customized query-level system. Much of the "gain" in query-level methods actually comes from stochasticity (trying different paths) rather than the inherent need for a unique structure for every query.
- Evaluation is the Bottleneck: In search-based workflow generation, evaluation (testing the workflow) accounts for the vast majority of token costs, not the generation of the workflow itself.
- LLMs as Self-Critics: LLMs are surprisingly good at predicting whether a workflow they designed will succeed, provided they are given "reference experiences" from previous rounds to calibrate their judgment.
- Diminishing Returns: Exhaustive validation quickly hits a plateau. After a few rounds of search, the massive token expenditure for full-set validation yields negligible performance improvements.
Key Results
- Massive Efficiency: SCALE reduced total token consumption by 54% to 83% across all benchmarks compared to the state-of-the-art Aflow.
- Negligible Performance Drop: Despite the huge cost savings, the average performance degradation was only 0.61%. In the MBPP coding benchmark, SCALE actually improved performance by 0.58%.
- Reliable Proxies: The calibrated surrogate score achieved a Pearson correlation of 0.52 with true execution scores, proving it is a reliable and much cheaper way to rank candidate workflows during the search process.
Limitations and Future Work
The authors acknowledge that SCALE is still primarily a task-level approach. While it is highly efficient, it has not yet fully integrated the "fine-grained adaptability" of query-level methods—essentially, it doesn't yet know how to pick the perfect workflow from its Top-K pool for a specific, difficult query. Additionally, the study did not explore cross-domain generalization, or how a workflow optimized for math might perform (or fail) when shifted to a coding task. Future work may focus on "hybrid" models that combine SCALE's efficiency with lightweight query-level routing.
Summary updated