← Lab /AI/ML

Instruction-following models leak private data despite prompt defenses; structural isolation prevents leakage

No softmax-based model can achieve high task success with zero privacy leakage using only soft-constraint defenses

AI/ML arXiv 17 Jun 2026 Benchmark Prototype evidence

Published as “TRAP: Benchmark for Task-completion and Resistance to Active Privacy-extraction”

Why it matters

Structural isolation of private fields offers a practical path to protect sensitive data in document-grounded LLM agents without sacrificing task performance.

Summary

All 22 evaluated models leak private information, achieving privacy scores below 27% even when task accuracy is high, and prompt-based defenses only trade privacy for lower task performance. The paper proves that any soft-constraint (prompt) defense cannot achieve zero leakage for softmax-based models, establishing a fundamental trade-off. By replacing private fields with hash keys before they reach the model (private field isolation), leakage is reduced to 90%+ privacy while preserving task accuracy in the ideal (Oracle) setting. However, imperfect masking (Practical/Auto) and the cost of prompt defenses limit real-world effectiveness.

What they found 2

  1. All model families exhibit low privacy scores despite high task accuracy.

    “In Table 1, all evaluated model families exhibit consistently low privacy scores despite achieving competitive task accuracy, revealing that privacy-preserving behavior does not emerge naturally from general instruction-following capability.”

  2. Oracle masking yields privacy scores of 90%+ with little impact on task accuracy.

    “Under Oracle masking, privacy score reaches 90% or above across all evaluated models regardless of model family or scale, while preserving the task accuracy.”

Caveats 5

  • When masking precision degrades under the Practical and Auto configurations, imprecise mask boundaries can leave private fields partially exposed or occlude non-private content, causing both privacy score and task accuracy to fall relative to the Oracle condition.
  • Prompt-based defenses reduce leakage but impose significant costs to task accuracy.
  • Our evaluation assumes a simplified setting where each query is accompanied only by the documents needed for the task, while real-world RAG deployments would add the model’s retrieval ability as an additional factor in the privacy-utility trade-off.
  • In the private field isolation, our image masking design overlays a hash key label on a black-filled region, which becomes illegibly small when the masked region is too narrow to accommodate it.
  • In the Practical configuration, OCR localization errors further introduce unmasked regions that contribute to residual leakage.

What’s new here 4

  • Introduces TRAP, an active benchmark that jointly measures task completion and resistance to explicit privacy extraction attacks.
  • Provides a formal impossibility theorem showing soft-constraint defenses cannot guarantee zero leakage for softmax models.
  • Proposes structural private-field isolation using hashed keys to prevent leakage, demonstrating near-perfect privacy under precise masking.
  • Evaluates 22 proprietary and open-source multimodal models across scales, revealing a consistent utility-privacy tension.