Membership Inference Attacks Against Fine-tuned Diffusion Language Models

Yuetian Chen, Kaiyuan Zhang, Yuntao Du, Edoardo Stoppa, Charles Fleming, Ashish Kundu, Bruno Ribeiro, Ninghui Li

TL;DR

This paper presents the first systematic investigation into the privacy vulnerabilities of Diffusion Language Models (DLMs). The authors introduce SAMA (Subset-Aggregated Membership Attack), a novel attack that exploits the bidirectional nature of DLMs to achieve a 30% relative improvement in detection accuracy over existing methods, proving that these emerging models are significantly more susceptible to data leakage than previously thought.

What Problem Does This Paper Address?

As Large Language Models (LLMs) become ubiquitous, privacy is a major concern. Membership Inference Attacks (MIA)—which try to determine if a specific piece of data was used to train a model—are the gold standard for measuring privacy risks.

While we understand MIAs for standard Autoregressive Models (ARMs) like GPT, we know very little about Diffusion Language Models (DLMs). Unlike ARMs, which predict the next word in a sequence, DLMs use bidirectional masking (similar to BERT but generative) to reconstruct corrupted text.

The authors identify a unique "attack surface" in DLMs: because you can mask any combination of tokens, there are exponentially more ways to probe the model for memorized patterns. However, most of these probes result in "noise." The challenge is finding the "sparse" signals where the model's memorization actually reveals itself.

Methods: The SAMA Approach

The authors propose SAMA (Subset-Aggregated Membership Attack), which moves away from simply averaging reconstruction loss and instead uses a robust voting mechanism.

Overview of the SAMA methodology showing progressive masking and sign-based aggregation.

It consists of three main components:

  1. Progressive Masking: Instead of using a fixed mask, SAMA systematically increases masking density (from 5% to 50%). This allows the attack to capture memorization patterns at different "scales"—from subtle contextual clues to broader semantic structures.
  2. Robust Subset Aggregation: Standard attacks are often derailed by "heavy-tailed noise"—occasional tokens with massive loss values that skew the average. SAMA samples many small subsets of tokens and uses sign-based statistics. It simply asks: "Is the target model's loss lower than the reference model's loss for this subset?"
  3. Adaptive Weighting: SAMA uses an inverse-step weighting scheme that prioritizes "sparse" masks (low density). These masks provide cleaner signals because the model has more context to work with, making its memorization more obvious.

Datasets and Evaluation

The researchers evaluated SAMA across nine diverse datasets to ensure the findings weren't domain-specific. These included the MIMIR Benchmark (ArXiv, GitHub, HackerNews, PubMed Central, Wikipedia, and Pile CC) and Standard NLP Tasks (WikiText-103, AG News, and XSum). The attack was tested on state-of-the-art DLMs, specifically LLaDA-8B and Dream-7B.

Key Insights and Ideas

  • The "Masking Opportunity": In an ARM, there is only one way to predict a token (using the words before it). In a DLM, a token can be predicted using any combination of surrounding words. This creates a massive, high-dimensional space where memorization can hide.
  • Magnitude is a Trap: The authors found that the "strongest" signals (the biggest drops in loss) often come from general domain adaptation rather than specific memorization.
Density and violin plots illustrating the heavy-tailed noise distribution in loss differences.

By using a sign-based "voting" system instead of averaging magnitudes, SAMA filters out this "domain noise" and focuses on consistent patterns of memorization.

  • DLMs are fundamentally different: Traditional MIA methods designed for ARMs perform almost no better than random guessing (AUC ≈ 0.50) when applied to DLMs. This highlights that DLMs require a completely different security mindset.

Key Results

  • Superior Performance: SAMA achieved a 30% relative improvement in Area Under the Curve (AUC) compared to the best existing baselines.
  • High Precision at Low Risk: For real-world attackers, "False Positives" (wrongly accusing a model of seeing data) are costly. SAMA showed up to an 8× improvement in the True Positive Rate at very low False Positive Rates (0.1% FPR).
  • Defense Effectiveness: The authors tested several defenses. While standard techniques like LoRA and Differential Privacy (DP-LoRA) helped, a specialized defense called SOFT (Selective Data Obfuscation), which paraphrases "memorable" training samples, was the most effective at neutralizing the attack.

Limitations and Future Work

  • Scope: SAMA specifically targets "mask-predict" style diffusion models. Its effectiveness on other types of diffusion architectures (like those using continuous embeddings) remains an open question.
  • Reference Model Requirement: Like many strong MIAs, SAMA requires access to a "reference model" (usually the pre-trained base model) that uses the same tokenizer and masking scheme.
  • Future Directions: The authors suggest that the "sign-based voting" insight could be adapted back to standard Autoregressive Models to help filter out domain-level noise and improve privacy auditing across the board.

Summary updated

BibTeX
@inproceedings{chen2026membership,
  author = {Yuetian Chen and Kaiyuan Zhang and Yuntao Du and Edoardo Stoppa and Charles Fleming and Ashish Kundu and Bruno Ribeiro and Ninghui Li},
  title = {{Membership Inference Attacks Against Fine-tuned Diffusion Language Models}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=oWKJursYpW},
}
Figure