TL;DR
Fine-tuning Large Language Models (LLMs) for task-oriented bots can inadvertently leak sensitive user data, such as phone numbers and travel itineraries, trapped inside their internal "dialogue states." This paper introduces a novel schema-guided extraction attack and a debiased membership inference metric that can extract thousands of these private training labels with up to 70% state-level precision. The findings expose a critical privacy gap in how specialized task bots inherit and amplify LLM memorization.
What Problem Does This Paper Address?
Task-Oriented Dialogue Systems (TODS)—the conversational bots that help users book flights, check weather, or reserve restaurants—increasingly rely on fine-tuned LLMs to understand intent and track user preferences. While it is well-documented that LLMs memorize training data, prior data extraction attacks have focused almost exclusively on open-ended text generation (i.e., forcing a model to regurgitate raw training sentences).
TODS are fundamentally different. They are trained conditionally on dialogue history to output structured "dialogue states" (or belief states), such as:
Restaurant { food = Spanish, people = 3, name = Casa Mono, phone = 123456 }
Because they do not directly replicate raw user utterances, standard extraction attacks fail. Without the exact dialogue history context, standard decoding methods generate incoherent or empty states, or they get heavily biased toward generic phrases (like greetings). This paper addresses this unexplored threat: how an adversary can maliciously induce a task bot to leak these structured, highly sensitive user states without having access to the original dialogue histories.
Methods
The authors propose a two-stage attack pipeline tailored specifically to the structural constraints of task bots:
- Schema-Guided Suffix Decoding: To prevent the bot from generating illegal or out-of-scope states when context is missing, the adversary first maps out the bot's "service scope" (allowable domains and slots). They achieve this via a heuristic model-against-model loop where ChatGPT simulates a user probing the target bot, refined by an inter-temperature consistency check to filter out hallucinated slots. This extracted schema is then used to strictly constrain the token vocabulary during suffix decoding, ensuring the bot only generates valid, structured states.
- Debiased Membership Inference: Traditional membership inference metrics like Perplexity (PPL) are notoriously biased toward generic, information-poor phrases. To fix this, the authors introduce Debiased Conditional Perplexity (DC-PPL). This metric evaluates the conditional probability of the generated suffix given a prefix, normalized by the standalone perplexity of the suffix, effectively canceling out the model's overfamiliarity with common text fragments.
Datasets
The authors evaluated their framework using MultiWOZ 2.1, the gold-standard, multi-domain task-oriented dialogue benchmark containing over 8,400 dialogues spanning 7 domains, 24 slots, and 4,510 distinct values. The target task bot was built by fine-tuning a Llama2 (7B) model using Low-Rank Adaptation (LoRA).
Key Insights and Ideas
- The Context-Precision Paradox: In standard language models, providing more context (longer prefixes) typically increases data extraction precision. Surprisingly, the authors discovered that in task bots, longer prefixes initially decrease state extraction precision. This happens because early dialogue states (e.g., a restaurant preference) are repeated across every subsequent turn in a session, leading to massive turn-level repetition in the training data. Consequently, shorter, early-turn states are heavily memorized, whereas longer, complex states from later turns have fewer repetitions and are harder to extract exactly.
- The One-to-Many Nature of Dialogue: Dialogues are inherently non-deterministic; a single conversation history can lead to multiple valid user choices. This "one-to-many" property naturally reduces exact, event-level state memorization, but it still leaves individual slot values (like phone numbers or addresses) highly vulnerable to leakage.
- Turn-Level Vulnerability: The common practice of training TODS on turn-by-turn slices artificially inflates data repetition, which acts as the primary driver of privacy leakage.
Key Results
The paper evaluates the attack under two settings:
- Untargeted Extraction (No prior knowledge): Even without a specific prefix, individual slot values were extracted with a maximum precision of 67%, though full dialogue states were harder to reconstruct (26% precision).
- Targeted Extraction (Partial state prefix): When seeded with just a partial dialogue state (simulating an adversary with partial knowledge of a user's plan), precision skyrocketed. The proposed schema-guided method achieved up to 100% precision for individual slot values and over 70% precision for full, event-level dialogue states.
- Defensive Insights: The authors demonstrated that moving from turn-level training to Dialogue-Level Modeling (processing the entire dialogue session at once to eliminate turn-by-turn state repetition) and implementing a Value Copy Mechanism drastically reduces memorization risks without degrading the bot's task performance.
Limitations and Future Work
- Score-Based Assumption: The attack relies on a score-based black-box setting, meaning the adversary must be able to query the model's output token probabilities (logits). If a production API strictly returns raw text (hard-label black-box), the ranking metrics become significantly harder to compute.
- Defense Overhead: While Dialogue-Level Modeling successfully mitigates data repetition, it demands substantially more GPU memory and data during the training phase, which could limit its practicality for exceptionally long dialogue sessions.
- Future Directions: The authors suggest exploring text-only data extraction methods and developing more efficient, privacy-preserving fine-tuning techniques tailored for structured dialogue architectures.
Summary updated