Abstract
As language models (LMs) are widely utilized in personalized communication scenarios (e.g., sending emails, writing social media posts) and endowed with a certain level of agency, ensuring they act in accordance with contextual privacy norms becomes increasingly critical. However, quantifying the privacy norm awareness of LMs and the emerging privacy risk in LM-mediated communication is challenging due to the contextual nature of privacy-sensitive cases and the lack of evaluation approaches that capture realistic application scenarios. To address these challenges, we propose PrivacyLens, a novel framework designed to extend privacy-sensitive seeds into expressive vignettes and further into agent trajectories, enabling multi-level evaluation of privacy leakage in LM agents' actions. Using a collection of privacy norms grounded in literature and crowdsourced seeds, we reveal a discrepancy between LM performance in answering probing questions and their actual behavior when executing user instructions. State-of-the-art LMs, like GPT-4 and Llama-3-70B, leak sensitive information in 25.68% and 38.69% of cases, respectively, even when prompted with privacy-enhancing instructions.
Introduction
The transition from simple chatbots to autonomous AI agents marks a significant shift in how we interact with technology. These agents are increasingly granted access to sensitive personal data—emails, calendars, and private notes—to perform tasks like scheduling meetings or drafting reports. While this agency increases utility, it introduces a profound risk: the unintentional leakage of sensitive information. The challenge lies in the fact that privacy is not binary; it is governed by complex social and legal norms. Sharing a meeting location might be appropriate with a family member but a violation of privacy if shared with a business competitor. Current evaluation methods often rely on direct "probing" (e.g., asking a model if it should share a secret), which fails to capture how models behave in complex, multi-step workflows where privacy norms are tested in action.
The PrivacyLens Framework
To bridge the gap between theoretical knowledge and practical behavior, we developed PrivacyLens, a procedural pipeline that transforms abstract privacy rules into executable agent simulations. The framework follows a four-step process:
- Seed Collection: We begin with "seeds" based on the theory of Contextual Integrity. Each seed is defined by a 5-tuple: the Data Type, Subject, Sender, Recipient, and Transmission Principle.
- Vignette Generation: Using GPT-4, these seeds are expanded into realistic "vignettes"—short narratives that provide the context and motivation behind a potential data transfer.
- Trajectory Construction: We utilize a simulated sandbox where an AI agent interacts with tools such as Gmail, Slack, and Notion. The agent is given an "underspecified" instruction (e.g., "Send a summary of my recent activities"), forcing the model to decide whether to include sensitive information it discovers while using its tools.
- The "Surgery Kit": To ensure the evaluation tests norm awareness rather than simple keyword matching, we use a refinement module to remove explicit indicators like "confidential" or "private" from the prompts.
Dataset Composition
The PrivacyLens benchmark comprises 493 privacy-sensitive cases. These cases are grounded in 15 U.S. privacy regulations (including HIPAA, FERPA, and GLBA), academic literature on vulnerable populations, and crowdsourced scenarios from Prolific participants. This diverse dataset allows for a comprehensive evaluation of how agents handle various types of sensitive information across different social and legal contexts.
Key Findings: The "Knowing-Doing Gap"
Our evaluation reveals a startling discrepancy between what models "know" and what they "do." This "knowing-doing gap" suggests that passing a safety quiz is not a guarantee of safe behavior in a functional environment.
1. Probing vs. Action
While state-of-the-art models like GPT-4 can correctly identify privacy violations in nearly 100% of trajectory-level probing questions, they still leak sensitive information in 25.68% of actual agent actions. This indicates that models often fail to apply their internal knowledge of privacy norms when focused on completing a user-assigned task.
2. The Scaling Paradox
Larger, more capable models are not necessarily safer. For instance, Llama-3-70B exhibited a leakage rate of 38.69%, significantly higher than some smaller counterparts. This is often because more capable models are better at extracting and synthesizing information to be "helpful," which can inadvertently lead to higher rates of privacy leakage if the model prioritizes task completion over norm adherence.
3. The Helpfulness-Privacy Trade-off
There is an inherent tension between being a useful assistant and maintaining privacy. Some models achieved lower leakage rates simply by refusing to perform the task or being generally unhelpful. A truly effective agent must balance these two needs, a feat that current models struggle to achieve consistently.
Limitations and Future Directions
While PrivacyLens provides a robust framework for evaluation, it has limitations that guide future research:
- Cultural Specificity: The current dataset is primarily grounded in U.S. regulations and social norms. Privacy expectations are culturally dependent and vary globally.
- Internal vs. External Leaks: Our current focus is on the "final action" (e.g., a sent email). Future work should investigate "internal" leaks, where sensitive data might be passed to third-party APIs or tools during intermediate reasoning steps.
- Human-in-the-Loop: Exploring how agents can seek clarification or consent when encountering ambiguous privacy boundaries is a vital next step for developing trustworthy AI.
Conclusion
PrivacyLens serves as a critical wake-up call for the AI research community. As we move toward agentic AI, we must move beyond simple safety probing and toward evaluations that capture the contextual, multi-step nature of real-world tasks. Ensuring that AI agents respect privacy in action is essential for their safe and ethical integration into our daily lives.
Summary updated