arXiv:2412.04494cs.CL2024-12被引 17

用多智能体生成模拟客户问题并验证响应轨迹,提升大模型代理可靠性。

MAG-V: A Multi-Agent Framework for Synthetic Data Generation and Verification

  • 构建多智能体框架生成真实感客户问题数据
  • 通过逆向生成问题验证代理行为轨迹,准确率比GPT-4o高11%
  • 适合需快速验证代理性能且无真实数据的工业场景

将大型语言模型(LLM)与环境交互功能结合,催生了智能体范式。但在工业应用中,由于领域数据稀缺、客户数据受法律限制、业务需求快速变化及新助手原型设计需求,直接训练LLM常不可行。智能体可通过底层LLM的零样本推理能力,结合工具探索和处理客户数据以响应请求,提供优雅解决方案。然而存在两大挑战:(I)获取大规模客户查询用于智能体测试耗时;(II)对工具调用序列(轨迹)的高度依赖可能导致意外或错误行为。为此,我们提出MAG-V,一个用于生成模拟客户查询数据的多智能体框架,并基于响应结果反推替代性问题,实现轨迹验证。初步结果表明,合成数据可提升智能体在真实客户查询上的表现。此外,受远监督启发、采用传统机器学习模型的轨迹验证方法,在我们的数据集上相较GPT-4o基准准确率高出11%,且达到GPT-4水平。整体而言,该方法为统一多样化任务智能体、实现对齐目标迈出了重要一步。

原文摘要 · Abstract (English)

Extending the capabilities of Large Language Models (LLMs) with functions or tools for environment interaction has led to the emergence of the agent paradigm. In industry, training an LLM is not always feasible because of the scarcity of domain data, legal holds on proprietary customer data, rapidly changing business requirements, and the need to prototype new assistants. Agents provide an elegant solution to the above by relying on the zero-shot reasoning abilities of the underlying LLM and utilizing tools to explore and reason over customer data and respond to user requests. However, there are two concerns here: (I) acquiring large scale customer queries for agent testing is time-consuming, and (II) high reliance on the tool call sequence (or trajectory) followed by the agent to respond to user queries may lead to unexpected or incorrect behavior. To address this, we propose MAG-V, a multi-agent framework to first generate a dataset of questions that mimic customer queries; and second, reverse-engineer alternate questions from the responses for trajectory verification. Initial results indicate that our synthetic data can improve agent performance on actual customer queries. Furthermore, our trajectory verification methodology, inspired by distant supervision and using traditional machine learning (ML) models, outperforms a GPT-4o judge baseline by 11% accuracy and matches the performance of a GPT-4 judge on our constructed dataset. Overall, our approach is a step towards unifying diverse task agents into a cohesive framework for achieving an aligned objective.

多智能体数据生成轨迹验证

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。