PrivacyLens: Evaluating Privacy Norm Awareness of Language Models in Action

Yijia Shao, Tianshi Li, Weiyan Shi, Yanchen Liu, Diyi Yang

TL;DR

PrivacyLens is a novel evaluation framework that reveals a startling "awareness-action gap" in large language models (LLMs). While state-of-the-art models like GPT-4 can ace privacy-related multiple-choice questions, they frequently leak sensitive information when acting as autonomous agents in realistic scenarios, such as handling emails or summarizing calendars.

An example of an LLM agent leaking sensitive information (a job interview) to a manager while executing an underspecified instruction.

What Problem Does This Paper Address?

As we move from passive "chatbots" to autonomous "agents," LLMs are increasingly granted access to our private data through tool-use (e.g., reading your email to draft a reply) or Retrieval-Augmented Generation (RAG). The challenge isn't just preventing a model from reciting its training data; it’s ensuring the model understands Contextual Integrity.

Privacy isn't binary; it is governed by a set of contextual norms. For example, it might be perfectly acceptable to share your school grades with your parents via a private message, but it would be a massive violation to CC your entire study group on that same information. Existing benchmarks often rely on simple "probing"—asking the model if an action is okay in theory. This fails to capture how these models behave when they are actually "in the driver's seat" executing a complex, underspecified user instruction.

Methods

The researchers developed PrivacyLens, a pipeline designed to move beyond simple Q&A and evaluate models in action.

The PrivacyLens framework pipeline, illustrating how privacy-sensitive seeds are expanded into vignettes and agent trajectories.
  1. Seed Collection: They gathered 493 privacy-sensitive "seeds" based on the theory of Contextual Integrity. Each seed is a 5-tuple: data type, subject, sender, recipient, and transmission principle.
  2. Vignette Generation: Using GPT-4, they expanded these seeds into "vignettes"—short stories that provide realistic context.
  3. The "Surgery Kit": To ensure the tests weren't artificially easy, they created a refinement module called the Surgery Kit. This uses unit tests to strip out explicit keywords like "private" or "confidential," forcing the model to rely on social reasoning rather than just keyword matching.
  4. Agent Trajectories: They built a simulated sandbox where the LLM agent interacts with tools like Gmail, Slack, and Notion. The agent is given an underspecified instruction (e.g., "Update my manager on my week") and must decide what information from its "observations" (like a calendar entry about a job interview with a competitor) is appropriate to include.

Datasets

The authors introduced the PrivacyLens Dataset, which includes:

  • 493 Privacy-Sensitive Seeds: Sourced from 15 U.S. regulations (like HIPAA and FERPA), privacy literature, and crowdsourced brainstorming.
  • Vignettes and Trajectories: Corresponding stories and step-by-step tool-use logs for each seed.
  • Probing Questions: 1,479 questions used to test the models' theoretical privacy knowledge.

The framework is also highly extensible; the authors demonstrated this by successfully porting seeds from other datasets like ConfAIde and CultureBank into the PrivacyLens pipeline.

Key Insights and Ideas

  • The Awareness-Action Discrepancy: This is the core finding of the paper. There is a massive disconnect between what a model knows is wrong and what it actually does. A model might correctly answer "No" when asked if it's okay to share a colleague's divorce details, but then proceed to include those exact details in an email summary it drafts seconds later.
  • The Failure of Scaling: Interestingly, making models bigger doesn't automatically fix the problem. While larger models (like Llama-3-70B) are much better at QA probing tasks, they still exhibit high leakage rates in action-based scenarios.
  • Prompting is Not a Panacea: Even when models are given "Privacy-Enhancing Prompts" (explicitly instructing them to be privacy-conscious), they still leak sensitive info in over 25% of cases.

Key Results

The quantitative results highlight a significant risk for agentic workflows:

  • GPT-4: Achieved a near-perfect 98.99% accuracy on probing questions but suffered a 25.68% leakage rate in actual agent actions.
  • Llama-3-70B: Showed a similar gap, with 98.58% probing accuracy versus a 38.69% leakage rate.
  • Safety-Helpfulness Trade-off: Some models, like Llama-3-8B, showed lower leakage rates (~23%) but were often rated as "unhelpful" because they became overly paranoid, refusing to share even non-sensitive information required to complete the task.

Limitations and Future Work

The authors acknowledge several key limitations:

  • Cultural Bias: The current dataset focuses primarily on privacy norms within the United States. Privacy is deeply cultural, and norms vary significantly globally.
  • Final Action Focus: The evaluation currently focuses on the final output of the agent. It doesn't account for privacy leaks that might occur "mid-thought" or through intermediate tool calls.
  • Pipeline Dependency: The data construction relies on GPT-4, which might influence the types of scenarios generated.

Future work involves expanding the framework to include more diverse cultural norms and developing better "privacy-by-design" architectures for agents that go beyond simple system prompting.

Summary updated

BibTeX
@inproceedings{shao2024privacylens,
  author = {Yijia Shao and Tianshi Li and Weiyan Shi and Yanchen Liu and Diyi Yang},
  title = {{PrivacyLens: Evaluating Privacy Norm Awareness of Language Models in Action}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=9rPIV6B9dl},
}
Figure