诊断并非处方:语言共适应解释了LLM流水线中的修补危害
Diagnosis Is Not Prescription: Linguistic Co-Adaptation Explains Patching Hazards in LLM Pipelines
AI总结:
本文研究了多模块LLM代理失败时,诊断与修补之间的矛盾,发现路由模块虽为瓶颈,但注入修正示例反而降低性能,而修正查询重写模块则更有效,提出了语言合同假说解释这种现象。
摘要:
当多模块LLM代理失效时,最负责失败的模块未必是最佳干预地点。我们通过实证展示了这种诊断悖论:因果分析一致地将路由模块——选择下一步调用的工具——识别为三个独立代理家族中的主要瓶颈。然而,将提示级修正示例注入此模块会持续降低性能,有时甚至严重。相反,修补上游的查询重写模块则能可靠地改善结果。这种效果在两个代理家族中具有统计显著性,在第三个家族中表现出方向一致性;在路由模块的替代修补策略(指令重写、模型升级)则无明显影响,证实了危害仅特定于修正注入修补。我们通过语言合同假说解释这种不对称性:每个下游模块隐式地适应其上游的特征错误分布,因此修正瓶颈会打破这种隐式对齐,而上游修正不会。我们通过基于诊断的每代理共适应度度量来操作化这一概念,并展示其在所有代理家族中与修补危害一致相关:较高的共适应度与危害相关,较低的与安全性相关。这一趋势在所有三个代理家族中均成立,为假说提供了初步支持,超越了单代理观察。
英文摘要:
When a multi-module LLM agent fails, the module most responsible for the failure is not necessarily the best place to intervene. We demonstrate this Diagnostic Paradox empirically: causal analysis consistently identifies the routing module -- which selects which tool to call next -- as the primary bottleneck across three independent agent families. Yet injecting prompt-level correction examples into this module consistently degrades performance, sometimes severely. Patching an upstream query-rewriting module instead reliably improves outcomes. The effect holds with statistical significance on two agent families and directional consistency on a third; alternative repair strategies at the routing module (instruction rewriting, model upgrade) are neutral, confirming that the harm is specific to correction-injection patching. We explain this asymmetry through the Linguistic Contract hypothesis: each downstream module implicitly adapts to its upstream's characteristic error distribution, so correcting the bottleneck breaks this implicit alignment in a way that upstream corrections do not. We operationalize this via a per-agent co-adaptation measure, derived from diagnosis alone, and show it is consistently associated with patching harm across agent families: higher co-adaptation co-occurs with harm, lower with safety. This trend holds across all three agent families, providing preliminary support for the hypothesis beyond a single-agent observation.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。