arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2604.10513cs.AI
收藏

Agent Mentor: 通过语义轨迹分析框架代理知识

Semantic Feature Analysis: Improving Agents Without Searching Over Rollouts

IBM Software Innovation Lab(IBM软件创新实验室)

Yuval David, Fabiana Fournier, Lior Limonad, Hadar Mulian

AI总结:

本文提出通过语义轨迹分析框架提升代理性能,通过系统提示的监控和逐步调整,系统性地注入纠正指令以改进代理知识,实验显示在规范模糊性主导的场景中效果显著。

摘要:

AI代理开发严重依赖自然语言提示来定义代理的任务、知识和目标。这些提示由大型语言模型(LLMs)解释,从而控制代理行为。因此,代理性能容易受到提示不精确或模糊的变异性影响。识别和纠正此类问题需要不仅检查代理的代码,还要检查其执行生命周期中生成的内部系统提示,如执行日志所示。在本文中,我们介绍了一个作为Agent Mentor开源库一部分的分析流水线,用于监控并逐步调整定义另一个代理行为的系统提示。该流水线通过系统性地向代理知识中注入纠正指令来提高性能。我们描述了其底层机制,特别强调识别与不期望行为相关的语义特征,并利用这些特征推导出纠正陈述。我们通过三个示例代理配置和基准任务的重复执行运行评估了所提出的流水线,以评估其有效性。这些实验为未来代理治理框架中自动化此类指导流水线提供了初步探索。总体而言,该方法在多样化的配置中展示了持续且可衡量的准确性提升,特别是在规范模糊性主导的场景中。为了可重复性,我们以Agent Mentor库的形式开源了我们的代码。

英文摘要:

Ambiguity is an inherent property of natural-language agent specifications. When a system prompt leaves behaviour underdetermined, identical inputs follow divergent execution paths and produce inconsistent outcomes. The standard remedy is prompt optimisation: propose candidate prompts, run the agent to score them, and keep the best. This loop pays for the agent twice: once to generate candidates and again to rank them. On a tool-using agent whose rollouts cost dollars and minutes, the ranking cost dominates and budget-constrained optimisers routinely fail to find improvements. We present Semantic Feature Analysis (SFA), a pipeline that repairs agent specifications without running any search. SFA reads execution traces the agent has already produced, clusters the outputs of each workflow node, decomposes them into semantic feature classes using an extended subject-verb-object schema, ranks those features by their contribution to outcome separation using a decision tree, and injects the surviving features as corrective statements into the affected node's system prompt. Because it never ranks candidate prompts, it never spends a rollout on selection. We evaluate SFA against five prompt optimisers (GEPA, MIPROv2, SIMBA, BootstrapFewShot with random search, InferRules) and a single-reflection control, budget-matched in dollars at three budget levels across four benchmarks (IF-Bench, HotpotQA, HoVer, and GAIA). SFA consistently improves over the unmodified agent across benchmarks and budget levels, with the largest gains where rollouts are most expensive. On GAIA, where budget-constrained optimisers cannot afford to score even one candidate, SFA improves accuracy while other arms return their seed unchanged.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑