It Takes Two: Complementary Self-Distillation for Contextual Integrity in LLMs

Sangwoo Park, Woongyeong Yeo, Seanie Lee, Yumin Choi, Hyomin Lee, Kangsan Kim, Jinheon Baek, Seong Joon Oh, Sung Ju Hwang

TL;DR

This paper introduces SELFCI, a self-distillation framework designed to align Large Language Models (LLMs) with the principles of Contextual Integrity (CI)—ensuring models share the right information based on context rather than blindly hiding or revealing everything. By training a model against two of its own internal "teachers" (one optimizing for task completion and the other for privacy), SELFCI achieves a superior privacy-utility trade-off without relying on expensive external supervision.

What Problem Does This Paper Address?

As LLMs transition into personal agents, they gain access to highly sensitive user data like medical histories, emails, and passport numbers. Traditional privacy approaches often treat data protection as a binary problem: either keep data entirely secret or redact it.

However, real-world privacy is governed by Contextual Integrity (CI), meaning the appropriateness of sharing information depends entirely on the context. For example, sharing a check-in date is necessary when booking a hotel, but sharing a passport number might be completely irrelevant and unsafe (see Figure 1).

Existing alignment strategies struggle with this asymmetry. Forcing a model to be "as private as possible" severely degrades its ability to solve tasks (utility). Conversely, standard reinforcement learning or fine-tuning methods collapse these opposing pressures into a single, monolithic reward signal, which often leads to over-disclosure or task failure.

Figure 1: Conceptual illustration of the ideal CI state in Def. 2.1. A CI-aligned assistant should remain sensitive to task-relevant allowed information while invariant to disallowed information.

Methods

The authors propose SELFCI (Self-Distillation for Contextual Integrity), a framework that decouples task resolution from information suppression using a Product-of-Experts (PoE) approach:

  1. Feedback Generation: The model leverages its own parameters to generate rationales explaining why specific attributes should or should not be disclosed based on context-specific transmission norms.
  2. Complementary Teachers: These self-generated rationales are used to condition two distinct teacher distributions from the model's own parameters: a utility-oriented teacher ($\pi_{\text{allow}}$) and a privacy-oriented teacher ($\pi_{\text{disallow}}$).
  3. Joint Optimization: The student model is trained by minimizing two independent reverse KL divergences against both teachers simultaneously. Mathematically, this joint optimization targets the intersection of both experts' high-probability regions, ensuring the final policy satisfies both completeness and privacy constraints.
Figure 2: SELFCI uses self-generated feedback to instantiate two teacher distributions from its own parameters, πallow promoting utility and πdisallow enforcing privacy. Joint optimization against both teachers aligns the policy with the intersection where utility and privacy are simultaneously satisfied.

Datasets

The authors evaluated SELFCI across three distinct benchmarks:

  • CI-RL: A synthetic dataset isolating the privacy-utility trade-off via assistant-task instances with explicit disclosure annotations (used for in-domain training and testing).
  • PrivacyLens: An out-of-domain benchmark that evaluates privacy norm awareness within tool-using agent trajectories.
  • CIMemories: A complex benchmark where private user attributes progressively accumulate across sequential tasks, testing the model's robustness under a growing memory profile.

Key Insights and Ideas

  • Context-Dependent Invariance: Rather than enforcing flat data-redaction rules, a model's predictive distribution should be invariant to the injection of disallowed information while remaining highly sensitive to task-legitimate context.
  • The Pitfall of "Allowed-Only" Targets: Simply training a model on a subset of allowed attributes fails because it doesn't teach the model how to use that information effectively, leading to unstable task performance.
  • Decomposition Over Monolithic Rewards: Collapsing privacy and utility into a single scalar reward obscures the structural asymmetry of CI. Decomposing the problem into complementary teachers provides much sharper, token-level supervision.
  • On-Policy Efficiency: Because the teachers are derived from the model itself and updated via an Exponential Moving Average (EMA), SELFCI avoids the exposure bias typical of external-teacher distillation and remains highly sample-efficient.

Key Results

  • Superior Privacy-Utility Trade-Offs: Across multiple instruction-tuned and reasoning backbones (e.g., Qwen, Llama, DeepSeek), SELFCI consistently outperformed online RL (GRPO) and offline context distillation. For example, on Qwen2.5-7B-Instruct, it boosted the "Complete" score (satisfying both utility and privacy) from 23.29% to 53.42%.
  • Computational Efficiency: As shown in Figure 3, SELFCI cut training time per step nearly in half compared to online RL baselines (7.77 seconds vs. 15.02 seconds) because it requires only one rollout per prompt instead of 16.
  • Robustness to Memory Accumulation: In the sequential CIMemories benchmark, baseline models suffered from compounding privacy failures as user profiles grew. In contrast, SELFCI successfully kept the violation rate below 5% across dozens of accumulated tasks.
Figure 3: (Left) Average DKL defined in Eq. 1 and Complete scores in Tab. 1 on the CI-RL test set computed using Qwen2.5-7B-Instruct. (Middle) Per-epoch Complete scores on the CI-RL test set and (Right) GPU wall-clock time per training step, using Qwen3-4B-Instruct.

Limitations and Future Work

  • Reliance on Synthetic Annotations: SELFCI currently relies on structured synthetic datasets with explicit attribute annotations, which may not fully capture the messy ambiguity of real-world human privacy norms.
  • Model Size Constraints: Because the framework depends on a model's ability to generate high-quality rationales for its teachers, its effectiveness may be limited in smaller models with weaker in-context learning capabilities.
  • Static Hyperparameters: The balance between the two teachers ($\lambda$) is currently fixed; exploring adaptive coefficient selection remains an open area for future work.
  • Output-Level Focus: The evaluation focuses primarily on final text responses, leaving the analysis of potential privacy leaks within intermediate reasoning traces or tool states for future research.

Summary updated

BibTeX
@inproceedings{park2026it,
  author = {Sangwoo Park and Woongyeong Yeo and Seanie Lee and Yumin Choi and Hyomin Lee and Kangsan Kim and Jinheon Baek and Seong Joon Oh and Sung Ju Hwang},
  title = {{It Takes Two: Complementary Self-Distillation for Contextual Integrity in LLMs}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=nooJ7FeVj4},
}
Figure