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

提示词在低数据下也能泛化:利用更具信息量的先验优化提示词的非空洞泛化界

Prompts Generalize with Low Data: Non-vacuous Generalization Bounds for Optimizing Prompts with More Informative Priors

Google Deepmind(谷歌DeepMind)

David Madras, Joshua Safyan, Qiuyi, Zhang

AI总结:

本文提出利用困惑度作为有效先验,推导出数据稀缺下提示优化的非空洞泛化界,并通过正则化限制探索来提升提示泛化能力。

摘要:

许多提示工程技术在实践应用中取得了成功,即使在面对大量提示空间且仅有少量任务特定数据的情况下进行优化时也是如此。近期工作通过将PAC-Bayes理论应用于离散提示空间,展示了相应的泛化界,从而部分解释了这一成功,但这些泛化界仅在数据丰富的场景中才非空洞。我们认为,这种广泛成功可以通过更细致地考虑依赖于数据或分布的困惑度来更全面地解释,该困惑度充当有效的先验,并引导优化朝向对当前任务更为“自然”的提示。我们推导出新的泛化界,这些泛化界在数据稀缺的提示优化场景中通过更有用的先验而保持非空洞,并正式分析了困惑度正则化如何通过限制探索来收紧这些界。在实验上,我们探讨了这些界的有效性以及困惑度正则化在改善提示泛化方面的实际益处。

英文摘要:

Many prompt engineering techniques have been successful in practice, even when optimizing over a large prompt space with with a small amount of task-specific data. Recent work has partially explained this success by showing generalization bounds which apply PAC-Bayes theory to the discrete prompt space, but they are non-vacuous only in data-rich scenarios. We argue that such widespread success can be more fully explained through more carefully considering data- or distribution-dependent perplexity, which acts as an effective prior and steers the optimization towards prompts that are more ``natural'' for the task at hand. We derive novel generalization bounds that are non-vacuous for data-scarce prompt optimization via more useful priors, formally analyzing how perplexity regularization tightens these bounds by limiting exploration. Empirically, we explore both the bounds' effectiveness and the practical benefits of perplexity regularization in improving prompt generalization.

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

↑