Personalized Privacy Control in LLMs via Attention Head Intervention
Organizations: IPAI, Seoul National University · Max Planck Institute for Software Systems
Abstract
The rise of agentic AI enables LLMs to access diverse user data, raising critical privacy concerns. Prior work on contextual privacy studies whether LLMs regulate information disclosure according to context-dependent norms. However, acceptable disclosure boundaries may vary across users even within the same context. To address this limitation, we introduce personalized privacy, which incorporates user-specific disclosure preferences into privacy control. We further present P3Bench~(Personalized Privacy Preservation Benchmark), a novel benchmark extending contextual privacy policies with personalized disclosure policies. Experiments show that prompt-based policies fail to reliably enforce personalized privacy policies, with Qwen2.5-7B and Gemma3-4B showing average policy ignorance ratios of 51.25% and 74.28%, respectively. Finally, to address this problem, we propose Repair, a robust inference-time attention head intervention method that adjusts disclosure behavior toward policy-consistent responses. Our method significantly improves adherence to user-specific privacy preferences by reducing cases where the model fails to follow the given policy.
Figures & tables
| State | Task Requirement | Personal Policy | Action |
|---|---|---|---|
| Disclosure | ✓ | ✓ | Answer |
| Policy-Refusal | ✓ | ✗ | Refuse |
| Base-Refusal | ✗ | N/A | Refuse |
| Instruct Model | Method | Privacy-Max | Contact-Open | Health-Open | Preference-Open | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| OR | OS | PED | OR | OS | PED | OR | OS | PED | OR | OS | PED | ||
| Qwen2.5-3B | DP | 67.06 | 23.65 | 71.11 | 73.53 | 25.23 | 77.74 | 57.82 | 10.61 | 58.79 | 29.83 | 16.86 | 34.26 |
| CoT | 8.24 | 35.12 | 36.07 | 36.97 | 37.23 | 52.47 | 30.76 | 27.41 | 41.20 | 24.79 | 31.90 | 40.40 | |
| CAST | 3.53 | 29.35 | 29.56 | 55.04 | 30.56 | 62.95 | 36.81 | 15.71 | 40.02 | 23.11 | 21.32 | 31.44 | |
| AdaSteer | 23.53 | 17.23 | 34.57 | 41.69 | 33.61 | 53.55 | 22.44 | 24.20 | 33.01 | 23.53 | 17.23 | 29.16 | |
| Repair | 4.71 | 4.87 | 6.78 | 34.45 | 3.97 | 34.68 | 30.92 | 10.03 | 32.51 | 13.87 | 9.07 | 16.57 | |
| Policy | Method | OR | OS | PED |
|---|---|---|---|---|
| Privacy-Max | DP | 74.12 | 2.35 | 74.16 |
| Random | 56.47 | 2.81 | 56.54 | |
| AUROC-based | 32.94 | 1.45 | 32.97 | |
| Contact-Open | DP | 75.63 | 3.09 | 75.69 |
| Random | 54.20 | 4.15 | 54.36 | |
| AUROC-based | 18.91 | 1.76 | 18.99 |
| Policy | Method | OR | OS | PED |
|---|---|---|---|---|
| Privacy-Max | Repair | 4.71 | 4.87 | 6.78 |
| Repair-G | 4.71 | 1.25 | 4.87 | |
| Contact-Open | Repair | 34.45 | 3.97 | 34.68 |
| Repair-G | 20.17 | 2.94 | 20.38 | |
| Health-Open | Repair | 30.92 | 10.03 | 32.51 |
| Repair-G | 24.37 | 9.69 | 26.23 |
Appendix figures & tables20 assets
Supplementary material from the paper’s appendix.
Appendix
| Model | Match (%) | Cohen’s | MCC |
|---|---|---|---|
| Qwen2.5-3B-Instruct | 97.09 | 0.778 | 0.790 |
| Qwen2.5-7B-Instruct | 99.57 | 0.962 | 0.962 |
| Gemma-3-4B-it | 97.89 | 0.899 | 0.900 |
| Field | Privacy-Max | Contact-Open | Health-Open | Preference-Open |
|---|---|---|---|---|
| name | ✓ | ✓ | ✓ | ✓ |
| phone_number | ✗ | ✓ | ✗ | ✗ |
| ✗ | ✓ | ✗ | ✗ | |
| age | ✗ | ✗ | ✓ | ✗ |
| current_physical_health_conditions | ✗ | ✗ | ✓ | ✗ |
| current_mental_health_conditions | ✗ | ✗ | ✓ | ✗ |
| Model | Policy | ||
|---|---|---|---|
| Qwen2.5-3B | Privacy-Max | 5.0 | 20 |
| Contact-Open | 2.0 | 30 | |
| Health-Open | 5.0 | 50 | |
| Preference-Open | 1.5 | 50 | |
| Qwen2.5-7B | Privacy-Max | 10 | 10 |
| Contact-Open | 5.0 | 30 |
| Method | P.M | C.O | H.O | P.O | Avg. |
|---|---|---|---|---|---|
| DP | 73.90 | 75.70 | 73.20 | 74.30 | 74.28 |
| CoT | 46.92 | 42.33 | 31.59 | 51.28 | 43.03 |
| CAST | 75.34 | 76.47 | 70.32 | 75.24 | 74.34 |
| AdaSteer | 70.19 | 70.12 | 66.36 | 64.53 | 67.80 |
| Repair | 47.40 | 29.00 | 30.75 | 44.60 | 37.94 |
| Policy | Qwen2.5-3B | Qwen2.5-7B | ||
|---|---|---|---|---|
| State Acc | Behavior Acc | State Acc | Behavior Acc | |
| Privacy-Max | 98.70 | 95.56 | 99.60 | 98.01 |
| Contact-Open | 95.93 | 93.78 | 97.29 | 97.09 |
| Health-Open | 86.54 | 92.61 | 91.06 | 94.75 |
| Preference-Open | 91.20 | 98.91 | 92.93 | 98.45 |
| Field | |||||||||
|---|---|---|---|---|---|---|---|---|---|
| 0 | 1 | 2 | 0 | 1 | 2 | 0 | 1 | 2 | |
| name | ✓ | ✗ | ✗ | ✗ | ✗ | ✓ | ✗ | ✓ | ✓ |
| phone_number | ✗ | ✗ | ✗ | ✗ | ✗ | ✓ | ✓ | ✗ | ✗ |
| ✓ | ✓ | ✗ | ✓ | ✗ | ✗ | ✗ | ✗ | ✓ | |
| age | ✗ | ✗ | ✓ | ✗ | ✓ | ✗ | ✓ | ✗ | ✓ |
| current_physical_health_conditions | ✗ | ✗ | ✗ | ✗ | ✓ | ✗ | ✗ | ✗ | ✗ |
| Policy | Method | OR | OS | PED |
|---|---|---|---|---|
| Privacy-Max | residual | 65.88 | 8.32 | 66.40 |
| mlp | 63.53 | 16.4 | 65.61 | |
| attn-head | 48.24 | 14.89 | 50.48 | |
| Contact-Open | residual | 75.21 | 7.94 | 75.63 |
| mlp | 68.12 | 22.8 | 71.83 | |
| attn-head | 55.46 | 1.46 | 55.48 |
| Policy | Design | OR | OS | PED |
|---|---|---|---|---|
| Contact-Open | steering | 70.59 | 16.65 | 72.52 |
| patching | 65.55 | 4.55 | 65.70 | |
| refuse-only | 76.05 | 4.64 | 76.19 | |
| disclose-only | 34.45 | 26.56 | 43.50 | |
| Repair | 34.45 | 3.97 | 34.68 | |
| Health-Open | steering | 31.09 | 13.06 | 33.72 |
| Instruct Model | Method | Privacy-Max | Contact-Open | Health-Open | Preference-Open | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| OR | OS | PED | OR | OS | PED | OR | OS | PED | OR | OS | PED | ||
| Qwen2.5-3B | DP | [57.07, 77.05] | [22.23, 25.06] | [61.67, 80.54] | [67.92, 79.13] | [23.75, 26.71] | [72.41, 83.06] | [53.85, 61.78] | [9.50, 11.72] | [54.87, 62.69] | [24.02, 35.64] | [15.58, 18.14] | [29.17, 39.37] |
| CoT | [2.39, 14.08] | [33.53, 36.71] | [34.03, 38.12] | [30.84, 43.11] | [35.58, 38.88] | [48.00, 56.95] | [27.05, 34.46] | [25.79, 29.02] | [38.23, 44.16] | [19.30, 30.28] | [30.31, 33.49] | [36.81, 43.99] | |
| CAST | [0.00, 7.45] | [27.83, 30.87] | [27.99, 31.14] | [48.72, 61.36] | [28.99, 32.14] | [57.38, 68.54] | [32.93, 40.68] | [14.39, 17.02] | [36.42, 43.62] | [17.75, 28.46] | [19.92, 22.71] | [27.39, 35.49] | |
| Repair | [0.20, 9.21] | [4.15, 5.59] | [3.60, 9.94] | [28.42, 40.49] | [3.31, 4.64] | [28.68, 40.68] | [27.21, 34.64] | [8.94, 11.12] | [28.96, 36.06] | [9.47, 18.26] | [8.09, 10.05] | [12.85, 20.28] | |
| Qwen2.5-7B | DP | [64.81, 83.43] | [1.84, 2.85] | [64.85, 83.46] | [70.18, 81.08] | [2.50, 3.68] | [70.24, 81.14] | [37.55, 45.47] | [5.86, 7.67] | [38.15, 45.97] | [52.57, 65.08] | [3.84, 5.26] | [52.76, 65.23] |
Privacy-Preserving Language Models
Privacy-preserving language models protect sensitive data during training, inference, personalization, and information sharing.
See all 171 papers