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

DLPO:从深度学习视角构建鲁棒、高效且具泛化性的提示优化框架

DLPO: Towards a Robust, Efficient, and Generalizable Prompt Optimization Framework from a Deep-Learning Perspective

Research Center for Social Computing and Interactive Robotics(社会计算与交互机器人研究中心);Harbin Institute of Technology(哈尔滨工业大学);School of Computer Science and Engineering, Central South University(中南大学计算机科学与工程学院);Fudan University(复旦大学)

Dengyun Peng, Yuhang Zhou, Qiguang Chen, Jinhao Liu, Jingjing Chen, Libo Qin

AI总结:

针对现有自动化提示优化方法在鲁棒性、效率与泛化性上的不足,本研究受深度学习范式启发提出7种DLPO创新方法,整合进文本梯度优化并经实验验证,为提示优化研究提供指导与参考。

摘要:

大语言模型(LLMs)在各类任务中取得了显著成功,这很大程度上得益于精心设计的提示词。然而, crafting 和筛选这类提示词往往需要大量人力,严重限制了其可扩展性。为缓解这一问题,近期研究将自动化提示优化作为颇具前景的解决方案展开了探索。尽管已有相关努力,现有方法仍在鲁棒性、效率和泛化性方面面临关键挑战。为系统性解决这些挑战,我们首先开展了实证分析,明确了当前基于反思的提示优化范式的局限性。基于这些洞察,我们受传统深度学习范式启发,提出了7种用于提示优化的创新方法(DLPO),将这些概念无缝整合到基于文本的梯度优化中。通过这些改进,我们逐步解决了上述挑战,并通过大量实验验证了我们的方法。我们希望本研究不仅能为未来研究提供有价值的指导,还能让人们全面理解提示优化中的挑战与潜在解决方案。我们的代码可在https://github.com/sfasfaffa/DLPO 获取。

英文摘要:

Large Language Models (LLMs) have achieved remarkable success across diverse tasks, largely driven by well-designed prompts. However, crafting and selecting such prompts often requires considerable human effort, significantly limiting its scalability. To mitigate this, recent studies have explored automated prompt optimization as a promising solution. Despite these efforts, existing methods still face critical challenges in robustness, efficiency, and generalization. To systematically address these challenges, we first conduct an empirical analysis to identify the limitations of current reflection-based prompt optimization paradigm. Building on these insights, we propose 7 innovative approaches inspired by traditional deep learning paradigms for prompt optimization (DLPO), seamlessly integrating these concepts into text-based gradient optimization. Through these advancements, we progressively tackle the aforementioned challenges and validate our methods through extensive experimentation. We hope our study not only provides valuable guidance for future research but also offers a comprehensive understanding of the challenges and potential solutions in prompt optimization. Our code is available at https://github.com/sfasfaffa/DLPO.

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

↑