← Latest papers
💬 NLP

Extracting Training Data from Diffusion Language Models via Infilling

This paper introduces "infilling extraction" to demonstrate that diffusion language models are significantly more vulnerable to training data memorization than autoregressive models, as their bidirectional denoising capabilities allow adversaries to extract up to three times more verbatim sequences, including redacted personally identifiable information, using edge-conditioned masks.

Original authors: Yihan Wang, N. Asokan

Published 2026-05-26
📖 5 min read🧠 Deep dive

Original authors: Yihan Wang, N. Asokan

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you have a giant, super-smart library assistant (a Large Language Model) that has read millions of books, emails, and documents. You want to know: If someone asks this assistant to repeat a specific sentence from its memory, how likely is it to spill the beans?

For a long time, researchers only tested this by asking the assistant to "finish the sentence" starting from the very beginning. It's like showing someone the first half of a story and asking them to guess the rest. This works well for standard AI models that read left-to-right, like a human reading a book.

But this paper introduces a new type of AI called a Diffusion Language Model (DLM). Think of a DLM not as a reader, but as a restorer of damaged paintings. If you take a masterpiece and cover random parts of it with white paint (masks), the DLM's job is to look at the whole picture—what's to the left, what's to the right, and what's in the middle—and guess what the hidden parts should be.

The authors of this paper say: "Hey, we've been testing these painting restorers the wrong way!"

Here is the breakdown of their findings using simple analogies:

1. The Old Way vs. The New Way

  • The Old Way (Prefix-Conditioned): Imagine you show the restorer only the left edge of a painting and ask, "What comes next?" The paper found that if you only do this, the DLM seems pretty safe. It doesn't leak much secret info.
  • The New Way (Infilling Extraction): The authors realized that because DLMs can look at both sides of a gap, a sneaky attacker could cover up the middle of a sentence and ask, "Fill in the blank." Or, they could cover the ends and ask, "What's in the middle?"
    • The Analogy: It's like playing a game of "Mad Libs." If you give the AI the beginning and the end of a sentence, it might be able to guess the middle word perfectly, even if it couldn't guess the end if you only gave it the beginning.

2. The Big Discovery: "Edge" is the Danger Zone

The researchers tested different ways of hiding parts of the text (masks). They found that how you hide the text matters more than you think.

  • The "Edge" Effect: If you reveal the very beginning and the very end of a sentence (hiding the middle), the DLM is three times more likely to leak the exact words than if you only revealed the beginning.
  • Why? Because the DLM uses clues from both sides to reconstruct the middle. It's like having two people whispering the start and end of a secret to a third person; they can figure out the whole secret much easier than if only one person whispered the start.

3. The "Redacted Document" Scenario

The paper looks at a very realistic scary scenario:

  • Imagine a company trains an AI on private emails but then blacks out (redacts) all the phone numbers and names before releasing the data or the model.
  • The Attack: A hacker takes the model and says, "I have the email with the name blacked out. Please fill in the blank."
  • The Result: Even though the AI was trained on redacted data, the "painting restorer" (DLM) is so good at looking at the surrounding context that it can often guess the blacked-out name or number better than a standard "book-reading" AI could.
  • The Takeaway: Just because you black out the sensitive info in the training data doesn't mean the AI won't remember it. In fact, for this type of AI, it might be easier to guess the secret if you give it the context on both sides.

4. Tuning the "Restoration" Settings

The researchers also found that the settings used to "restore" the text (like how many steps the AI takes to guess) change how much it leaks.

  • Slow and Steady: If you make the AI take many small, careful steps to fill in the blanks, it leaks more secret info.
  • Fast and Loose: If you make it guess quickly, it leaks less.
  • The Lesson: The "knobs" you turn to make the AI faster or smarter also control how much it remembers. You can't just turn one knob for speed without affecting safety.

5. Fine-Tuning Doesn't Fix It

Finally, they asked: "If we teach the AI to be a polite chatbot later on (a process called SFT), does it forget the secrets?"

  • The Answer: No. It's like trying to teach a parrot to stop saying a swear word by teaching it new words. The parrot might stop saying it sometimes, but if you ask the right question (using the "edge" trick), it will still blurt out the old secret. The memory is still there; it's just been rearranged.

Summary

This paper warns us that Diffusion Language Models are like painting restorers, not just book readers. If you only test them by asking them to finish a sentence from the start, you think they are safe. But if you test them by asking them to fill in the middle of a sentence (using clues from both sides), they are much more likely to leak private information, even if that information was redacted from their training data.

The main takeaway: We need to stop testing these models with just one eye open (looking left-to-right) and start testing them with both eyes open (looking at the whole picture), or we will vastly underestimate how much private data they are holding onto.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →