← Latest papers
💻 computer science

Cryptanalysis of LDPC-Based Pseudorandom Error-Correcting Codes

This paper presents the first cryptanalysis of LDPC-based Pseudorandom Error-Correcting Codes (PRCs), demonstrating through novel attacks and real-world experiments that their claimed security guarantees are fundamentally undermined in practical generative model watermarking applications, while also proposing specific defenses and clarifying their inherent security limits.

Original authors: Tianrui Wang, Anyu Wang, Tianshuo Cong, Delong Ran, Jinyuan Liu, Xiaoyun Wang

Published 2026-06-16
📖 5 min read🧠 Deep dive

Original authors: Tianrui Wang, Anyu Wang, Tianshuo Cong, Delong Ran, Jinyuan Liu, Xiaoyun Wang

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

The Big Picture: A Flawed Invisible Ink

Imagine a new type of "invisible ink" designed for Artificial Intelligence (AI). This ink is supposed to be used to stamp a secret, unremovable mark on AI-generated text and images (like a watermark). The goal is to prove that a piece of content was made by a specific AI, without anyone being able to see the mark or wash it away.

This "invisible ink" is called PRC (Pseudorandom Error-Correcting Codes). The creators claimed it was mathematically unbreakable.

However, a team of researchers from Tsinghua University and Shandong University decided to play the role of "security testers." They tried to break this ink. Their conclusion? The ink is leaking. They found three different ways to either see the invisible mark or wash it away, proving that the current version of this technology is not as secure as advertised.


The Three Ways They Broke the Ink

The researchers focused on the specific recipe used to make this ink, called LDPC-PRC. They found three distinct "loopholes" in the recipe:

1. The "Partial Key" Heist (Attack-I)

  • The Analogy: Imagine the secret key to the invisible ink is a giant, complex combination lock with thousands of tumblers. The public key is a hint about the lock. The researchers found a way to pick just a few of the tumblers (recovering part of the secret key).
  • What it means: Even if you don't have the whole key, having just a few pieces is enough to tell the difference between a "watermarked" image/text and a normal one. It's like being able to tell if a house is locked just by seeing that one specific window is slightly ajar.
  • The Result: They could detect the watermark with near-perfect accuracy using a relatively small amount of computing power.

2. The "Duplicate Page" Mistake (Attack-II)

  • The Analogy: Imagine the recipe for making the lock involves shuffling a deck of cards to create a unique pattern. The researchers noticed that the shuffling machine was broken. Sometimes, it accidentally printed the exact same card pattern twice in the deck.
  • What it means: Because the "shuffling" (key generation) wasn't random enough, some of the "locks" (keys) were weak. If an attacker finds one of these weak locks, they can instantly spot the watermark.
  • The Result: In many of the settings the creators suggested, these "weak locks" happen almost 100% of the time. It's like trying to hide a secret in a book where the author accidentally wrote the same sentence on every page.

3. The "Noise Overlay" (Attack-III)

  • The Analogy: The invisible ink is designed to survive a little bit of rain (noise). If you spray a little water on the paper, the ink stays visible. The researchers realized they could spray a specific type of water that cancels out the ink's ability to be read, even though the amount of water looks normal to the naked eye.
  • What it means: They found a way to add a tiny, calculated amount of "static" or "noise" to the text or image. This noise doesn't ruin the picture or the story, but it confuses the decoder so much that it thinks the watermark isn't there.
  • The Result: They could remove the watermark entirely without making the image look blurry or the text look like gibberish.

The Real-World Test: Does it Work on Real AI?

The researchers didn't just do math on paper; they tried this on real AI models:

  • For Text (LLMs): They tried to watermark text from a model called DeepSeek. They found a major problem: To make the watermark detectable, the AI had to write in a way that was very random and low-quality (like a robot hallucinating). If the AI wrote good, natural text, the watermark disappeared. If the watermark was there, the text was unreadable. Verdict: It's practically useless for high-quality text.
  • For Images (GIMs): They tried it on Stable Diffusion. Here, the attacks worked perfectly. They could detect the watermark and remove it with high success rates, proving the security claims were false.

The "Fixes" and Why They Are Hard

The researchers suggested three ways to fix these holes:

  1. Change the Numbers: Make the "locks" bigger and more complex.
  2. Fix the Shuffling: Rewrite the code that generates the keys so it doesn't make duplicates.
  3. Add More Noise: Make the system tolerate more "rain" so the "noise overlay" attack doesn't work.

The Catch:
To make the system truly secure (128-bit security, which is the gold standard), the researchers calculated that the "watermark" would need to be longer than the maximum amount of text any current AI can write in one go.

  • Analogy: It's like trying to fit a 100-page contract into a postcard. The current AI models (like GPT-4) simply don't have enough "space" (output length) to hold a secure watermark.

The Bottom Line

This paper is a "stress test" for a new AI watermarking technology.

  • The Good News: The researchers found the flaws and suggested how to fix them.
  • The Bad News: The current version of this technology is not secure. It can be easily detected or removed.
  • The Reality Check: Even with the fixes, the technology faces a physical limit: Current AI models are too short to hold a truly unbreakable watermark.

The authors conclude that while the idea is promising, we cannot trust this specific "invisible ink" for protecting AI content right now without significant changes.

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 →