Skip to content

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

Joshua Ward Haoyuan Cheng Yue Zhang Guang Cheng
Dec 2026
Machine Learning Cybersecurity Data Science

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.

View source

Similar papers

#artificial intelligence Preprint Jul 2024

The Llama 3 Herd of Models

It is found that Llama 3 delivers comparable quality to leading language models such as GPT-4 on a plethora of tasks, and performs competitively with the state-of-the-art on image, video, and speech recognition tasks.

Aaron Grattafiori, Abhimanyu Dubey, Abhinav Jauhri et al. · 21,082 citations · ⚡3,832
#artificial intelligence Conference Open access Jun 2018

Gibson Env: Real-World Perception for Embodied Agents

This paper investigates developing real-world perception for active agents, proposes Gibson Environment for this purpose, and showcases a set of perceptual tasks learned therein.

F. Xia, Amir Zamir, Zhi-Yang He et al. · 1,069 citations · ⚡112
#computer vision Review Sep 2017

Agile Software Development Methods: Review and Analysis

This publication proposes a definition and a classification of agile software development approaches and analyses ten software development methods that can be characterized as being "agile" against the defined criterion.

P. Abrahamsson, O. Salo, Jussi Ronkainen et al. · 727 citations · ⚡54
#computer vision Jun 2008

The impact of agile practices on communication in software development

The study shows that agile practices improve both informal and formal communication, but indicates that, in larger development situations involving multiple external stakeholders, a mismatch of adequate communication mechanisms can sometimes even hinder the communication.

M. Pikkarainen, Jukka Haikara, O. Salo et al. · 401 citations · ⚡48
#machine learning Review Open access Oct 2014

Software development in startup companies: A systematic mapping study

The results indicate that software engineering work practices are chosen opportunistically, adapted and configured to provide value under the constrains imposed by the startup context.

Nicolò Paternoster, Carmine Giardino, M. Unterkalmsteiner et al. · 394 citations · ⚡54

Related blog posts

Microsoft Research Blog Nov 3, 2026

Learn the rules: The hacker mindset

Research Manager Mike Walker reflects on a career spanning hacker culture, cybersecurity, and AI, sharing lessons about trust, teamwork, leadership, and why solving difficult problems requires curiosity, judgment, agility—and an understanding of the rules. The post Learn the rules: The hacker mindset appeared first on Microsoft Research.

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.