Saved in:
Bibliographic Details
Main Authors: Salinas, Abel, Morstatter, Fred
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2401.03729
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866929299875954688
author Salinas, Abel
Morstatter, Fred
author_facet Salinas, Abel
Morstatter, Fred
contents Large Language Models (LLMs) are regularly being used to label data across many domains and for myriad tasks. By simply asking the LLM for an answer, or ``prompting,'' practitioners are able to use LLMs to quickly get a response for an arbitrary task. This prompting is done through a series of decisions by the practitioner, from simple wording of the prompt, to requesting the output in a certain data format, to jailbreaking in the case of prompts that address more sensitive topics. In this work, we ask: do variations in the way a prompt is constructed change the ultimate decision of the LLM? We answer this using a series of prompt variations across a variety of text classification tasks. We find that even the smallest of perturbations, such as adding a space at the end of a prompt, can cause the LLM to change its answer. Further, we find that requesting responses in XML and commonly used jailbreaks can have cataclysmic effects on the data labeled by LLMs.
format Preprint
id arxiv_https___arxiv_org_abs_2401_03729
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle The Butterfly Effect of Altering Prompts: How Small Changes and Jailbreaks Affect Large Language Model Performance
Salinas, Abel
Morstatter, Fred
Computation and Language
Artificial Intelligence
Large Language Models (LLMs) are regularly being used to label data across many domains and for myriad tasks. By simply asking the LLM for an answer, or ``prompting,'' practitioners are able to use LLMs to quickly get a response for an arbitrary task. This prompting is done through a series of decisions by the practitioner, from simple wording of the prompt, to requesting the output in a certain data format, to jailbreaking in the case of prompts that address more sensitive topics. In this work, we ask: do variations in the way a prompt is constructed change the ultimate decision of the LLM? We answer this using a series of prompt variations across a variety of text classification tasks. We find that even the smallest of perturbations, such as adding a space at the end of a prompt, can cause the LLM to change its answer. Further, we find that requesting responses in XML and commonly used jailbreaks can have cataclysmic effects on the data labeled by LLMs.
title The Butterfly Effect of Altering Prompts: How Small Changes and Jailbreaks Affect Large Language Model Performance
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2401.03729