arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2412.08127cs.CLcs.AIcs.LG
收藏

邪恶双胞胎并非那么邪恶:机器生成提示的定性洞见

Evil twins are not that evil: Qualitative insights into machine-generated prompts

Universitat Pompeu Fabra(庞培法布拉大学);ICREA

Nathanaël Carraz Rakotonirina, Corentin Kervadec, Francesca Franzon, Marco Baroni

AI总结:

本研究首次全面分析机器生成提示(自动提示),发现其末标记可理解且影响大,部分标记可剪枝,其余分为填充和关键词,且非完全不透明,并揭示其与自然语言处理机制的关联。

摘要:

人们广泛观察到,语言模型(LMs)对看似难以理解的算法生成提示会以可预测的方式做出响应。这既表明我们对语言模型的工作原理缺乏全面理解,也是一个实际挑战,因为这种不透明性可能被利用于语言模型的有害用途,例如越狱。我们首次对不透明的机器生成提示(即自动提示)进行了全面分析,涉及6个不同规模和系列的语言模型。我们发现,机器生成的提示具有一个特征:最后一个标记(token)通常可理解且强烈影响生成结果。前序标记中有一小部分但一致的比例是可剪枝的,这些标记可能是优化过程固定标记数量这一事实的副产品而出现在提示中。其余标记分为两类:填充标记(filler tokens),可以用语义无关的替代词替换;以及关键词(keywords),它们往往与生成内容至少存在松散的语义关系,尽管它们与生成内容没有形成良好的句法关系。此外,人类专家能够可靠地事后识别自动提示中影响最大的标记,这表明这些提示并非完全不透明。最后,我们对自动提示应用的一些消融实验在自然语言输入中也产生了类似效果,这表明自动提示是从语言模型处理语言输入的一般方式中自然涌现的。

英文摘要:

It has been widely observed that language models (LMs) respond in predictable ways to algorithmically generated prompts that are seemingly unintelligible. This is both a sign that we lack a full understanding of how LMs work, and a practical challenge, because opaqueness can be exploited for harmful uses of LMs, such as jailbreaking. We present the first thorough analysis of opaque machine-generated prompts, or autoprompts, pertaining to 6 LMs of different sizes and families. We find that machine-generated prompts are characterized by a last token that is often intelligible and strongly affects the generation. A small but consistent proportion of the previous tokens are prunable, probably appearing in the prompt as a by-product of the fact that the optimization process fixes the number of tokens. The remaining tokens fall into two categories: filler tokens, which can be replaced with semantically unrelated substitutes, and keywords, that tend to have at least a loose semantic relation with the generation, although they do not engage in well-formed syntactic relations with it. Additionally, human experts can reliably identify the most influential tokens in an autoprompt a posteriori, suggesting these prompts are not entirely opaque. Finally, some of the ablations we applied to autoprompts yield similar effects in natural language inputs, suggesting that autoprompts emerge naturally from the way LMs process linguistic inputs in general.

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

↑