APIGen-MT: Agentic Pipeline for Multi-Turn Data Generation via Simulated Agent-Human Interplay

Akshara Prabhakar, Zuxin Liu, Weiran Yao, Jianguo Zhang, Ming Zhu, Shiyu Wang, Zhiwei Liu, T. Awalgaonkar, Haolin Chen, Thai Hoang, Juan Carlos Niebles, Shelby Heinecke, Huan Wang, Silvio Savarese, Caiming Xiong

arXiv:2504.03601 · 2026-08-15 공개 · arXiv · PDF

synthetic-data multi-turn agentic-pipeline tau-bench xlam-2-fc-r bfcl-benchmark blueprint-to-details api-gen-mt

Abstract

Training effective AI agents for multi-turn interactions requires high-quality data that captures realistic human-agent dynamics, yet such data is scarce and expensive to collect manually. We introduce APIGen-MT, a two-phase framework that generates verifiable and diverse multi-turn agent data. In the first phase, our agentic pipeline produces detailed task blueprints with ground-truth actions, leveraging a committee of LLM reviewers and iterative feedback loops. These blueprints are then transformed into complete interaction trajectories through simulated human-agent interplay. We train a family of models -- the xLAM-2-fc-r series with sizes ranging from 1B to 70B parameters. Our models outperform frontier models such as GPT-4o and Claude 3.5 on $\tau$-bench and BFCL benchmarks, with the smaller models surpassing their larger counterparts, particularly in multi-turn settings, while maintaining superior consistency across multiple trials. Comprehensive experiments demonstrate that our verified blueprint-to-details approach yields high-quality training data, enabling the development of more reliable, efficient, and capable agents. We open-source 5K synthetic data trajectories and the trained xLAM-2-fc-r models to advance research in AI agents. Models at https://huggingface.co/collections/Salesforce/xlam-2-67ef5be12949d8dcdae354c4; Dataset at https://huggingface.co/datasets/Salesforce/APIGen-MT-5k and Website at https://apigen-mt.github.io

한국어 요약

한 줄 요약

APIGen-MT는 시뮬레이션된 인간-에이전트 상호작용을 통해 생성된 5K의 신뢰성 높은 다중 턴 데이터로 xLAM-2-fc-r 모델을 학습시켜 기존 모델을 능가한다.

핵심 기여도

핵심 아이디어

APIGen-MT는 기존 단일 턴 중심의 데이터 생성 방식의 한계를 극복하기 위해, **다중 턴 상호작용의 구조적 정확성과 자연스러운 대화 동적을 동시에 보장**하는 2단계 프레임워크를 제안한다. 첫 번째 단계에서 **LLM 리뷰어 커미티**와 **반복 피드백 루프**를 활용하여 **지면 진실성 있는 태스크 블루프린트**를 생성하고, 두 번째 단계에서는 이 블루프린트를 바탕으로 **시뮬레이션된 인간-에이전트 상호작용**을 통해 완전한 대화 궤적을 생성한다. 특히, **reverse task recombination** 기법을 통해 복잡도를 증가시키고, **format/execution check**와 **reflection-based 리뷰**를 통해 생성 데이터의 신뢰성을 확보한다. 이는 기존 방법들이 다중 턴 상호작용의 복잡성과 인간-에이전트 간 동적을 포착하지 못한 문제를 해결한다.

기술적 접근법

주요 결과

의의 및 한계

APIGen-MT는 기존에 부족했던 **다중 턴 에이전트 데이터의 질과 양**을 획기적으로 개선하여, 실제 엔터프라이즈 애플리케이션에서 요구되는 **정확성과 정책 준수**를 갖춘 에이전트 개발에 기여한다. 특히, **시뮬레이션 기반 데이터 생성**과 **LLM 리뷰어 커미티 활용**은 데이터 신뢰도를 높이는 학술적 기여로 평가된다. 그러나, **인간 행동의 불확실성**이 일부 남아 있고, 실패한 궤적을 활용하지 못하는 점, **멀티스테이지 검증 과정의 계산 비용** 증가 등이 한계로 지적된다.

실용적 활용

APIGen-MT는 고객 서비스, 재무 관리, 예약 시스템 등 **복잡한 다중 턴 대화가 필요한 산업**에서 AI 에이전트 개발에 활용 가능하다. 또한, **도메인별 맞춤형 에이전트 학습** 및 **정책 준수 기반의 안정적인 에이전트 배포**에도 적용 가능하다.