Privacy-Preserving In-Context Learning for Large Language Models
Abstract
In-context learning (ICL) is an important capability of Large Language Models (LLMs), enabling these models to dynamically adapt based on specific, in-context exemplars, thereby improving accuracy and relevance. However, LLM's responses may leak the sensitive private information contained in in-context exemplars. To address this challenge, we propose Differentially Private In-context Learning (DP-ICL), a general paradigm for privatizing ICL tasks. The key idea for DP-ICL paradigm is generating differentially private responses through a noisy consensus among an ensemble of LLM's responses based on disjoint exemplar sets. Based on the general paradigm of DP-ICL, we instantiate several techniques showing how to privatize ICL for text classification and language generation. We experiment on four text classification benchmarks and two language generation tasks, and our empirical findings suggest that our DP-ICL achieves a strong utility-privacy tradeoff.
Cite
Text
Wu et al. "Privacy-Preserving In-Context Learning for Large Language Models." International Conference on Learning Representations, 2024.Markdown
[Wu et al. "Privacy-Preserving In-Context Learning for Large Language Models." International Conference on Learning Representations, 2024.](https://mlanthology.org/iclr/2024/wu2024iclr-privacypreserving/)BibTeX
@inproceedings{wu2024iclr-privacypreserving,
title = {{Privacy-Preserving In-Context Learning for Large Language Models}},
author = {Wu, Tong and Panda, Ashwinee and Wang, Jiachen T. and Mittal, Prateek},
booktitle = {International Conference on Learning Representations},
year = {2024},
url = {https://mlanthology.org/iclr/2024/wu2024iclr-privacypreserving/}
}