AgentFactory: Towards Automated Agentic System Design and Optimization

📅 2026-09-01
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
为解决手动设计和优化代理系统效率低下的问题,AgentFactory通过联合优化基础模型和工作流程结构,并考虑性能、成本及效率等多目标,利用先进的大语言模型作为优化器自动发现有效组合。
📝 Abstract
Large Language Models (LLMs) have demonstrated remarkable capabilities as powerful components in agentic systems, enabling sophisticated reasoning and complex task execution. However, current approaches to manually designing and optimizing agentic systems heavily rely on manual effort, limiting their adaptability and scalability. Recent work has explored the automated optimization of workflow designs. However, these approaches often overlook the crucial role of model capabilities and focus on single performance metrics, failing to address real-world deployment constraints. In this paper, we present AgentFactory, a framework that jointly optimizes both foundation models and workflow structures in agentic systems while considering multiple objectives including performance, cost, and efficiency. AgentFactory leverages advanced LLMs as optimizers to navigate the vast search space of possible configurations, employing a three-stage optimization pipeline to automatically discover effective combinations of fine-tuned models and optimized workflows. Through an iterative optimization process, our framework systematically explores and evaluates different agentic system designs, adapting to task-specific requirements while maintaining operational efficiency. We evaluate AgentFactory across eight benchmarks spanning five domains, including general reasoning, coding, mathematics, medicine, and finance. Our experiments demonstrate that AgentFactory consistently outperforms both manually designed methods and existing automated approaches, achieving an average improvement of 9.1% across all benchmarks, with particularly significant gains in domain-specific tasks (19.6% on MedQA and 18.7% on FinEval). These results establish AgentFactory as a promising approach for developing more capable and efficient agentic systems through automated optimization.
Problem

Research questions and friction points this paper is trying to address.

Agentic Systems
Automated Optimization
Large Language Models
Workflow Design
Deployment Constraints
Innovation

Methods, ideas, or system contributions that make the work stand out.

Automated Optimization
Agentic Systems
Foundation Models
Workflow Structures
Multi-Objective
💼 Related Jobs
No related jobs found.
E
Enci Zhang
Peking University Shenzhen Graduate School, Shenzhen, China
H
Haofeng Wang
Peking University Shenzhen Graduate School, Shenzhen, China
Yuesheng Zhu
Yuesheng Zhu
Peking University
Intelligent security
X
Xiaole Cui
Peking University Shenzhen Graduate School, Shenzhen, China
Guibo Luo
Guibo Luo
Peking University
medical imagingprivacy computing