Ideal Pseudorandom Codes

Omar Alrabiah, Prabhanjan Ananth, Miranda Christ, Yevgeniy Dodis, Sam Gunn

TL;DR

This paper introduces and constructs "ideal" and "CCA-secure" pseudorandom codes (PRCs), a type of error-correcting code crucial for robust watermarking of generative AI outputs. They achieve a new standard of "adaptive robustness," meaning the codes can withstand errors even when an adversary has access to the encoding key, a significant improvement over previous methods.

What Problem Does This Paper Address?

Generative AI models (like those creating images or text) can be watermarked to prove their origin or prevent misuse. Pseudorandom codes (PRCs) are a cryptographic tool that can achieve this by making the AI's output look random while still allowing for detection of the watermark. However, existing PRCs are only robust to "oblivious" errors – errors that don't depend on what has been seen before. Real-world adversaries can be much more sophisticated, observing multiple outputs and using that knowledge to craft errors that specifically target the watermark. This "adaptive" attack can remove or forge watermarks. This paper tackles the challenge of creating PRCs that are robust to these more powerful, adaptive adversaries, and introduces stronger security notions like "ideal security" and "CCA security" to capture this enhanced robustness.

Methods

The paper introduces and formalizes two new security notions for PRCs: adaptive robustness and ideal security. They then present generic transformations to build PRCs with these properties:

  • Adaptive Robustness: They prove that a slight modification of existing LDPC-based PRCs (from Christ and Gunn [CG24]) are adaptively robust. This means they can withstand errors even when the adversary knows the encoding key. They achieve near-optimal robustness for zero-bit and single-bit messages.
  • Ideal Security: They define "ideal security" as a unified notion that captures pseudorandomness, soundness, and adaptive robustness. They show a generic transformation that converts any adaptively robust single-bit PRC into an ideal PRC with a linear information rate, requiring only a pseudorandom function (which is implied by the existence of a PRC).
  • CCA Security: In the public-key setting, they define "CCA security" (analogous to CCA security in encryption) and show a generic transformation that builds a CCA-secure PRC from an adaptively robust public-key PRC, but this requires the random oracle model.

Datasets

Not discussed in the paper.

Key Insights and Ideas

  • Adaptive Robustness is Crucial: The core insight is that for practical applications like watermarking, PRCs need to be robust not just to random errors, but to errors crafted by an adversary who learns from previous interactions. This is a significant step beyond prior work.
  • Unifying Security Notions: The paper introduces "ideal security" as a single, powerful definition that encapsulates multiple desirable properties of PRCs. This provides a cleaner framework for understanding and constructing secure PRCs.
  • Bootstrapping Security: The work demonstrates how to build stronger PRC security (ideal and CCA-secure) from weaker, but still robust, PRCs. This "bootstrapping" approach is a common and powerful technique in cryptography.
  • Bridging Cryptography and Coding Theory: The proofs often combine techniques from both fields, highlighting the interdisciplinary nature of constructing these advanced cryptographic primitives.

Key Results

  • Adaptive Robustness Achieved: The paper proves that existing LDPC-based PRCs can be made adaptively robust to a constant rate of errors (specifically, up to 1/4 for single-bit messages). This resolves a conjecture in the field.
  • Ideal PRCs Constructed: They show how to construct ideal PRCs with linear information rates from adaptively robust single-bit PRCs, under no additional assumptions beyond the existence of a PRC.
  • CCA-Secure PRCs Constructed: In the random oracle model, they construct CCA-secure PRCs with linear information rates from adaptively robust public-key PRCs.
  • Foundation for Better Watermarking: These results imply stronger guarantees for watermarking generative AI models, making them more resilient to adversarial attacks.

Limitations and Future Work

  • CCA Security in Random Oracle Model: The construction of CCA-secure PRCs relies on the random oracle model, which is a theoretical idealization. Achieving CCA security in a standard model would be a significant advancement.
  • Robustness Trade-offs: While the paper achieves adaptive robustness, the transformations for ideal and CCA security can incur a loss in robustness or require specific models (like the random oracle model). Optimizing these trade-offs is an open area.
  • Ideal Security for Zero-Bit PRCs: The paper notes that constructing zero-bit PRCs with ideal security for error rates beyond 1/4 might require new techniques.
  • General Error Channels: The current work focuses on substitution channels. Extending these results to more general error channels (like deletions or insertions) would be valuable.

Summary updated

BibTeX
@inproceedings{alrabiah2025ideal,
  author = {Omar Alrabiah and Prabhanjan Ananth and Miranda Christ and Yevgeniy Dodis and Sam Gunn},
  title = {{Ideal Pseudorandom Codes}},
  booktitle = {STOC},
  year = {2025},
  doi = {10.1145/3717823.3718309},
}
Figure