Preprint · 2023 · Open access
On the Privacy Risk of In-context Learning
arXiv · Published 14 July 2023 · DOI 10.48550/arxiv.2411.10512
In brief
“On the Privacy Risk of In-context Learning” is a 2023 preprint by Haonan Duan and 4 co-authors, published in arXiv. OpenAlex counts 79 citations as of 3 December 2026, which puts it in the top 2% of works published in 2023 by citations. It is open access: the full text is free to read at arXiv.
- Citations
- 79
- Most cited in
- 2025 (31)
- References
- 44
- Authors
- 5
Abstract
Large language models (LLMs) are excellent few-shot learners. They can perform a wide variety of tasks purely based on natural language prompts provided to them. These prompts contain data of a specific downstream task—often the private dataset of a party, e.g., a company that wants to leverage the LLM on their purposes. We show that deploying prompted models presents a significant privacy risk for the data used within the prompt by instantiating a highly effective membership inference attack. We also observe that the privacy risk of prompted models exceeds fine-tuned models at the same utility levels. After identifying the model’s sensitivity to their prompts—in form of a significantly higher prediction confidence on the prompted data—as a cause for the increased risk, we propose ensembling as a mitigation strategy. By aggregating over multiple different versions of a prompted model, membership inference risk can be decreased.
Cite this paper
Formatted from the catalogue record. Check names, capitals and page numbers against the paper before you submit.
APA 7
Duan, H., Dziedzic, A., Yaghini, M., Papernot, N., & Boenisch, F. (2023). On the Privacy Risk of In-context Learning. arXiv. https://doi.org/10.48550/arxiv.2411.10512
MLA 9
Duan, Haonan, et al. “On the Privacy Risk of In-context Learning.” arXiv, 2023. https://doi.org/10.48550/arxiv.2411.10512.
Chicago
Duan, Haonan, Adam Dziedzic, Mohammad Yaghini, Nicolas Papernot, and Franziska Boenisch. 2023. “On the Privacy Risk of In-context Learning.” arXiv. https://doi.org/10.48550/arxiv.2411.10512.
Harvard
Duan, H. et al. (2023) ‘On the Privacy Risk of In-context Learning’, arXiv. doi:10.48550/arxiv.2411.10512.
IEEE
H. Duan, A. Dziedzic, M. Yaghini, N. Papernot, and F. Boenisch, “On the Privacy Risk of In-context Learning,” arXiv, 2023, doi: 10.48550/arxiv.2411.10512.
BibTeX
@misc{duan2023privacy,
title = {{On the Privacy Risk of In-context Learning}},
author = {Duan, Haonan and Dziedzic, Adam and Yaghini, Mohammad and Papernot, Nicolas and Boenisch, Franziska},
howpublished = {arXiv},
year = {2023},
doi = {10.48550/arxiv.2411.10512},
url = {https://doi.org/10.48550/arxiv.2411.10512}
}
Download for a reference manager: BibTeX (.bib) · RIS for Zotero, Mendeley and EndNote (.ris)
Citations by year
| Year | Citations | Share of the best year |
|---|---|---|
| 2023 | 2 | |
| 2024 | 18 | |
| 2025 | 31 | |
| 2026 | 28 |
Topic and keywords
Physical Sciences › Computer Science › Artificial Intelligence › Privacy-Preserving Technologies in Data
- in-context learning
- membership inference attacks
- privacy risks
- large language models
- prediction confidence
- ensemble learning
- privacy mitigation
- fine-tuned models
Work with this paper
Most-cited papers in Computer Science
- ImageNet classification with deep convolutional neural networksAlex Krizhevsky, Ilya Sutskever, Geoffrey E. Hinton · Communications of the ACM · 2017 · 114,726 citations
- Long Short-Term MemorySepp Hochreiter, Jürgen Schmidhuber · Neural Computation · 1997 · 109,097 citations
- A Mathematical Theory of CommunicationClaude E. Shannon · Bell System Technical Journal · 1948 · 91,736 citations
- Deep learningYann LeCun, Yoshua Bengio, Geoffrey E. Hinton · Nature · 2015 · 90,226 citations
- Faster R-CNN: Towards Real-Time Object Detection with Region Proposal NetworksShaoqing Ren, Kaiming He, Ross Girshick and 1 more · IEEE Transactions on Pattern Analysis and Machine Intelligence · 2016 · 74,143 citations
Questions about this paper
How do I cite this paper in APA style?
Duan, H., Dziedzic, A., Yaghini, M., Papernot, N., & Boenisch, F. (2023). On the Privacy Risk of In-context Learning. arXiv. https://doi.org/10.48550/arxiv.2411.10512
How many times has this paper been cited?
79 times, according to OpenAlex on 3 December 2026. Google Scholar and Scopus count different sets of sources, so their numbers differ.
Is this paper free to read?
Yes. It is open access at arXiv: sign in and open the PDF from this page.
Who wrote this paper?
Haonan Duan, Adam Dziedzic, Mohammad Yaghini, Nicolas Papernot, Franziska Boenisch.
What is the DOI of this paper?
10.48550/arxiv.2411.10512, permanently at https://doi.org/10.48550/arxiv.2411.10512. Sign in and open it from this page.
Bibliographic data from OpenAlex (CC0), last checked 3 December 2026. ResearchGuru does not host this paper; once you are signed in, the links open it at the publisher or the repository that does.