Copied and Perturbed: A String-Based Likelihood-Ratio Membership Inference Attack on LLM In-Context Table Synthesis

copied-and-perturbed:-a-string-based-likelihood-ratio-membership-inference-attack-on-llm-in-context-table-synthesis

Copied and Perturbed: A String-Based Likelihood-Ratio Membership Inference Attack on LLM In-Context Table Synthesis

[Submitted on 1 Dec 2026]

View PDF HTML (experimental)

Abstract:Large Language Models (LLMs) have recently been shown to be excellent generators of tabular synthetic data for small training datasets through in-context learning. Privacy audits of tabular synthetic data, however, largely rely on Membership Inference Attacks (MIAs) that search for overly dense regions of the feature space. LLMs instead generate a table as text: they memorize the categorical values and digit patterns of their context and often reproduce them with small numeric perturbations, a signal that feature-space attacks can miss. We propose the String Likelihood Ratio Attack (String-LRA), a no-box MIA that targets string memorization and perturbation in LLM-generated tabular data. String-LRA uses character and digit Witten-Bell Character Tries fit on a reference sample to estimate a likelihood ratio that weighs whether the values of a synthetic row were reproduced from a target record, exactly or within a neighborhood of its numeric strings, or drawn from the population by chance. In a benchmark of nine generators and 34 datasets, String-LRA outperforms existing string-space attacks and the strongest corresponding baseline among ten feature-space attacks for AUC on every generator. In ablations, we find that String-LRA is insensitive to hyperparameters, needs only a small reference sample to achieve most of its advantage and runs in about a second of CPU time, is model agnostic, and, at the shadow budget we test, matches shadow-model attacks that assume generator access and a much greater computational budget. We further use String-LRA to show that LLMs behaviorally differ in whether they copy values exactly or perturb them, and that many common defenses offer little protection against the attack.

Submission history

From: Joshua Ward [view email]
[v1] Tue, 1 Dec 2026 17:25:19 UTC (391 KB)