多智能体 LLM 提示词优化新方法:控制-数据流分离

内容摘要
多智能体语言模型(LLM)的提示词优化是提升系统性能的关键,但优化过程中往往需要同时处理生成任务相关内容和指定执行关键协议,如消息路由、输出格式和终止信号等。这些角色相互交织,可能导致优化内容时意外破坏协议,导致整个智能体流程失败。本文提出了一种控制-数据流分离的新方法,将执行关键控制表示为类型化、验证过的程序对象,而将任务相关语言保留为可优化的数据流,以实现智能体间的通信。该方法在合成推理、协作审查生成和保险评级工作流程中,实现了100%的最终协议有效性,并持续提升任务性能。
多智能体语言模型(LLM)的提示词优化是提升系统性能的关键,但优化过程中往往需要同时处理生成任务相关内容和指定执行关键协议,如消息路由、输出格式和终止信号等。这些角色相互交织,可能导致优化内容时意外破坏协议,导致整个智能体流程失败。本文提出了一种控制-数据流分离的新方法,将执行关键控制表示为类型化、验证过的程序对象,而将任务相关语言保留为可优化的数据流,以实现智能体间的通信。该方法在合成推理、协作审查生成和保险评级工作流程中,实现了100%的最终协议有效性,并持续提升任务性能。

Prompt optimization can improve multi-agent LLM systems, but the prompts being optimized often serve two entangled roles: generating task-relevant content and specifying execution-critical protocols, such as message routing, output formatting, and termination signals, on which the underlying code relies. As a result, a prompt edit intended to improve content generation can inadvertently corrupt the protocol and cause the entire agent pipeline to fail. Our key observation is that these two roles have different representations: execution protocols are typically structured, while task-relevant content is usually expressed in unstructured language. Based on this, we propose control-data flow separation, where execution-critical control is represented as typed, validated program objects, while task-relevant language remains the optimizable data flow for agent communication. This design allows optimizers to improve multi-agent behavior without exposing the routing or formatting interface to prompt drift. Across synthetic reasoning, collaborative review generation, and insurance rating workflows, our framework empirically achieves 100% eventual protocol validity while consistently improving task performance.

原始发布方:HuggingFace Daily Papers(社区热门论文)

原文时间:2026-09-01 08:00:00 +08:00

阅读原文 · 数据来源:AIHOT

提示

本文用于信息整理与经验分享。第三方订阅、支付及账号服务可能调整,实际规则、价格和可用性请以下单页面及服务方最新说明为准。

咨询 GPT 充值咨询充值