TL;DR
While large language models (LMs) are excellent at answering abstract questions about privacy, they frequently leak sensitive user data when acting as autonomous agents executing real-world tasks. To expose this gap, the authors introduce PrivacyLens, a novel evaluation framework and dataset that tests an agent's awareness of contextual privacy norms in action. The results are sobering: state-of-the-art models like GPT-4 leak sensitive information in over 25% of realistic scenarios, even when explicitly instructed to protect user privacy.
What Problem Does This Paper Address?
Most existing research on language model privacy focuses on adversarial threats—like malicious users trying to extract training data or infer membership. However, as LMs transition into autonomous agents equipped with tools (like reading calendars, accessing databases, or sending emails), a new risk emerges: unintentional privacy leakage.
Privacy isn't just about hiding secrets; it is governed by contextual integrity—the social norms dictating whether a specific data flow is appropriate given the sender, recipient, and relationship. For example, it is perfectly fine for an LM agent to include your calendar events in a weekly report to your manager, unless that event happens to be an interview with a competing company.
Currently, we lack benchmarks to evaluate whether LM agents understand these subtle, unstructured social boundaries. Furthermore, there is a major disconnect between an LM's ability to pass abstract privacy multiple-choice tests (probing) and its actual behavior when executing complex user instructions.
Methods
The authors developed PrivacyLens, a procedural framework designed to generate realistic agent scenarios from foundational privacy rules and evaluate model behavior at multiple levels.
The pipeline consists of three main stages:
- Contextual Privacy-Sensitive Seeds: Grounded in Contextual Integrity theory, each seed is defined by a 5-tuple: data type, data subject, data sender, data recipient, and transmission principle.
- Expressive Vignettes: The abstract seed is expanded into a realistic short story using GPT-4. To ensure the scenario remains subtle, the authors use a "Surgery Kit" module—a loop of deterministic unit tests and LM refinements that strips out explicit giveaway words like "confidential" or "sensitive."
- Agent Trajectories: The framework uses an emulated sandbox environment (built on ToolEmu) where a GPT-4 agent interacts with tools like Gmail, Slack, and Google Calendar. The simulation runs right up until the final action (e.g., sending the final email), creating an executable trajectory that can be handed off to any target LM for evaluation.
Datasets
The authors curated a primary evaluation dataset containing 493 valid privacy-sensitive instances (each including a seed, vignette, and agent trajectory). The seeds were sourced from:
- U.S. Privacy Regulations: 15 legal frameworks including HIPAA, FERPA, and GLBA.
- Privacy Literature: Research focusing on privacy norms within vulnerable or marginalized groups.
- Crowdsourcing: Human-in-the-loop brainstorming via Prolific to scale up diverse social scenarios.
To prove the framework's flexibility, the authors also successfully extended subsets of two existing datasets into the PrivacyLens format: ConfAIde (a contextual privacy dataset) and CultureBank (a cultural knowledge base).
Key Insights and Ideas
- The Probing Paradox: Strong models exhibit a massive discrepancy between what they "know" and what they "do." An agent might score perfectly when asked, "Is it acceptable to share X with Y?" yet immediately turn around and leak X when executing a user instruction to email Y.
- Prompt Engineering Limits: Standard safety guardrails fail here. Adding a "Privacy-Enhancing Prompt" to the system instructions significantly boosts abstract QA performance, but it barely moves the needle when it comes to stopping actual data leaks during tool use.
- The Safety-Helpfulness Trade-off: When weaker models try to avoid leaking data, they often overcorrect by becoming completely unhelpful—either refusing to complete the task or telling the user to log in and do it manually.
Key Results
The multi-level evaluation highlights a stark contrast between abstract reasoning and actual agent behavior.
As shown in the probing results, top-tier models like GPT-4, Claude-3-Sonnet, and Llama-3-70B achieve near 100% accuracy on trajectory-level probing questions. However, when evaluated in an agent setup where they must generate the final action, the leakage rates skyrocket.
- GPT-4 leaked sensitive information in 25.68% of cases, even when guided by a privacy-enhancing prompt.
- Meta-Llama-3-70B-Instruct performed worse, leaking data in 38.69% of cases under the same conditions.
- While smaller models like Llama-3-8B showed lower leakage rates (~23%), their helpfulness scores were significantly worse, frequently failing to fulfill the user's core instruction.
Limitations and Future Work
The authors note several boundaries to their current work:
- Geographic Bias: The dataset exclusively covers general privacy norms within the United States. Privacy expectations vary wildly across different cultures and regions.
- Trajectory Source: The environment trajectories were generated using a GPT-4 agent, meaning other models were only evaluated on their ability to execute the final action safely, rather than navigating the entire multi-turn tool interaction.
- Scope: The benchmark focuses primarily on LM-mediated communication (emails, messaging) and does not yet cover other agent modalities, such as web-browsing agents interacting with live websites.
Summary updated