Distilling Human-Aligned Privacy Sensitivity Assessment from Large Language Models
Organizations: Hornetsecurity, Hem, France · Univ. Lille, Inria, CNRS, Centrale Lille, UMR 9189 - CRIStAL, F-59000 Lille, France
Abstract
Accurate privacy evaluation of textual data remains a critical challenge in privacy-preserving natural language processing. Recent work has shown that large language models (LLMs) can serve as reliable privacy evaluators, achieving strong agreement with human judgments; however, their computational cost and impracticality for processing sensitive data at scale limit real-world deployment. We address this gap by distilling the privacy assessment capabilities of Mistral Large 3 (675B) into lightweight encoder models with as few as 150M parameters. Leveraging a large-scale dataset of privacy-annotated texts spanning 10 diverse domains, we train efficient classifiers that preserve strong agreement with human annotations while dramatically reducing computational requirements. We validate our approach on human-annotated test data and demonstrate its practical utility as an evaluation metric for de-identification systems.
Figures & tables
| Dataset | Avg tokens | % Priv. | |
|---|---|---|---|
| MHB | 272 | 3.31 | 77.4 |
| RMHP | 225 | 2.92 | 64.7 |
| RC | 306 | 2.89 | 60.6 |
| RLA | 283 | 2.84 | 60.3 |
| MQ | 136 | 2.34 | 44.6 |
| EE | 332 | 2.16 | 33.5 |
| Model | Params | Acc. | Macro F1 | MAE | Per-class F1 | ||||
|---|---|---|---|---|---|---|---|---|---|
| C1 | C2 | C3 | C4 | C5 | |||||
| Ettin-150M | 149M | 74.9 | 68.1 | 0.28 | 91.5 | 58.3 | 58.5 | 63.6 | 68.6 |
| ModernBERT-base | 149M | 73.7 | 67.2 | 0.28 | 91.9 | 57.4 | 57.7 | 62.8 | 68.2 |
| BERT-base | 110M | 73.3 | 65.9 | 0.29 | 91.3 | 55.4 | 55.7 | 60.6 | 66.4 |
| Ettin-17M | 17M | 71.1 | 62.5 | 0.34 | 90.1 | 51.2 | 52.8 | 57.5 | 60.7 |
| Condition | % Class 1 | ||
|---|---|---|---|
| Original | 3.25 | – | 25.2 |
| Mask direct | 2.91 | 0.34 | 30.5 |
| Mask quasi | 3.02 | 0.23 | 28.5 |
| Mask ALL | 1.39 | 1.86 | 84.1 |
| Mask 30% random | 3.56 | -0.31 | 17.3 |
Privacy-Preserving ML
Privacy-preserving machine learning develops methods to learn, share, and run models while limiting exposure of sensitive data.
See all 432 papers