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

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Rakotonirina, Nathanaël Carraz, Kervadec, Corentin, Franzon, Francesca, Baroni, Marco
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866914079868715008
author Rakotonirina, Nathanaël Carraz
Kervadec, Corentin
Franzon, Francesca
Baroni, Marco
author_facet Rakotonirina, Nathanaël Carraz
Kervadec, Corentin
Franzon, Francesca
Baroni, Marco
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2412_08127
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Evil twins are not that evil: Qualitative insights into machine-generated prompts
Rakotonirina, Nathanaël Carraz
Kervadec, Corentin
Franzon, Francesca
Baroni, Marco
Computation and Language
Artificial Intelligence
Machine Learning
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.
title Evil twins are not that evil: Qualitative insights into machine-generated prompts
topic Computation and Language
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2412.08127