Abstract
Large language model (LLM) agents are increasingly deployed in personalized tasks involving sensitive, context-dependent information, where privacy violations may arise in agents' action due to the implicitness of contextual privacy. Existing approaches rely on external, inference-time interventions which are brittle, scenario-specific, and may expand the privacy attack surface. We propose PrivAct, a contextual privacy-aware multi-agent learning framework that internalizes contextual privacy preservation directly into models' generation behavior for privacy-compliant agentic actions. By embedding privacy preferences into each agent, PrivAct enhances system-wide contextual integrity while achieving a more favorable privacy-helpfulness tradeoff. Experiments across multiple LLM backbones and benchmarks demonstrate consistent improvements in contextual privacy preservation, reducing leakage rates by up to 12.32% while maintaining comparable helpfulness, as well as zero-shot generalization and robustness across diverse multi-agent topologies.
Introduction
Large language model (LLM) agents often handle sensitive, context-dependent information where privacy norms are implicit. Unlike explicit privacy (e.g., PII like Social Security Numbers), contextual privacy is defined by situational norms: sharing medical data with a doctor is appropriate, but including it in a summary for a coworker is a violation.
Current solutions typically rely on inference-time interventions, such as complex prompt engineering or external "gatekeeper" agents. These methods are often brittle, require heavy manual tuning for new use cases, and can expand the attack surface by leaking sensitive data within intermediate reasoning traces (e.g., Chain-of-Thought). PrivAct addresses these flaws by internalizing privacy preservation directly into the model's weights during training.
The PrivAct Framework
PrivAct shifts privacy enforcement from inference-time guardrails to training-time internalization using a distributed, multi-agent preference learning framework.
Multi-Agent Preference Training
The system utilizes a pipeline of agents (e.g., Generator, Verifier, Refiner). Since only the final output can be evaluated for both privacy and helpfulness, a tree-search approach generates multiple response trajectories. Credit is then assigned to intermediate agents, creating preference datasets used for optimization via Direct Preference Optimization (DPO).
Leakage-Conditioned Asymmetric Reward Shaping (LC-ARS)
To prevent models from trading privacy for helpfulness, PrivAct introduces LC-ARS. This mechanism treats privacy as a strict prerequisite. If any leakage occurs, the reward function applies compounding penalties to both the leakage severity and the helpfulness score. Positive rewards for being helpful are only unlocked if the privacy leakage is exactly zero.
Experimental Results
PrivAct was evaluated across four LLM backbones (Llama-3.1-8B, Llama-3.2-1B, Mistral-7B, Qwen3-4B) using benchmarks like PrivacyLens (agentic actions) and ConfAIde (zero-shot Theory of Mind probing).
Key Insights
- Superior Tradeoff: PrivAct consistently established a better Pareto frontier than baselines. On Mistral-7B, it reduced the average privacy leakage rate by 12.32% compared to the Agent-based Information Flow Control (AIFC) baseline while maintaining nearly identical helpfulness.
- Zero-Shot Generalization: Training models to act privately in agentic settings yielded improvements on static probing benchmarks without additional fine-tuning.
- Internalization vs. Guardrails: Embedding privacy preferences directly into the model's weights avoids the "leaky thoughts" problem, as the model learns to omit sensitive data naturally rather than filtering it out after the fact.
- Topology Agnosticism: The learned privacy behaviors remain effective even when agents are rearranged into different multi-agent topologies.
Conclusion
PrivAct demonstrates that contextual privacy can be effectively internalized into LLM generation behavior, eliminating the need for brittle external guardrails. By treating privacy as a non-negotiable prerequisite through asymmetric reward shaping, the framework achieves a state-of-the-art balance between helpfulness and data protection. Future work will explore robustness against adversarial jailbreak attempts and the impact of the judge model's accuracy on training data quality.
Summary updated