Prompts Should not be Seen as Secrets: Systematically Measuring Prompt Extraction Attack Success
Preprint
Abstract
The generations of large language models are commonly controlled through prompting techniques, where a user's query to the model is prefixed with a prompt that aims to guide the model's behaviour on the query. The prompts used by companies to guide their models are often treated as secrets, to be hidden from the user making the query. They have even been treated as commodities to be bought and sold. However, there has been anecdotal evidence showing that the prompts can be extracted by a user even when they are kept secret. In this paper, we present a framework for systematically measuring the success of prompt extraction attacks. In experiments with multiple sources of prompts and multiple underlying language models, we find that simple text-based attacks can in fact reveal prompts with high probability.Keywords
All Related Versions
This publication has 6 references indexed in Scilit:
- Not What You've Signed Up For: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection2023
- Prefix-Tuning: Optimizing Continuous Prompts for Generation2021
- How many data points is a prompt worth?2021
- A Call for Clarity in Reporting BLEU Scores2018
- Reading Wikipedia to Answer Open-Domain Questions2017
- BLEU2001