从提示本身学习:层次归因提示优化
Learning from Prompt itself: the Hierarchical Attribution Prompt Optimization
AI总结:
HAPO框架通过动态归因机制、语义单元优化和多模态支持,提升提示优化效率,适用于多任务场景。
摘要:
优化在众多学科中都是基础,通常通过不断改进初始解决方案来提高性能。这一原则在提示工程中同样至关重要,其中为大型语言模型设计有效的提示构成了复杂的优化挑战。一种结构化的优化方法需要自动化或半自动化的过程来开发改进的提示,从而减少手动努力,提高性能,并产生可解释的过程。然而,当前的提示优化方法往往会导致提示漂移,即新提示修复了之前的失败,但会损害在之前成功的任务上的性能。此外,从头生成提示可能会损害可解释性。为了解决这些限制,本研究提出了层次归因提示优化(HAPO)框架,它引入了三个创新:(1)一个动态归因机制,针对训练数据和提示历史中的错误模式;(2)语义单元优化,用于编辑功能提示段;(3)多模态友好的进展支持端到端LLM和LLM-MLLM工作流程。应用于单/多图像问答(如OCRV2)和复杂任务分析(如BBH)等场景中,HAPO展示了增强的优化效率,优于类似的自动化提示优化方法,并建立了可扩展的提示工程范式。
英文摘要:
Optimization is fundamental across numerous disciplines, typically following an iterative process of refining an initial solution to enhance performance. This principle is equally critical in prompt engineering, where designing effective prompts for large language models constitutes a complex optimization challenge. A structured optimization approach requires automated or semi-automated procedures to develop improved prompts, thereby reducing manual effort, improving performance, and yielding an interpretable process. However, current prompt optimization methods often induce prompt drift, where new prompts fix prior failures but impair performance on previously successful tasks. Additionally, generating prompts from scratch can compromise interpretability. To address these limitations, this study proposes the Hierarchical Attribution Prompt Optimization (HAPO) framework, which introduces three innovations: (1) a dynamic attribution mechanism targeting error patterns in training data and prompting history, (2) semantic-unit optimization for editing functional prompt segments, and (3) multimodal-friendly progression supporting both end-to-end LLM and LLM-MLLM workflows. Applied in contexts like single/multi-image QA (e.g., OCRV2) and complex task analysis (e.g., BBH), HAPO demonstrates enhanced optimization efficiency, outperforming comparable automated prompt optimization methods and establishing an extensible paradigm for scalable prompt engineering.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。