来自巴别图书馆的字符串:随机采样作为提示优化的强基线
Strings from the Library of Babel: Random Sampling as a Strong Baseline for Prompt Optimisation
AI总结:
该研究提出从语言模型词表随机采样词元作为提示分隔符的方法,实验证明其性能接近现有自优化方法、优于人工基线,挑战了有效提示需可读或任务相关的认知,为提示优化提供强基线。
摘要:
近期的提示优化方法利用语言模型的生成特性来生成提示,其性能甚至可与人工设计的提示相媲美。在本文中,我们证明从模型词表中随机采样词元作为“分隔符”,在提示式文本分类任务中能达到与语言模型生成提示相当的效果。我们的实验表明,随机分隔符是极具竞争力的基线:在9项文本分类任务和8个语言模型上,其与此前的自优化方法性能差距不足1%,相较于强人工基线平均相对提升达12%。我们进一步通过三种不同的随机生成策略对这一现象展开详细分析,证实语言空间中存在大量潜在的优质分隔符——随机抽取的分隔符性能优于人工设计分隔符的平均概率超过40%。这些发现挑战了“有效提示必须具备人类可读性或与任务相关”的普遍假设,同时为提示优化研究确立了强基线。
英文摘要:
Recent prompt optimisation approaches use the generative nature of language models to produce prompts -- even rivaling the performance of human-curated prompts. In this paper, we demonstrate that randomly sampling tokens from the model vocabulary as ``separators'' can be as effective as language models for prompt-style text classification. Our experiments show that random separators are competitive baselines, having less than a 1% difference compared to previous self-optimisation methods and showing a 12% average relative improvement over strong human baselines across nine text classification tasks and eight language models. We further analyse this phenomenon in detail using three different random generation strategies, establishing that the language space is rich with potentially good separators, with a greater than 40% average chance that a randomly drawn separator performs better than human-curated separators. These observations challenge the common assumption that an effective prompt should be human readable or task relevant and establish a strong baseline for prompt optimisation research.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。