← Lab /AI/ML

Contextualized Defense Instructing improves privacy to 94.2% while keeping helpfulness at 80.6%

CDI achieves a better privacy-helpfulness trade-off than prior static defenses

AI/ML arXiv 3 Mar 2026 Defense Simulation evidence

Published as “Contextualized Privacy Defense for LLM Agents”

Why it matters

CDI could enable LLM agents to handle personal data more safely in real-world deployments, reducing privacy leaks while preserving utility.

Summary

CDI achieves a privacy preservation rate of 94.2% and a helpfulness score of 80.6%, outperforming prompting and guarding baselines. It uses a lightweight instructor model to give step-specific, context-aware guidance and is further strengthened by an experience-driven RL optimization that learns from failure trajectories. However, under strategic attacks its privacy rate drops sharply (e.g., from 75.9% to 38.1% and from 89.7% to 79.5% after optimization), showing brittleness to adaptive adversaries.

What they found 2

  1. CDI attains the highest privacy-helpfulness trade-off among evaluated defenses.

    “Results show that our CDI consistently achieves a better balance between privacy preservation (94.2%) and helpfulness (80.6%) than baselines”

  2. After RL optimization CDI remains the most robust and generalizable defense.

    “CDI remains the most effective after optimization, delivering the most robust and generalizable privacy protection. It maintains the strongest privacy-utility balance and stays robust under a new attack round (PP: 89.7% → 79.5%).”

Caveats 2

  • CDI 75.9 86.9 82.8 38.1 89.8 71.4
  • All privacy defenses are brittle to strategic attackers.

What’s new here 4

  • Step-specific, context-aware privacy guidance generated during execution rather than static prompts.
  • A lightweight instructor model (e.g., Qwen3-4B) that can steer larger agent backbones.
  • Experience-driven optimization that converts privacy-leak trajectories into RL training signals.
  • Demonstrated robustness and generalization improvements over prompting and guarding across unseen scenarios.