RA-MoWE: Workflow-Affinity Embeddings for Query Clustering and Agentic Workflow Generation
Qi Cheng, Shengyu Chen, Wei Cheng, Yiqun Xie, Haoyu Wang, Haifeng Chen, Xiaowei Jia
Key points
From the paper's conclusion- On a 300-query test set drawn from four benchmarks spanning mathematics, science, and programming, RA-MoWE improves average task score by 4.04 percentage points over selecting among the reference workflows, while using 27.7% fewer language-model calls at inference.
Abstract
Agentic workflows enable large language models (LLMs) to solve complex tasks by coordinating reasoning, tool use, and verification. However, a workflow optimized for an entire task collection can overlook differences in the reasoning strategies that individual queries need, while searching for a new workflow for every query repeats costly optimization. To address this tradeoff, we introduce RA-MoWE, a framework that uses workflow-affinity embeddings to cluster queries and guide the generation of reusable expert workflows. Each embedding records how well a fixed set of reference workflows solves a query, revealing similarities in which reasoning strategies are effective. RA-MoWE uses each cluster's queries and average embedding to initialize and refine a specialized workflow through execution feedback. An embedding encoder predicts these embeddings from query text, allowing new queries to select a generated expert without first executing the reference workflows. On a 300-query test set drawn from four benchmarks spanning mathematics, science, and programming, RA-MoWE improves average task score by 4.04 percentage points over selecting among the reference workflows, while using 27.7% fewer language-model calls at inference.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- WorkflowOps: Learning Agent Collaboration Priors for Multi-Agent Workflow OrchestrationarXiv · 2026
- CB-Orchestrator: Adaptive Workflow Optimization for LLM Agents via Contextual BanditsarXiv · 2026
- AgentPRO: Coordinating Compiler Optimizations for LLM Agent WorkflowsarXiv · 2026
- FlowMaker: From Tasks to Cost-Efficient Generative AI Workflow DeploymentsarXiv · 2026
- WorkflowArena: Benchmarking Executable Workflow Orchestration in LLM-Based Multi-Agent SystemsarXiv · 2026
- El Agente Gráfico: A Semantic Execution Runtime for Scientific AgentsOpen MIND · 2026