Auditing and Mitigating Privacy Leakage in Cloud-Edge Collaborative Decoding
Organizations: The Hong Kong Polytechnic University · Institute for AI Industry Research, Tsinghua University · School of Software, Tsinghua University
Abstract
Applications such as personalized assistance and proprietary document analysis require large language models (LLMs) to generate outputs from private data. Yet powerful LLMs typically cannot be deployed on the resource-constrained devices where private data resides, and uploading private data to cloud-hosted LLMs exposes sensitive information. Recent work addresses this tension with a cloud-edge collaborative decoding paradigm, where private data are kept on the edge with a small language model (SLM) producing next-token distributions, which are fused with predictions from a cloud LLM operating solely on public data. In this paper, we systematically analyze the privacy risks of such a paradigm with a novel evaluation framework using constructed QA datasets, which show that such collaboration can expose substantial private-context information. To address such privacy leakage, we propose CoVeil, a defense mechanism which dynamically optimizes transmitted signals to suppress leakage during decoding time while preserving the collaborative quality. Extensive evaluations demonstrate that CoVeil consistently improves the privacy-utility trade-off over existing baselines by reducing data leakage by up to 87.2%, with minimal accuracy loss.
Figures & tables
| Fusion | Acc | Private Evidence Recall (@100) | Private Context Inversion | ||||
| Token-ER | ROUGE1-ER | Span-ER | AUC | ROUGE-1 Recall | ROUGE-1 F1 | ||
| Cloud-side | 59.3 | 56.6 | 48.3 | 28.3 | 46.7 | 41.1 | 32.7 |
| Edge-side | 59.3 | 43.0 | 34.6 | 28.3 | 35.0 | 39.2 | 30.3 |
Appendix figures & tables12 assets
Supplementary material from the paper’s appendix.
Appendix
| Setting | Acc. | Token-ER@100 | ROUGE1-ER@100 | Span-ER@100 | AUC@100 |
| w/o CoVeil | 59.60 | 0.5655 | 0.4817 | 0.2823 | 0.4668 |
| CoVeil , | 58.80 | 0.1320 | 0.0542 | 0.0802 | 0.1299 |
| CoVeil , | 59.00 | 0.1344 | 0.0551 | 0.0822 | 0.1325 |
| CoVeil , | 59.00 | 0.1344 | 0.0551 | 0.0822 | 0.1325 |
| CoVeil , | 59.00 | 0.1344 | 0.0551 | 0.0822 | 0.1325 |
| CoVeil , | 59.00 | 0.1344 | 0.0551 | 0.0822 | 0.1325 |
| Data | Setting | Acc. |
| MedPriv | Cloud LLM (w/o private context) | 33.9 |
| Edge SLM (w/ private context) | 44.5 | |
| Cloud-edge collaboration (w/ private context) | 59.6 | |
| Gain over best single model | +15.1 | |
| CommPriv | Cloud LLM (w/o private context) | 35.6 |
| Edge SLM (w/ private context) | 55.9 |
| Data | Acc. | Token-ER@100 | ROUGE1-ER@100 | Span-ER@100 | AUC@100 | |
| MedPriv | 0.0 | 59.4 | 0.1374 | 0.0573 | 0.0839 | 0.1356 |
| 0.5 | 59.4 | 0.1374 | 0.0573 | 0.0839 | 0.1356 | |
| 1.0 | 59.0 | 0.1345 | 0.0551 | 0.0823 | 0.1326 | |
| 1.5 | 56.2 | 0.1178 | 0.0420 | 0.0745 | 0.1159 | |
| 2.0 | 55.8 | 0.1049 | 0.0293 | 0.0685 | 0.1030 | |
| 2.5 | 55.3 | 0.0922 | 0.0183 | 0.0625 | 0.0904 |
| Data | Acc. | Token-ER@100 | ROUGE1-ER@100 | Span-ER@100 | AUC@100 | |
| MedPriv | 0.0 | 59.3 | 0.4301 | 0.3461 | 0.2829 | 0.3495 |
| 0.5 | 58.2 | 0.4201 | 0.3362 | 0.2756 | 0.3345 | |
| 1.0 | 56.3 | 0.4045 | 0.3189 | 0.2688 | 0.3100 | |
| 1.25 | 53.9 | 0.3856 | 0.2971 | 0.2605 | 0.2948 | |
| 1.5 | 51.2 | 0.3680 | 0.2755 | 0.2469 | 0.2854 | |
| 1.75 | 47.2 | 0.3528 | 0.2517 | 0.2262 | 0.2706 |
| Fusion | Acc. | Private Evidence Recall (@100) | |||
| Token-ER | ROUGE1-ER | Span-ER | AUC | ||
| Cloud-side | 66.1 | 68.5 | 59.8 | 42.2 | 58.5 |
| Edge-side | 66.1 | 58.8 | 48.3 | 36.7 | 49.7 |
| Data | Setting | Acc. |
| MedPriv | Cloud LLM (w/o private context) | 38.7 |
| Edge SLM (w/ private context) | 50.1 | |
| Cloud-edge collaboration (w/ private context) | 66.4 | |
| Gain over best single model | +16.3 | |
| CommPriv | Cloud LLM (w/o private context) | 40.2 |
| Edge SLM (w/ private context) | 65.9 |
| Source QA question, options, answer, context | Public/private split and | Sample screening GPT-5.4 proposal + human verification | Private phrase extraction GPT-5.4 extraction + human verification | Final JSONL 1,000 verified samples |
| Cloud-side SLM top- probabilities | Compute gradient score from Taylor coefficient | Adaptive signal upload |
| Edge-side Fusion top- tokens | Compute objective | Select prefix token |
| Benchmark | Source | Domain | Samples | Options | Avg. | Avg. | Avg. | Avg. spans |
| MedPriv | MedQA-USMLE | Medical | 1,000 | 4 | 16.1 | 47.5 | 26.5 | 13.7 |
| CommPriv | Cosmos-QA | Commonsense | 1,000 | 4 | 9.3 | 60.6 | 30.6 | 7.5 |
Privacy Leakage in Language Models
Privacy leakage in language models concerns how models expose training data, infer sensitive traits, or transmit private context through outputs and internal channels.
See all 280 papers