atlas

Research map / Large language models / Language, safety and interpretability

RepeatLeakage: Leak Prompts from Repeating as Large Language Model Is a Good Repeater

AAAI 2025 · Large language models › Language, safety and interpretability · approach: LLM unlearning and benchmarks · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Shows that LLMs repeating context rely on the prompt rather than parametric knowledge, and uses this to design RepeatLeakage, a template-based attack that extracts system prompts and conversation contexts.

Problem

Stealing confidential system prompts of LLM applications (e.g., GPT Store apps) where developers cannot confirm leaked prompts, so the authenticity of stolen prompts is hard to verify.

Approach

When an LLM is asked to repeat, it copies from context rather than parametric knowledge; the authors validate this by contaminating noun embeddings and restoring intermediate layers, then design a repeat-based template (place, format, encouragement) to leak prompts with high confidence.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use RepeatLeakage instead of the strongest manual leakage baselineLlama-3 · Random Leakage (ShareGPT)99%-100% BertScore rate: 6.0% -> 63.0%Helped
Use RepeatLeakage instead of the strongest manual leakage baselineLlama-3 · Targeted Leakage (ShareGPT)99%-100% BertScore rate: 2.0% -> 36.0%Helped
Use RepeatLeakage instead of the strongest manual leakage baselineLlama-3 · System Prompt Leakage (GPTs)99%-100% BertScore rate: 44.4% -> 68.9%Helped
Use RepeatLeakage instead of the strongest manual leakage baselinePhi-3 · Random Leakage (ShareGPT)99%-100% BertScore rate: 5.0% -> 71.0%Helped
Use RepeatLeakage instead of the strongest manual leakage baselinePhi-3 · Targeted Leakage (ShareGPT)99%-100% BertScore rate: 7.0% -> 58.0%Helped
Use RepeatLeakage instead of the strongest manual leakage baselinePhi-3 · System Prompt Leakage (GPTs)99%-100% BertScore rate: 30.0% -> 77.8%Helped
Use RepeatLeakage instead of the strongest manual leakage baselineQwen2 · Random Leakage (ShareGPT)99%-100% BertScore rate: 3.0% -> 64.0%Helped
Use RepeatLeakage instead of the strongest manual leakage baselineQwen2 · Targeted Leakage (ShareGPT)99%-100% BertScore rate: 9.0% -> 30.0%Helped
Use RepeatLeakage instead of the strongest manual leakage baselineQwen2 · System Prompt Leakage (GPTs)99%-100% BertScore rate: 34.4% -> 72.2%Helped

Surprising findings

Limitations

Experimental setup

Datasets: Known Facts Dataset Simple Questions Wikidata GPT Store leaked system prompts ShareGPT conversations

Benchmarks: GPT Store leaked system prompts ShareGPT ChatGPT conversations

Metrics: BERTScore similarity ranges contaminated degree restored degree accuracy of first token

Baselines: Zhang et al. 2024 Perez et al. 2022

Builds on: Perez et al. 2022 prompt leaking Zhang et al. 2024 conversation prompt leakage

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy