arXiv:2506.05305cs.CLcs.AI2025-06AAAI被引 8

用AI自我反馈优化提示词,让小模型逼近大模型表现

ProRefine: Inference-Time Prompt Refinement with Textual Feedback

  • 通过多智能体循环生成文本反馈,动态优化推理过程中的提示词
  • 在5个数学推理数据集上比零样本思维链提升3%~37%准确率
  • 无需训练或标签,适合资源有限但追求高性能的AI系统部署

智能体工作流中,多个AI智能体协作完成复杂任务(如推理或规划),已成为前沿商业应用的核心。这类工作流高度依赖用于定义智能体角色的提示词。设计不佳的提示词即使轻微偏差,也可能导致性能下降并逐级放大,影响系统的可靠性与可扩展性。为解决推理阶段提示词优化这一关键问题,本文提出ProRefine:一种基于大语言模型的智能体循环机制,通过生成并应用文本反馈,在不需额外训练或真实标签的情况下动态优化多步推理任务的提示词。在五个基准数学推理数据集上的评估显示,ProRefine相比零样本思维链基线显著提升3%至37%的准确率。该方法不仅提高精度,还使小型模型接近大型模型的表现,展现出构建更高效、低成本混合型AI系统的潜力,有助于推动高性能AI的普惠化。

原文摘要 · Abstract (English)

Agentic workflows, where multiple AI agents collaborate to accomplish complex tasks like reasoning or planning, play a substantial role in many cutting-edge commercial applications, and continue to fascinate researchers across fields for their potential to accomplish expensive, complex tasks that, until recently, only humans have been trusted to do. These workflows depend critically on the prompts used to provide the roles models play in such workflows. Poorly designed prompts that fail even slightly to guide individual agents can lead to sub-optimal performance that may snowball within a system of agents, limiting their reliability and scalability. To address this important problem of inference-time prompt optimization, we introduce ProRefine, an innovative inference-time optimization method that uses an agentic loop of LLMs to generate and apply textual feedback. ProRefine dynamically refines prompts for multi-step reasoning tasks without additional training or ground truth labels. Evaluated on five benchmark mathematical reasoning datasets, ProRefine significantly surpasses zero-shot Chain-of-Thought baselines by 3 to 37 percentage points. This approach not only boosts accuracy but also allows smaller models to approach the performance of their larger counterparts. This highlights its potential for building more cost-effective and powerful hybrid AI systems, thereby democratizing access to high-performing AI.

提示优化智能体推理增强

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。