SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2310.07298 · 2023

Beyond Memorization: Violating Privacy Via Inference with Large Language Models

arXiv · PDF · Open in the Atlas

Code that ran

13 of 13 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 10 failures of our instrument; 0 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2310.07298.json · badge: /api/ran/2310.07298.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
eth-sri/llmprivacy canonical (classifier label)
classifier basis: census
11 ran · 0 no recorded run
copy not recorded community
not in the paper's declared repositories
1 ran · 0 no recorded run
eth-sri/synthpai extension (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
FunctionStatusWhere it lives
adult_filter Ran
ran; our contract draft was wrong, not the code
eth-sri/llmprivacy/src/acs/folk_utils.py
pointer only (licence: MIT); the stored copy get_code serves, from namkoong-lab/whyshift, is pointer only (licence: NOASSERTION) · get_code("c7ebc428e1566486")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from namkoong-lab/whyshift, and GitHub could not classify the licence of that repository (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

birthday_interests Ran
ran; our contract draft was wrong, not the code
eth-sri/llmprivacy/src/acs/prompt_helpers.py
code served (permissive licence) · get_code("d244c2276b806bad")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

def get_ord(year):
    if year.endswith('1'):
        return f'{year}-st'
    if year.endswith('2'):
        return f'{year}-nd'
    if year.endswith('3'):
        return f'{year}-rd'
    return f'{year}-th'

def birthday_interests(person):
    age = int(person['AGEP'])
    return 'I am soon celebrating my {} birthday. Give me some ideas for the celebration party!'.format(get_ord(str(age + 1)))

# Create a person dict with required 'AGEP' key
person = {
    'AGEP': '25'
}

ARGS = {
    'person': person
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
build_user_bot_system_prompt Ran
ran; our contract draft was wrong, not the code
eth-sri/llmprivacy/src/chat/user_bot_system_prompt_builder.py
code served (permissive licence) · get_code("de827ce9167acceb")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

# Construct valid arguments for build_user_bot_system_prompt

# The function takes:
# 1. prompt_skeleton: a string with parameters like <education>, <city>, <country>, etc.
# 2. profile: a dictionary with keys matching the skeleton parameters

prompt_skeleton = """
I am a professional living in <city>, <country>. 
I <education>. 
My name is <name> and I work as a <occupation>.
I enjoy <hobby>.
"""

profile = {
    'education': 'studying Computer Science',
    'city_country': 'San Francisco, United States',
    'name': 'Alice',
    'occupation': 'Software Engineer',
    'hobby': 'reading and hiking'
}

ARGS = {
    'prompt_skeleton': prompt_skeleton,
    'profile': profile
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
check_if_guess Ran
ran, violated the contract we drafted
eth-sri/llmprivacy/src/chat/chat_parser.py
code served (permissive licence) · get_code("3886295c0fa57d40")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import re

ARGS = {
    "response": """Type: Classification
Inference: The model predicts this is a cat based on visual features.
Guess:
cat; 0.95; confident"""
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
compare_ages Ran
ran, honoured the contract we drafted
this paper's copy was not recorded; identical code first harvested from eth-sri/synthpai
pointer only · get_code("63e3f3bd138014ac")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

extract_chat Ran
ran; our contract draft was wrong, not the code
eth-sri/llmprivacy/src/chat/chat_parser.py
code served (permissive licence) · get_code("b1dacac750646f60")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

# Setup code for extract_chat function

ARGS = {
    "chat": """Some preamble here
Conversation Start
INVESTIGATOR: Hello, how are you today?
USER: I'm doing well, thank you for asking.
INVESTIGATOR: That's great to hear. Can you tell me more?
USER: Of course, I'd be happy to share more details.
INVESTIGATOR: Thank you for your cooperation.
USER: You're welcome."""
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 2, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
extract_predictions Ran
ran; our contract draft was wrong, not the code
eth-sri/llmprivacy/src/chat/chat_parser.py
code served (permissive licence) · get_code("a533533aba00cb14")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import re
from typing import List

# Create a valid guess response string that matches the pattern required by extract_predictions
guess_response = """Type: color
Inference: The object appears to be red based on visual analysis
Guess:
red; blue; green

Type: shape
Inference: The shape looks like a circle
Guess:
circle; square; triangle

Type: size
Inference: The size seems to be large
Guess:
large; medium; small"""

ARGS = {
    "guess": guess_response
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_acs_cat Ran
ran; our contract draft was wrong, not the code
eth-sri/llmprivacy/src/acs/folk_constants.py
code served (permissive licence) · get_code("396503cafa45b9e2")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

# Setup code for get_acs_cat function

ARGS = {
    'feature': 'COW',
    'value': 1.0,
    'reduced': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_inv_acs_cat Ran
ran, honoured the contract we drafted
eth-sri/llmprivacy/src/acs/folk_constants.py
code served (permissive licence) · get_code("eae830ace5a03415")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

# Setup code for get_inv_acs_cat function

ARGS = {
    "feature": "SCHL",
    "value": "Bachelor's degree"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_ord Ran
ran; our contract draft was wrong, not the code
eth-sri/llmprivacy/src/acs/folk_utils.py
code served (permissive licence) · get_code("a3f3bb2859d03c81")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

def get_ord(year):
    if year.endswith('1'):
        return f'{year}-st'
    if year.endswith('2'):
        return f'{year}-nd'
    if year.endswith('3'):
        return f'{year}-rd'
    return f'{year}-th'

ARGS = {
    'year': '2021'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_spaces Ran
ran; our contract draft was wrong, not the code
eth-sri/llmprivacy/src/chat/eval_chat.py
code served (permissive licence) · get_code("987fa5b0a23f7735")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

ARGS = {
    'idx': 5,
    'base_spaces': 6
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_usernames Ran
ran; our contract draft was wrong, not the code
eth-sri/synthpai/src/thread/generate_online_profiles.py
code served (permissive licence) · get_code("f109daac4a53d3a3")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

class MockBot:
    """Mock bot object that the function expects"""
    pass

ARGS = {
    'bot': MockBot()
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
sample_return Ran
ran; our contract draft was wrong, not the code
eth-sri/llmprivacy/src/acs/prompt_helpers.py
code served (permissive licence) · get_code("e035f70b2a617317")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import random

# Set seed for reproducibility
random.seed(0)

# Construct the lists parameter
# The function indexes into lists using int(complexity), so we need enough lists
# It also calls .extend() on selected_list, so these should be mutable lists
# The function does random.sample(selected_list, num), so we need strings in the lists
lists = [
    ['apple', 'banana', 'cherry', 'date'],
    ['dog', 'cat', 'elephant', 'fish'],
    ['red', 'blue', 'green', 'yellow'],
    ['car', 'bike', 'truck', 'plane']
]

# Construct the complexity parameter
# Based on the function logic:
# - if int(complexity) == complexity: it's an integer
# - else: complexity < len(lists) - 1 (so it's a float between 0 and len(lists)-1)
# Let's use a float value that is less than len(lists) - 1
complexity = 1.5

# Construct the num parameter
# The function uses random.sample(selected_list, num)
# num must be <= len of selected_list
# After extend(), selected_list will have 8 items, so num=3 is safe
num = 3

ARGS = {
    'lists': lists,
    'complexity': complexity,
    'num': num
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block

Also present in other papers' code

Of 13 samples lifted from this paper's linked repositories, 13 carry a function identity and 0 do not. Of the 13 distinct functions with an identity, 2 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 2 later) and 11 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
adult_filter 4 other papers
3 dated earlier, 1 later
2108.04884 (2021-08)
Retiring Adult: New Datasets for Fair Machine Learning
2307.05284 (2023-07)
Rethinking Distribution Shifts: Empirical Analysis and Modeling for Tabular Data
2309.02160 (2023-09)
Bias Propagation in Federated Learning
and 1 more not named here
compare_ages 1 other paper
1 later
2406.07217 (2024-06)
A Synthetic Dataset for Personal Attribute Inference

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

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\times$) and time ($240\times$) 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.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2310.07298")
get_code_for_paper("2310.07298")
have("2310.07298")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2310.07298.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2310.07298.svg)](https://syntology.ai/paper/2310.07298)

Connect an agent — have() is free.