arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.30775cs.CLcs.AI
收藏

一次重写就足够:来自生产技能描述优化的经验教训

A Single Rewrite Suffices: Empirical Lessons from Production Skill Description Optimization

Microsoft(微软)

Yangqiaoyu Zhou, Mohammad Alqudah, Kwei-Herng Lai, Aaron Halfaker, Yingqi Xiong, Yaar Harari

AI总结:

针对企业AI代理中技能描述重叠导致路由错误的问题,提出自动化优化管道,在9技能生产系统上达到与手动调优相当的F1值(79.2% vs 79.4%),并将每技能工程时间从120分钟降至3.8分钟。消融实验表明,仅用一次LLM重写即可获得大部分改进。

摘要:

企业AI代理通过将用户查询与自然语言技能描述匹配,将查询路由到专门的技能。当两个技能的描述重叠时,路由LLM会错误路由查询,我们将这种失败称为技能碰撞。随着代理扩展到数十个技能,手动调整描述以保持路由准确性成为一个显著的工程瓶颈。我们在一个生产企业群聊代理(9个技能,372个回归案例)上部署了一个自动化描述优化管道。该管道生成的描述平均F1为79.2%,与手动调优描述的79.4% F1相匹配(每个技能平均差异-0.20%,在0.78%的多种子噪声基底内),同时将每个技能的工程工作量从120分钟减少到3.8分钟(32倍加速)。然后我们检查了哪些管道组件实际上驱动了这种匹配。在生产系统和ToolBench(16k工具)上的系统消融实验揭示,使用任何可用的假阳性和假阴性案例进行一次LLM重写即可捕获大部分可用的改进。我们测试的其他设计选择(迭代预算、反馈信号组成、混淆对的双重编辑以及训练集大小)各自对最终F1的影响小于0.5%。描述优化解决了由重叠描述引起的技能碰撞,但无法解决两个技能预期范围确实重叠的情况。我们识别出一个诊断指标(大的训练-验证F1差距),用于标记后一种情况,需要架构层面的干预而非文本层面的干预。

英文摘要:

Enterprise AI agents route user queries to specialized skills by matching queries against natural language skill descriptions. When two skills share overlapping descriptions, the routing LLM misroutes queries, a failure we term skill collision. As agents scale to dozens of skills, manually tuning descriptions to maintain routing accuracy becomes a significant engineering bottleneck. We deploy an automated description optimization pipeline on a production enterprise group chat agent (9 skills, 372 regression cases). The pipeline produces descriptions averaging 79.2% F1, matching manually tuned descriptions at 79.4% F1 (average per-skill difference -0.20%, within the 0.78% multi-seed noise floor), while reducing per-skill engineering effort from 120 minutes to 3.8 minutes (32 times speedup). We then examine which pipeline components actually drive this match. Systematic ablation on both the production system and ToolBench (16k tools) reveals that a single LLM rewrite using any available false-positive and false-negative cases captures most of the available improvement. Other design choices we tested (iteration budget, feedback signal composition, dual editing of confused pairs, and training set size) each affect final F1 by less than 0.5%. Description optimization addresses skill collisions caused by overlapping descriptions but cannot resolve cases where two skills intended scopes genuinely overlap. We identify a diagnostic (a large train-validation F1 gap) that flags the latter cases for architectural rather than text-level intervention.

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

↑