Copied and Perturbed: A String-Based Likelihood-Ratio Membership Inference Attack on LLM In-Context Table Synthesis
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.
Create a lesson
Metadata
- Categories
- cs.CR, cs.LG, stat.ML
Related papers
Cyber Threat Classification Under Non-Stationary Environments: An Adapt In-Context Learning (Adapt-ICL) Approach
Shared title terminologycs.CRChengjun Zhang, Yang Gao, Benjamin Ampel et al.
BrainPhone: A Passive Side-Channel Attack for Speech and Identity Inference Using Consumer BCI Headsets
Shared title terminologycs.CRAnuradha Mandal, Cagri Arisoy, Sonjoy Kumar Paul et al.
AETHON: Deterministic Pre-Inference Defense for LLM Prompt Injection
Shared title terminologycs.CRLeonardo Bruscagini de Lima, Jorge Valverde-Rebaza, Alexandre de Barros Barreto et al.
zk-Sable: Per-Client Zero-Knowledge Proofs of Batched, Bit-Exact LLM Inference with Open Weights
Shared title terminologycs.CRTomer Solberg
Towards Computational Robustness of Latent Diffusion Watermarking Against Removal Attacks with Adaptive Detector Access
Shared title terminologycs.CRDe Zhang Lee, Ee-Chien Chang
SPAR: Sparse-space Poisoning Attack on Retrieval-Augmented Generation Systems
Shared title terminologycs.CRQingyuan Zheng, Min Ren, Saihui Hou et al.