A likelihood-ratio membership inference attack that works on the text strings LLMs emit, not on feature vectors. Across nine generators and 34 datasets it outperforms all tested no-box baselines and resists most post-hoc defenses.
AUC TPR at 10% FPR Utility Generator String-LRA LevAtt Best baseline String-LRA LevAtt Best baseline Corr. dist. TSTR Llama-3.3-70B† 0.705 0.152 0.670∗∗∗ 0.149 0.666∗∗∗ 0.146 (DCR) 0.389 0.267 0.328∗∗∗ 0.259 0.343∗∗∗ 0.247 (Classifier) 0.249 0.150 0.381 0.158 GPT-4o-mini† 0.582 0.100 0.560∗∗∗ 0.097 0.559∗∗ 0.084 (DOMIAS) 0.190 0.143 0.166∗∗ 0.129 0.174∗ 0.128 (DCR) 0.253 0.116 0.320 0.160 TabPFN-v2† 0.640 0.111 0.574∗∗∗ 0.103 0.617∗∗∗ 0.105 (DCR-diff) 0.253 0.174 0.173∗∗∗ 0.139 0.233∗ 0.151 (DCR-diff) 0.191 0.107 0.378 0.153 Gemma-4-E4B 0.763 0.122 0.717∗∗∗ 0.129 0.736∗∗∗ 0.132 (DCR) 0.499 0.240 0.416∗∗∗ 0.231 0.470∗∗∗ 0.242 (DCR) 0.230 0.133 0.410 0.169 Qwen3.6-27B 0.694 0.149 0.650∗∗∗ 0.138 0.671∗∗∗ 0.153 (DCR-diff) 0.355 0.264 0.272∗∗∗ 0.222 0.345 0.255 (Gen-LRA) 0.250 0.150 0.407 0.153 Gemma-4-31B 0.776 0.147 0.715∗∗∗ 0.145 0.757∗∗∗ 0.157 (DCR-diff) 0.488 0.298 0.373∗∗∗ 0.256 0.496 0.293 (DCR-diff) 0.213 0.128 0.432 0.152 OLMo-3.1-32B 0.634 0.112 0.585∗∗∗ 0.107 0.603∗∗∗ 0.112 (DCR) 0.246 0.176 0.182∗∗∗ 0.136 0.219∗∗ 0.163 (Classifier) 0.257 0.144 0.365 0.162 gpt-oss-120b 0.715 0.153 0.672∗∗∗ 0.145 0.692∗∗∗ 0.163 (DCR) 0.411 0.274 0.335∗∗∗ 0.234 0.387∗∗∗ 0.286 (DCR) 0.322 0.192 0.391 0.155 Llama-4-Scout 0.675 0.132 0.637∗∗∗ 0.135 0.650∗∗∗ 0.141 (DCR) 0.318 0.231 0.268∗∗∗ 0.221 0.304 0.227 (DCR-diff) 0.259 0.161 0.383 0.171
†Releases produced for the benchmark of Byun et al. (Byun et al., 2025).
Going deeper
| 856 | yes | 1.084 | 0.12 | |||
| 140 | yes | 4.050 | 2.02 | |||
| 14 | yes | 33.87 | 5.08 | |||
| 3 | yes | 125.6 | 6.97 | |||
| 1 | yes | 250.8 | 7.97 | |||
| 0 | yes | 501.0 | 8.97 | |||
| 0 | no | 0.500 |
Imagine a hospital shares a fake patient list generated by an AI, hoping the fakes look real but reveal nothing about the actual patients whose records were fed to the AI as examples. An outsider who suspects a friend was in the original list wants to check by comparing the friend's record against the fakes.
Existing checks treat every number like a point on a map and ask how close the nearest fake is. But the AI writes numbers as text, digit by digit, and it often copies a real patient's value with one or two digits slightly changed. A small digit change can land far away on the map, so the map-based check misses it. This paper's check instead reads the digits as a word and asks: how unusual is it that the fakes contain this particular word, or one almost the same, given what the general population looks like?
The result: across nine different AIs and 34 datasets, the new check catches more of the original patients than any previous method, and it runs in about a second on a laptop. The hospital could try to scramble the numbers after the fact, but the check is built to handle scrambled digits, so most scrambling barely helps. The only defenses that really work change how the AI writes the fakes in the first place, and they make the fakes less useful.
The abstract, word for word, with the seven densest phrases unpacked.
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 perturbation1 in LLM-generated tabular data. String-LRA uses character and digit Witten–Bell Character Tries fit on a reference sample2 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 strings3, 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 generator4. 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 budget5. We further use String-LRA to show that LLMs behaviorally differ in whether they copy values exactly or perturb them6, and that many common defenses offer little protection against the attack7.
Two lines of work converge: membership inference attacks for synthetic data, and string-level memorization in LLMs.
Read four parts of it, in this order.
Skip Section 2 if you know feature-space MIAs and Levenshtein-based attacks. Skip Appendices C–F on first read.
If the attack's advantage is smaller than reported, these places show where.
| Variant | AUC | TPR@10% |
|---|---|---|
| +0.003∗∗∗ | +0.010∗∗∗ | |
| (chosen parameter) | — | — |
| +0.002∗∗∗ | 0.002∗ | |
| +0.009∗∗∗ | +0.005∗∗ | |
| Max score over all (Eq. (15)) | +0.002∗∗∗ | +0.001 |
| String-LRA-exact (every cell an exact string) | +0.072∗∗∗ | +0.113∗∗∗ |
| LevAtt (edit distance) | +0.045∗∗∗ | +0.071∗∗∗ |
We find that at these compute budgets none are significantly ahead of no-box String-LRA (Table 2). String-LRA leads Groundhog by 0.15–0.24 AUC (p<0.001) and a TAPAS-style query attack by 0.05–0.06 (p<0.05). Offline LiRA on our score is within 0.007 of it, a logistic classifier on shadow scores is 0.006–0.016 ahead (not significant), and boosting trails by 0.012–0.048, significantly only on Gemma-4-E4B. While the budget of this ablation is limited and prevents generalization, even computing 32 shadow releases costs 0.15–0.48 GPU-hours per target release, versus at most about one CPU second for String-LRA (Table 14).
We note several limitations of our study. We consider in-context generation and not fine-tuning (Ward et al., 2026), on 34 datasets with contexts of at most 128 rows and tables of at most 82 columns. We assume that the reference sample is drawn from the same population as the private table and is disjoint from it, and we do not study a reference sample under distribution shift. The likelihood ratio of String-LRA is defined under a surrogate model and not under the generator’s own distribution, so it carries no optimality guarantee and its score is not calibrated as a probability, which is an advantage of shadow-model attacks. We use the score to rank the targets of a release, and with only n non-members per release we further do not estimate the TPR at very low false-positive rates. The attack also scores one synthetic row at a time, so it does not score leakage that is spread over several rows. The baselines use their library configurations and so may underreport a more carefully tuned attack. We selected q and the neighborhood levels of String-LRA on the releases on which we evaluate it, not on held-out datasets. However, the attack changes by at most 0.009 AUC across the tested values of q (Section 6.4), and our benchmark is comprehensive, with over 4,000 releases from 34 datasets and nine generators. Our shadow-model comparison covers three generators, contexts of at most 32 rows and 32 shadow releases, so it does not bound what a better-resourced adversary could achieve. Finally, our defense results assume an adversary who does not adapt to the defense, with post-hoc defenses evaluated on one seed and generation-time protections on one generator.
Nothing on this page was recomputed. Every claim points to the paper so you can check it.
AI-based tools (Claude Opus and Sonnet 5.5) were used during this research to write and debug experiment and analysis code, to run analyses and summarize their outputs, to edit the text of this paper from the authors’ original drafts and results and lastly to better clean and document the codebase and artifact. Every number in the paper’s tables is produced by scripts from the experiment outputs, and every number in the text was traced to those outputs by the authors. We have manually verified and are responsible for the accuracy, originality, and integrity of the output of all AI-based tools.
More latest news
Read all