Compound AI Systems Optimization: A Survey of Methods, Challenges, and Future Directions
Yu-Ang Lee, Guan-Ting Yi, Mei-Yi Liu, Jui-Chao Lu, Guan-Bo Yang, Yun-Nung Chen
TL;DR
This paper tackles optimization of compound AI systems—composed of LLMs, tools, and retrieval modules—where many components are non-differentiable. It introduces a graph-based formalism, $\\Phi=(G,\\mathcal{F})$, with $G=(V,E)$ and conditional edges $c_{ij}$ that govern runtime topology, enabling end-to-end analysis of interactions. A 2×2 taxonomy over Structural Flexibility and Learning Signals is proposed to classify 26 surveyed works into four quadrants, guiding principled comparisons and future directions. The authors synthesize key trends, open challenges (e.g., computation, safety, library standardization), and provide an open repository to track developments in this rapidly evolving field.
Abstract
Recent advancements in large language models (LLMs) and AI systems have led to a paradigm shift in the design and optimization of complex AI workflows. By integrating multiple components, compound AI systems have become increasingly adept at performing sophisticated tasks. However, as these systems grow in complexity, new challenges arise in optimizing not only individual components but also their interactions. While traditional optimization methods such as supervised fine-tuning (SFT) and reinforcement learning (RL) remain foundational, the rise of natural language feedback introduces promising new approaches, especially for optimizing non-differentiable systems. This paper provides a systematic review of recent progress in optimizing compound AI systems, encompassing both numerical and language-based techniques. We formalize the notion of compound AI system optimization, classify existing methods along several key dimensions, and highlight open research challenges and future directions in this rapidly evolving field. A list of surveyed papers is publicly available at https://github.com/MiuLab/AISysOpt-Survey.
