Papers › Beyond Memorization: Violating Privacy Via Inference with Large Language Models

Beyond Memorization: Violating Privacy Via Inference with Large Language Models

11 Oct 2023arXiv:2310.07298archive 2025-07-28

Robin Staab, Mark Vero, Mislav Balunović, Martin Vechev

Current privacy research on large language models (LLMs) primarily focuses on the issue of extracting memorized training data. At the same time, models' inference capabilities have increased drastically. This raises the key question of whether current LLMs could violate individuals' privacy by inferring personal attributes from text given at inference time. In this work, we present the first comprehensive study on the capabilities of pretrained LLMs to infer personal attributes from text. We construct a dataset consisting of real Reddit profiles, and show that current LLMs can infer a wide range of personal attributes (e.g., location, income, sex), achieving up to 85% top-1 and 95% top-3 accuracy at a fraction of the cost (100×) and time (240×) required by humans. As people increasingly interact with LLM-powered chatbots across all aspects of life, we also explore the emerging threat of privacy-invasive chatbots trying to extract personal information through seemingly benign questions. Finally, we show that common mitigations, i.e., text anonymization and model alignment, are currently ineffective at protecting user privacy against LLM inference. Our findings highlight that current LLMs can infer personal data at a previously unattainable scale. In the absence of working defenses, we advocate for a broader discussion around LLM privacy implications beyond memorization, striving for a wider privacy protection.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2310.07298")

Code

Syntology Ran 13 of 13 code samples harvested from 2 repositories linked to this paper; 0 have no recorded run. Of those that ran: 1 ran · honoured contract; 2 ran · our draft was wrong; 10 ran with no contract checked.

By repository: official repository: 11 samples from 1 repository, 11 ran; community (archive-listed): 1 sample from 1 repository, 1 ran; 1 identical to code first harvested elsewhere. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

eth-sri/llmprivacy officialmentioned on GitHubMIT report
eth-sri/synthpai mentioned on GitHub report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

13 samples harvested; 13 ran; 1 honoured the contract we drafted; 0 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
2ran · our draft was wrong
10ran

Licence: 1 of the 13 samples is pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. Some samples are identical code Syntology first harvested from another repository; for those, this paper's copy is not located and its licence is not recorded. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

adult_filter eth-sri/llmprivacy/src/acs/folk_utils.py official repository ran · our draft was wrong MIT (permissive) · c7ebc428e1566486 · report
birthday_interests eth-sri/llmprivacy/src/acs/prompt_helpers.py official repository ran MIT (permissive) · d244c2276b806bad · report
build_user_bot_system_prompt eth-sri/llmprivacy/src/chat/user_bot_system_prompt_builder.py official repository ran MIT (permissive) · de827ce9167acceb · report
check_if_guess eth-sri/llmprivacy/src/chat/chat_parser.py official repository ran MIT (permissive) · 3886295c0fa57d40 · report
extract_chat eth-sri/llmprivacy/src/chat/chat_parser.py official repository ran MIT (permissive) · b1dacac750646f60 · report
extract_predictions eth-sri/llmprivacy/src/chat/chat_parser.py official repository ran MIT (permissive) · a533533aba00cb14 · report
get_acs_cat eth-sri/llmprivacy/src/acs/folk_constants.py official repository ran MIT (permissive) · 396503cafa45b9e2 · report
get_inv_acs_cat eth-sri/llmprivacy/src/acs/folk_constants.py official repository ran MIT (permissive) · eae830ace5a03415 · report
get_ord eth-sri/llmprivacy/src/acs/folk_utils.py official repository ran fingerprinted MIT (permissive) · a3f3bb2859d03c81 · report
get_spaces eth-sri/llmprivacy/src/chat/eval_chat.py official repository ran MIT (permissive) · 987fa5b0a23f7735 · report
sample_return eth-sri/llmprivacy/src/acs/prompt_helpers.py official repository ran MIT (permissive) · e035f70b2a617317 · report
get_usernames eth-sri/synthpai/src/thread/generate_online_profiles.py community (archive-listed) ran · our draft was wrong MIT (permissive) · f109daac4a53d3a3 · report
compare_ages identical code first harvested elsewhere ran · honoured contract fingerprinted licence of this copy not recorded · 63e3f3bd138014ac · report

Tasks

MemorizationText Anonymization

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections