User Inference Attacks on Large Language Models
Open accessThe DOI matches its Crossref record; 17 of the 17 references it cites were found in a registry or an index.
Abstract
Text written by humans makes up the vast majority of the data used to pre-train and finetune large language models (LLMs).Many sources of this data-like code, forum posts, personal websites, and books-are easily attributed to one or a few "users".In this paper, we ask if it is possible to infer if any of a user's data was used to train an LLM.Not only would this constitute a breach of privacy, but it would also enable users to detect when their data was used for training.We develop the first effective attacks for user inferenceat times, with near-perfect success-against LLMs.Our attacks are easy to employ, requiring only black-box access to an LLM and a few samples from the user, which need not be the ones that were trained on.We find, both theoretically and empirically, that certain properties make users more susceptible to user inference: being an outlier, having highly correlated examples, and contributing a larger fraction of data.Based on these findings, we identify several methods for mitigating user inference including training with example-level differential privacy, removing within-user duplicate examples, and reducing a user's contribution to the training data.Though these provide partial mitigation, our work highlights the need to develop methods to fully protect LLMs from user inference.Pre-trained LLM Finetuned
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Claims other papers make about this one
Each is checked against this paper’s own text: does it say what the citing paper says it does?
In the citing paper
“Kandpal et al. [170] propose a realistic user-level MIA on fine-tuned LMs, employing likelihood ratio test statistics between the fine-tuned LM and a reference model to identify participant involvement in the fine-tuning process.”
From Large Model-Based Agents: State-of-the-Art, Cooperation Paradigms, Security and Privacy, and Future Trends (2026) · cites this paper as [170]
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Deep Learning with Differential Privacy
Abadi, M., Chu, A., Goodfellow, I., McMahan, H. B., Mironov, I., Talwar, K., & Zhang, L. (2016) · Proceedings of the 2016 ACM SIGSAC Conference on Computer and Communications Security · doi:10.1145/2976749.2978318 · Cited by 6,578 · cited 1×
“Unfortunately, we find that 95% of the final AUROC is obtained quite early in training: 15 K steps ( 5% of the fine-tuning) for CC News and 90 K steps ( 18% of the fine-tuning) for Reddit, see Figure 3.”
BackgroundBaumgartner, J., Zannettou, S., Keegan, B., Squire, M., & Blackburn, J. (2020) · Proceedings of the International AAAI Conference on Web and Social Media · doi:10.1609/icwsm.v14i1.7347 · Cited by 881
Anil, R., Dai, A. M., Firat, O., Johnson, M., Lepikhin, D., Passos, A., Shakeri, S., Taropa, E., Bailey, P., Chen, Z., et al. (2023) · arXiv · doi:10.48550/arxiv.2305.10403 · Cited by 834 · cited 1×
“A short shared substring is enough to increase the attack AUROC from 63% to 69% (5 tokens) for CC News and 56% to 65% for Reddit (10 tokens).”
Self-citationThe Pile: An 800GB Dataset of Diverse Text for Language Modeling
Gao, L., Biderman, S., Black, S., Golding, L., Hoppe, T., Foster, C., Phang, J., He, H., Thite, A., Nabeshima, N., et al. (2021) · arXiv · doi:10.48550/arxiv.2101.00027 · Cited by 492 · cited 2×
“In particular, each of the fine-tuning datasets used in our experiments is also present to some extent in The Pile dataset (Gao et al., 2020) used to pre-train the GPT-Neo family of models (Black et al., 2021).”
GPT-Neo: Large Scale Autoregressive Language Modeling with Mesh-Tensorflow
Black, S., Leo, G., Wang, P., Leahy, C., & Biderman, S. (2021) · Zenodo · doi:10.5281/zenodo.5297715 · Cited by 324 · cited 6×
“This repeated training yields samples from two distributions: the distribution of models trained with user u ’s data P and the distribution of models trained without user u ’s data Q .”
InfluentialAuditing Data Provenance in Text-Generation Models
Song, C., & Shmatikov, V. (2018) · arXiv · doi:10.48550/arxiv.1811.00513 · Cited by 199
Scalable Extraction of Training Data from (Production) Language Models
Nasr, M., Carlini, N., Hayase, J., Jagielski, M., Cooper, A. F., Ippolito, D., Choquette-Choo, C. A., Wallace, E., Tramèr, F., & Lee, K. (2023) · arXiv · doi:10.48550/arxiv.2311.17035 · Cited by 96
Self-citationFew-shot Fine-tuning vs. In-context Learning: A Fair Comparison and Evaluation
Mosbach, M., Pimentel, T., Ravfogel, S., Klakow, D., & Elazar, Y. (2023) · arXiv · doi:10.48550/arxiv.2305.16938 · Cited by 81 · cited 1×
“Yet, the datasets used to train LLMs are often comprised of user-written data.”
BackgroundAuditing Differentially Private Machine Learning: How Private is Private SGD?
Jagielski, M., Ullman, J., & Oprea, A. (2020) · arXiv (Cornell University) · doi:10.48550/arxiv.2006.07709 · Cited by 72
Self-citationOn the Use of ArXiv as a Dataset
Clement, C. B., Bierbaum, M., O'Keeffe, K. P., & Alemi, A. A. (2019) · arXiv · doi:10.48550/arxiv.1905.00075 · Cited by 53 · cited 1×
“We evaluate user inference on 3 user-stratified text datasets: Reddit Comments (Baum-gartner et al., 2020) for social media content, CC News 2 (Hamborg et al., 2017) for news articles, and Enron Emails (Klimt and Yang, 2004) for user emails.”
Practical and private (deep) learning without sampling or shuffling
Kairouz, P., McMahan, B., Song, S., Thakkar, O., Thakurta, A., & Xu, Z. (2021) · arXiv · doi:10.48550/arxiv.2103.00039 · Cited by 52
Self-citationTraining Production Language Models without Memorizing User Data
Ramaswamy, S., Thakkar, O., Mathews, R., Andrew, G., McMahan, H. B., & Beaufays, F. (2020) · arXiv · doi:10.48550/arxiv.2009.10031 · Cited by 37 · cited 1×
“Next, the attacker trains many shadow models on data similar to the target model’s fine-tuning data, including x (1: n ) train in half of the shadow models’ fine-tuning data.”
McCoy, R. T., Yao, S., Friedman, D., Hardy, M., & Griffiths, T. L. (2023) · arXiv · Cited by 37 · cited 1×
“…such as a substring (Kandpal et al., 2022), an arithmetic operand (Razeghi et al., 2022), a fact (Kandpal et al., 2023), or an instance of a task (McCoy et al., 2023), appear in the training data can be inferred by inspecting a trained LLM. Similarly, studies on data contamination show that LLMs…”
(2023) · doi:10.52202/075280-1219 · Cited by 33
MiniCPM: Unveiling the Potential of Small Language Models with Scalable Training Strategies
Hu, S., Tu, Y., Han, X., He, C., Cui, G., Long, X., Zheng, Z., Fang, Y., Huang, Y., Zhao, W., et al. (2024) · arXiv · doi:10.48550/arxiv.2404.06395 · Cited by 28 · cited 1×
“Recent work on pre-training has also shown that intentionally including typical fine-tuning data in the late stages of pre-training is beneficial (Hu et al., 2024).”
Do Membership Inference Attacks Work on Large Language Models?
Duan, M., Suri, A., Mireshghallah, N., Min, S., Shi, W., Zettlemoyer, L., Tsvetkov, Y., Choi, Y., Evans, D., & Hajishirzi, H. (2024) · arXiv · doi:10.48550/arxiv.2402.07841 · Cited by 17
Privacy Side Channels in Machine Learning Systems
Debenedetti, E., Severi, G., Carlini, N., Choquette-Choo, C. A., Jagielski, M., Nasr, M., Wallace, E., & Tramèr, F. (2023) · arXiv · doi:10.48550/arxiv.2309.05610 · Cited by 6 · cited 2×
“Mattern et al. (2023) compare the likelihood of a sample against the average likelihood of a set of neighboring samples, and eliminate the assumption of attacker knowledge of the training distribution used in prior works.”
BackgroundSelf-citation
Cited by
A survey on large language model (LLM) security and privacy: The Good, The Bad, and The Ugly
Yao, Y., Duan, J., Xu, K., Cai, Y., Sun, Z., & Zhang, Y. (2024) · High-Confidence Computing · doi:10.1016/j.hcc.2024.100211 · Cited by 1,083
Wang, Y., Pan, Y., Su, Z., Deng, Y., Zhao, Q., Du, L., Luan, T. H., Kang, J., & Niyato, D. (2026) · IEEE Communications Surveys & Tutorials · doi:10.1109/comst.2025.3576176 · Cited by 153
“Kandpal et al. [182] pro-pose a realistic user-level MIA on fine-tuned LMs, employing likelihood ratio test statistics between the fine-tuned LM and a reference model to identify participant involvement in the fine-tuning process.”
The Emerged Security and Privacy of LLM Agent: A Survey with Case Studies
He, F., Zhu, T., Ye, D., Liu, B., Zhou, W., & Yu, P. S. (2024) · arXiv · doi:10.48550/arxiv.2407.19354 · Cited by 60
The Emerged Security and Privacy of LLM Agent: A Survey with Case Studies
He, F., Zhu, T., Ye, D., Liu, B., Zhou, W., & Yu, P. S. (2026) · ACM Computing Surveys · doi:10.1145/3773080 · Cited by 58
“Following this, study [42] proposes a user inference attack method that uses a likelihood ratio test statistic against a reference model.”
Metadata
- Authors
- Kandpal, N., Pillutla, K., Oprea, A., Kairouz, P., Choquette-Choo, C. A., & Xu, Z.
- Affiliations
- University of Toronto (CA)
- Indian Institute of Technology Madras (IN)
- Northeastern University (US)
- Google (United States) (US)
- Venue
- Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing
- Published
- 2024
- Pages
- 18238-18265
- OpenAlex
- W4404782637
- Semantic Scholar
- aa853d6ddf598266a4c48647dae7b0a8e8a8ff49
- Cited by
- 19
- References
- 17
- Citations by year
- 2026: 7 · 2025: 9 · 2024: 3
- FWCI
- 5.78
- Type
- conference paper
- Language
- en
- Open access
- hybrid
- doi.org
- Licence
- cc-by
- Locations
- Conference on Empirical Methods in Natural Language Processing (EMNLP) (publishedVersion, cc-by)
- arXiv (Cornell University) (submittedVersion, cc-by)
- arXiv (Cornell University) (cc-by)
- Topics
- Physical Sciences › Computer Science › Artificial Intelligence › Privacy-Preserving Technologies in Data
- Physical Sciences › Computer Science › Artificial Intelligence › Adversarial Robustness in Machine Learning
- Social Sciences › Sociology and Political Science › Privacy, Security, and Data Protection
- Keywords
- large language models, training data privacy, black-box attacks, data provenance, privacy leakage
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.