P2Skill: Privacy Preserving Skill Distillation for Cloud-Local LLM Inference Systems
Organizations: Department of Electrical and Computer Engineering, Korea University, Seoul, Republic of Korea
Abstract
Cloud-local LLM inference can use the reasoning capability of large cloud models, but cloud-bound requests must exclude personally identifiable information (PII). Existing privacy-preserving methods modify the prompt or the model, which may distort contextual semantics or require additional training. This paper proposes P2Skill, a prompt-based skill distillation method in which a local small language model (SLM) autonomously performs four skills. A cloud LLM iteratively refines the skills from execution failures to let the local SLM generalize beyond memorized PII patterns, and the final skills are selected at the lowest validation leakage within set bounds. P2Skill requires no privacy-specific fine-tuning or learned auxiliary detectors. On real user queries, P2Skill on the best of three local SLMs transmits fewer annotated identifiers than every existing privacy-preserving method that sends text to the cloud and preserves quality more often than the closest of them in leakage, although fully local answering preserves quality more often.
Figures & tables
| PRISM-160 | PUPA test | ||||||||||
| Local SLM | Method | Leak | J-Leak | Q | IQ | PQ | Leak | J-Leak | Q | IQ | PQ |
| – | Cloud Only | 100.0 | 98.9 | – | 9.06 | 0.00 | 100.0 | 97.0 | – | 8.66 | 0.00 |
| Presidio | 37.9 | 37.9 | 0.344 | 8.04 | 5.03 | 46.4 | 49.4 | 0.528 | 7.63 | 4.00 | |
| Presidio+GLiNER | 2.3 | 2.3 | 0.325 | 8.01 | 8.19 | 22.8 | 24.4 | 0.452 | 7.42 | 5.61 | |
| Gemma4 | Local Only | 0.0 | – | 0.938 | 9.11 | – | 0.0 | – | 0.877 | 8.64 | – |
| Uniform LDP | 69.3 | 66.7 | 0.731 | 8.29 | 2.81 | 66.9 | 73.6 | 0.567 | 7.71 | 2.54 | |
| cloud | local | ||||||
|---|---|---|---|---|---|---|---|
| Prompts | SLM | direct | para- phrased | solvable | fallback | skipped | |
| PII | Gemma4 | 80 | 0.0 | 77.5 | 22.5 | 0.0 | 0.0 |
| Qwen3.5 | 97 | 12.4 | 43.3 | 44.3 | 0.0 | 0.0 | |
| Llama3.2 | 80 | 43.8 | 51.2 | 5.0 | 0.0 | 0.0 | |
| PII-free | Gemma4 | 80 | 27.5 | 66.2 | 6.2 | 0.0 | 0.0 |
| Qwen3.5 | 140 | 37.1 | 14.3 | 48.6 | 0.0 | 0.0 | |
Appendix figures & tables6 assets
Supplementary material from the paper’s appendix.
Appendix
| (a) M11 , Gemma4:e2B, no leak, paraphrased (62 prompts) | |
|---|---|
| Prompt | A 7-year-old female patient named Mia reports symptoms: pain, fatigue, indigestion, bloating. What is the likely diagnosis? |
| Sub-task | The whole prompt, , cloud paraphrased |
| To cloud | A 7-year-old female patient reports symptoms: pain, fatigue, indigestion, bloating. What is the likely diagnosis? |
| Answer | When evaluating a 7-year-old female patient named Mia […], one likely diagnosis […] is celiac disease. […] |
| Result | Leak 0/0/0, Q tie, IQ 9 |
| P+G | A [AGE_1] female patient named [PERSON_1] reports symptoms: […] (Leak 0, Q loss, IQ 7) |
| Artifact | License or terms |
|---|---|
| PUPA and PAPILLON code ( Li et al., 2025b ) | MIT |
| WildChat ( Zhao et al., 2024 ) | ODC-BY 1.0 |
| PRISM-160 and PRISM code ( Zhan et al., 2026 ) | MIT |
| AI4Privacy pii-masking-200k ( AI4Privacy, 2023 ) | AI4Privacy free license |
| Nemotron-PII ( Steier et al., 2025 ) | CC BY 4.0 |
| HotpotQA ( Yang et al., 2018 ) | CC BY-SA 4.0 |
| Gemma4:e2B | Qwen3.5:2B | Llama3.2:3B | |||||||
| Method | Med. | Bank. | Both | Med. | Bank. | Both | Med. | Bank. | Both |
| Cloud Only | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 |
| Presidio | 7.47 | 2.58 | 5.03 | 7.47 | 2.58 | 5.03 | 7.47 | 2.58 | 5.03 |
| Presidio+GLiNER | 7.88 | 8.50 | 8.19 | 7.88 | 8.50 | 8.19 | 7.88 | 8.50 | 8.19 |
| Local Only | 8.62 | 9.53 | 9.07 | 8.28 | 8.95 | 8.61 | 7.10 | 7.85 | 7.47 |
| Uniform LDP | 3.15 | 2.48 | 2.81 | 2.67 | 2.23 | 2.45 | 2.60 | 2.31 | 2.46 |
| Leak (count) | Q | IQ | |||||||||
| Local SLM | Method | Med./40 | Bank./47 | Med. | Bank. | Tour. | Gen. | Med. | Bank. | Tour. | Gen. |
| – | Cloud Only | 40 | 47 | – | – | – | – | 8.93 | 9.03 | 8.90 | 9.40 |
| Presidio | 1 | 32 | 0.275 | 0.150 | 0.150 | 0.800 | 7.67 | 8.95 | 6.60 | 8.95 | |
| Presidio+GLiNER | 0 | 2 | 0.350 | 0.075 | 0.250 | 0.625 | 7.88 | 8.95 | 7.15 | 8.05 | |
| Gemma4:e2B | Local Only | 0 | 0 | 0.850 | 1.000 | 0.925 | 0.975 | 8.62 | 9.53 | 8.93 | 9.38 |
| Uniform LDP | 27.3 | 33 | 0.800 | 0.975 | 0.400 | 0.750 | 8.72 | 8.93 | 7.30 | 8.20 | |
| PRISM-160 | PUPA test | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Local SLM | Method | Leak | J-Leak | Q | IQ | PQ | Leak | J-Leak | Q | IQ | PQ |
| Gemma4:e2B | PAPILLON (released prompt) | 0.0 | 0.0 | 0.956 | 9.05 | 8.99 | 28.7 | 29.6 | 0.857 | 8.56 | 5.33 |
| P2Skill-RO | 0.0 | – | 0.938 | 9.12 | 9.07 | 11.3 | – | 0.938 | 8.68 | 7.00 | |
| Qwen3.5:2B | PAPILLON (released prompt) | 16.1 | 16.1 | 0.744 | 8.32 | 7.29 | 31.4 | 33.5 | 0.657 | 7.41 | 4.46 |
| Llama3.2:3B | P2Skill-RO | 38.3 | – | 0.912 | 8.56 | 4.40 | 19.7 | – | 0.770 | 7.80 | 4.90 |
| PUPA test | PRISM-160 | ||||||
|---|---|---|---|---|---|---|---|
| Skills of | G4 | Q3.5 | L3.2 | G4 | Q3.5 | L3.2 | |
| Gemma4:e2B | 15.6 | 53.6 | 27.1 | 0.0 | 30.7 | 16.1 | |
| Qwen3.5:2B | 11.4 | 27.3 | 23.4 | 0.0 | 10.0 | 36.0 | |
| Llama3.2:3B | 62.5 ∗ | 67.0 ∗ | 28.3 | 4.2 ∗ | 96.9 ∗ | 66.3 | |