提示优化如同抛硬币:诊断其在复合AI系统中何时有效
Prompt Optimization Is a Coin Flip: Diagnosing When It Helps in Compound AI Systems
AI总结:
通过大量实验发现提示优化在复合AI系统中效果不稳定,仅当任务具有可挖掘的输出结构时才有帮助,并提供了两阶段诊断方法。
摘要:
复合AI系统中的提示优化在统计上与抛硬币无异:在Claude Haiku 4.5上的72次优化运行(6种方法 × 4个任务 × 3次重复)中,49%的得分低于零样本;在Amazon Nova Lite上,失败率更高。然而,在一个任务上,所有六种方法相比零样本提升了高达+6.8分。是什么区分了成功与失败?我们通过18,000次网格评估和144次优化运行进行了调查,按照必须回答的顺序测试了TextGrad和DSPy等端到端优化工具背后的两个假设:(A) 智能体提示存在交互,需要联合优化而非独立优化;(B) 单个提示本身值得优化。交互效应从未显著(p > 0.52,所有F < 1.0),并且优化仅在任务具有可挖掘的输出结构时才有帮助:即模型可以生成但不会默认采用的格式。我们进一步给出了机制性解释:指令微调将输入措辞压缩成狭窄的输出分布,消除了联合优化所依赖的措辞敏感性。我们提供了一个两阶段诊断:一个80美元的ANOVA预测试用于智能体耦合,以及一个10分钟的头空间测试,用于预测优化是否值得,从而将抛硬币转变为知情决策。
英文摘要:
Prompt optimization in compound AI systems is statistically indistinguishable from a coin flip: across 72 optimization runs on Claude Haiku 4.5 (6 methods $\times$ 4 tasks $\times$ 3 repeats), 49% score below zero-shot; on Amazon Nova Lite, the failure rate is even higher. Yet on one task, all six methods improve over zero-shot by up to $+6.8$ points. What distinguishes success from failure? We investigate with 18,000 grid evaluations and 144 optimization runs, testing two assumptions behind end-to-end optimization tools like TextGrad and DSPy, in the order they must be answered: (A) agent prompts interact, requiring joint rather than independent optimization, and (B) individual prompts are worth optimizing at all. Interaction effects are never significant ($p > 0.52$, all $F < 1.0$), and optimization helps only when the task has exploitable output structure: a format the model can produce but does not default to. We further give a mechanistic account: instruction-tuning compresses input phrasing into a narrow output distribution, eliminating the very phrasing-sensitivity that joint optimization assumes. We provide a two-stage diagnostic: an \$80 ANOVA pre-test for agent coupling, and a 10-minute headroom test that predicts whether optimization is worthwhile, turning a coin flip into an informed decision.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。