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

从对比提示中学习:自动化优化与适应

Learning from Contrastive Prompts: Automated Optimization and Adaptation

Clemson University(克莱姆森大学);Amazon Services LLC(亚马逊服务有限责任公司)

Mingqi Li, Karan Aggarwal, Yong Xie, Aitzaz Ahmad, Stephen Lau

AI总结:

针对现有提示优化方法仅依赖错误样本且跨模型及语言适应性不足的问题,提出 LCP 框架,利用对比学习从好坏提示示例中生成有效提示,在 Big-Bench Hard 数据集上实现超 76% 胜率并具备跨版本和语言的强适应性。

摘要:

随着 LLMs 不断演进,人们在手动设计提示上投入了大量精力。尽管现有的提示优化方法使该过程实现了自动化,但它们仅依赖从错误样本中学习,导致性能次优。此外,文献中尚未探索的一项挑战是,对先前模型有效的提示可能在新版本或不同语言上表现不佳。我们提出了 Learning from Contrastive Prompts (LCP) 框架来解决这些不足,同时增强提示优化与适应能力。LCP 采用对比学习,通过分析好与坏的提示示例中的模式来生成有效提示。我们在 Big-Bench Hard 数据集上的评估表明,LCP 在提示优化方面对现有方法的胜率超过 76%,并在不同模型版本、家族和语言间展现出强大的适应能力。LCP 为提示工程提供了一种系统化方法,减少了在各种情境中部署 LLMs 的手动工作量。

英文摘要:

As LLMs evolve, significant effort is spent on manually crafting prompts. While existing prompt optimization methods automate this process, they rely solely on learning from incorrect samples, leading to a sub-optimal performance. Additionally, an unexplored challenge in the literature is prompts effective for prior models may not perform well on newer versions or different languages. We propose the Learning from Contrastive Prompts (LCP) framework to address these gaps, enhancing both prompt optimization and adaptation. LCP employs contrastive learning to generate effective prompts by analyzing patterns in good and bad prompt examples. Our evaluation on the Big-Bench Hard dataset shows that LCP has a win rate of over 76% over existing methods in prompt optimization and demonstrates strong adaptability across different model versions, families, and languages. LCP offers a systematic approach to prompt engineering, reducing manual effort in deploying LLMs across varied contexts.

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

↑