用于基于LLM的智能体可扩展且真实测试的可配置多智能体框架
Configurable multi-agent framework for scalable and realistic testing of llm-based agents
AI总结:
本文提出Neo多智能体框架,通过问题生成与评估智能体协同及概率状态模型,实现LLM智能体的可扩展、真实多轮自动化测试,在接近人工红队效果的同时大幅提升测试吞吐量。
摘要:
大语言模型(LLM)智能体表现出复杂且对上下文敏感的行为,这迅速使静态基准测试和临时人工测试变得过时。我们提出了Neo,一个可配置的多智能体框架,用于自动化对基于LLM的系统进行真实的多轮评估。Neo通过共享上下文中心将问题生成智能体和评估智能体耦合在一起,使得领域提示、场景控制和动态反馈能够模块化组合。测试输入从涵盖对话流程、用户意图和情绪语调的概率状态模型中采样,从而生成多样化、类人的对话,并在每一轮之后进行自适应调整。将Neo应用于一个生产级卖家财务助手聊天机器人,(i)在五个攻击类别中发现了边缘案例失败,破坏率为3.3%,接近专家人工红队所达到的5.8%;(ii)实现了10-12倍的更高吞吐量,在大约45分钟内生成180个连贯的测试问题,而人工工作需要16小时。除了安全探测之外,Neo的随机策略平衡了主题覆盖和对话深度,产生了比手工编写脚本更广泛的行为探索。因此,Neo为可扩展、自演进的LLM质量保证奠定了基础:其智能体接口、状态控制器和反馈回路与模型无关,并可扩展到更丰富的事实依据和策略合规检查。我们发布该框架以促进对新兴智能体系统进行可复现、高保真的测试。
英文摘要:
Large-language-model (LLM) agents exhibit complex, context-sensitive behaviour that quickly renders static benchmarks and ad-hoc manual testing obsolete. We present Neo, a configurable, multi-agent framework that automates realistic, multi-turn evaluation of LLM-based systems. Neo couples a Question Generation Agent and an Evaluation Agent through a shared context-hub, allowing domain prompts, scenario controls and dynamic feedback to be composed modularly. Test inputs are sampled from a probabilistic state model spanning dialogue flow, user intent and emotional tone, enabling diverse, human-like conversations that adapt after every turn. Applied to a production-grade Seller Financial Assistant chatbot, Neo (i) uncovered edge-case failures across five attack categories with a 3.3% break rate close to the 5.8% achieved by expert human red-teamers, and (ii) delivered 10-12X higher throughput, generating 180 coherent test questions in around 45 mins versus 16h of human effort. Beyond security probing, Neo's stochastic policies balanced topic coverage and conversational depth, yielding broader behavioural exploration than manually crafted scripts. Neo therefore lays a foundation for scalable, self-evolving LLM QA: its agent interfaces, state controller and feedback loops are model-agnostic and extensible to richer factual-grounding and policy-compliance checks. We release the framework to facilitate reproducible, high-fidelity testing of emerging agentic systems.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。