AICLFeb 1, 2025

Understanding and Optimizing Agentic Workflows via Shapley value

arXiv:2502.00510v37 citationsh-index: 14
AI Analysis

This work addresses the problem of systematically optimizing complex AI systems for researchers and practitioners, offering a novel method but with incremental improvements in attribution.

The paper tackled the challenge of analyzing and optimizing agentic workflows by introducing ShapleyFlow, a framework using cooperative game theory to attribute component contributions and identify optimal configurations, demonstrating consistent outperformance over single LLM workflows across 7 scenarios and over 1,500 tasks.

Agentic workflows have become the dominant paradigm for building complex AI systems, orchestrating specialized components, such as planning, reasoning, action execution, and reflection, to tackle sophisticated real-world tasks. However, systematically analyzing and optimizing these workflows remains challenging due to intricate component interdependencies and the lack of principled attribution methods. In this work, we introduce ShapleyFlow, the first framework that employs cooperative game theory to analyze and optimize agentic workflows. By applying the Shapley value to evaluate all possible component configurations, ShapleyFlow enables fine-grained attribution of each component's contribution and facilitates the identification of task-specific optimal configurations. Through a constructed dataset evaluated across 7 scenarios, such as navigation, math and OS, we demonstrate 3 key contributions: (1) Theoretical Framework: a principled game-theoretic approach for the attribution of contributions in agentic workflows. (2) Optimal Workflow Discovery: ShapleyFlow identifies task-specific component configurations that consistently outperform workflows relying on a single LLM across all tested tasks. (3) Comprehensive Analysis: we construct and analyze over 1,500 tasks, providing actionable insights and design guidelines for optimizing workflows across multiple domains.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes