English

Locally Differentially Private In-Context Learning

Cryptography and Security 2024-05-09 v2 Artificial Intelligence

Abstract

Large pretrained language models (LLMs) have shown surprising In-Context Learning (ICL) ability. An important application in deploying large language models is to augment LLMs with a private database for some specific task. The main problem with this promising commercial use is that LLMs have been shown to memorize their training data and their prompt data are vulnerable to membership inference attacks (MIA) and prompt leaking attacks. In order to deal with this problem, we treat LLMs as untrusted in privacy and propose a locally differentially private framework of in-context learning(LDP-ICL) in the settings where labels are sensitive. Considering the mechanisms of in-context learning in Transformers by gradient descent, we provide an analysis of the trade-off between privacy and utility in such LDP-ICL for classification. Moreover, we apply LDP-ICL to the discrete distribution estimation problem. In the end, we perform several experiments to demonstrate our analysis results.

Keywords

Cite

@article{arxiv.2405.04032,
  title  = {Locally Differentially Private In-Context Learning},
  author = {Chunyan Zheng and Keke Sun and Wenhao Zhao and Haibo Zhou and Lixin Jiang and Shaoyang Song and Chunlai Zhou},
  journal= {arXiv preprint arXiv:2405.04032},
  year   = {2024}
}

Comments

This paper was published at LREC-Coling 2024

R2 v1 2026-06-28T16:19:01.305Z