Can LLMs Keep a Secret? Testing Privacy Implications of Language Models via Contextual Integrity Theory

Niloofar Mireshghallah, Hyunwoo Kim, Xuhui Zhou, Yulia Tsvetkov, Maarten Sap, Reza Shokri, Yejin Choi

TL;DR

While most AI privacy research focuses on training data leakage, this paper introduces CONFAIDE, a benchmark that tests whether LLMs can handle "contextual privacy" during live interactions. The results are sobering: even top-tier models like GPT-4 fail to keep secrets in complex social scenarios up to 39% of the time, revealing a fundamental lack of reasoning regarding who should know what.

What Problem Does This Paper Address?

If you tell a friend a secret, you expect them not to blurt it out to your boss. This social intuition is called Contextual Integrity—the idea that privacy isn't just about what information is shared, but to whom and for what purpose.

Current LLM privacy research is obsessed with "memorization" (preventing the model from spitting out social security numbers it saw during training). However, as we move toward LLM-powered personal assistants that summarize meetings or manage emails, a new threat emerges: inference-time leakage. If an LLM assistant has access to your private medical notes and your public calendar, will it accidentally include your diagnosis in a meeting summary sent to your colleagues? This paper investigates whether LLMs possess the "Theory of Mind" and social reasoning required to navigate these boundaries.

Methods

The authors grounded their work in Helen Nissenbaum’s Contextual Integrity (CI) theory. They developed CONFAIDE, a multi-tiered benchmark designed to test privacy reasoning across four levels of increasing complexity:

The four tiers of the CONFAIDE benchmark, illustrating increasing complexity in privacy reasoning.
  1. Tier 1 (Sensitivity): Can the model identify if a piece of info (e.g., health status) is sensitive in a vacuum?
  2. Tier 2 (Flow Appropriateness): Does the model understand if sharing info is okay given a specific actor and use case (e.g., sharing health info with a doctor vs. an insurance company)?
  3. Tier 3 (Theory of Mind): In a story with three people (X, Y, and Z), can the model track that Y knows X’s secret, but Z does not?
  4. Tier 4 (Real-world Application): The model acts as a meeting assistant. It must generate action items and summaries from a transcript where a secret was discussed early on, but a new person (who shouldn't know the secret) joins later.

The researchers evaluated models using Pearson correlation (comparing AI "privacy scores" to human ones) and automated leakage detection (string matching and "proxy models" that try to guess the secret from the AI's output).

Datasets

The authors introduced the CONFAIDE benchmark, which includes:

  • Tier 1: 10 information types from Pew Research studies.
  • Tier 2: 98 vignettes based on legal privacy studies.
  • Tier 3: 270 nuanced social scenarios involving secrets like infidelity or rare diseases.
  • Tier 4: 20 complex meeting transcripts synthesized using GPT-4 with expert human intervention to ensure realistic "secret" and "public" information flows.

Key Insights and Ideas

Heatmap showing how LLMs alter their revealing behavior based on secret types, relationships, and incentives like providing help.
  • The "Helpfulness" Trap: LLMs are RLHF-tuned to be helpful. Often, a model leaks a secret because it’s trying to be thorough. For example, if asked to give a reason why someone is late, the model might "helpfully" explain they have a doctor's appointment for a specific sensitive condition, even if instructed to be private.
  • Reasoning vs. Patching: Simply telling a model "don't share secrets" (a surface-level patch) isn't enough. The models fail because they can't keep track of the "mental states" of different participants in a conversation.
  • CoT Makes it Worse: Surprisingly, Chain-of-Thought (CoT) reasoning—asking the model to "think step-by-step"—actually increased leakage in some cases. The model would explicitly acknowledge the need for privacy in its "thoughts" and then proceed to leak the secret in its final response anyway.
  • Contextual Collapse: As scenarios get more complex (moving from Tier 1 to Tier 3), the correlation between human judgment and model judgment plummets. GPT-4 drops from a strong 0.8 correlation to a near-random 0.1.

Key Results

  • GPT-4 and ChatGPT Failures: Even with direct instructions to preserve privacy, GPT-4 leaked secrets 39% of the time in Tier 4 tasks. ChatGPT was even worse, leaking 57% of the time.
  • Open Source Lag: Models like Llama-2 and Mixtral struggled significantly more, often leaking secrets in nearly 100% of the Tier 3 scenarios.
  • Conservatism vs. Utility: While GPT-4 is generally more "conservative" (hesitant to share) than other models, it still fails to distinguish between appropriate and inappropriate recipients of information.

Limitations and Future Work

The authors acknowledge several limitations:

  • Scale: Tier 4 is relatively small (20 transcripts) due to the complexity of generating high-quality, multi-turn interactions.
  • Modality: The study is limited to text. Future work is needed for multi-modal models (e.g., an AI that "sees" a private document in the background of a video call).
  • Incentives: The benchmark doesn't fully explore the "moral incentives" for sharing (e.g., sharing a secret to prevent harm).

The paper concludes that we need fundamental architectural changes in how LLMs reason about social contexts and "Theory of Mind" before we can safely trust them with sensitive, multi-user data.

Summary updated

BibTeX
@inproceedings{mireshghallah2024can,
  author = {Niloofar Mireshghallah and Hyunwoo Kim and Xuhui Zhou and Yulia Tsvetkov and Maarten Sap and Reza Shokri and Yejin Choi},
  title = {{Can LLMs Keep a Secret? Testing Privacy Implications of Language Models via Contextual Integrity Theory}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=gmg7t8b4s0},
}
Figure