Invisible but Reliable: Pseudorandom Codes for Watermarking AI Content in the Post-Quantum Era

09.11.2026

How to combine indistinguishability from randomness with tamper resistance—and why this question matters for trust in AI in a world where quantum computers are changing the rules of cryptography. A fair clarification about the connection to quantum topics.  The paper arXiv:2605.19402v2 is not directly devoted to quantum computing; it is a work on theoretical cryptography and coding theory. However, it builds a primitive on the assumptions of LPN and planted XOR, which are considered  post-quantum candidates . Therefore, its results naturally fit into the post-quantum agenda: as classical signature and key establishment schemes migrate to new standards (FIPS 203–205), trust in content also requires cryptographic primitives designed for future threats. Below, we examine precisely this bridge—without exaggerating the “quantum” nature of the paper itself. The paper arXiv:2605.19402v2 addresses a specific and challenging problem: constructing edit-resistant public-key pseudorandom codes with high speed. Its key ideas are a CGK embedding as an “edit → substitution” bridge, synchronization strings for alignment, and multilayer concatenation for enhanced robustness. The results: the first binary public-key zero-bit PRC to handle edits, with speed of 1 − ε for large alphabets and 1/2 − ε for binary, achieving the Singleton bound in one regime.

This is important for the post-quantum agenda not because PRCs replace post-quantum cryptography, but because trust in content is a separate problem that must be solved using post-quantum assumptions. LPN and planted XOR are candidates, but not guarantees. Open problems (quadratic distortion, constant edit rate at constant speed, and direct assumptions) remain.

A good scientific article doesn’t promise a breakthrough. It shows where the limits of the known lie and suggests a testable next step. This paper does just that.

Content

  1. The paradox of the invisible and the reliable
  2. What is pseudo-random code?
  3. Key results: table and numbers
  4. Three technical ideas that hold everything together
  5. Cryptographic assumptions and the post-quantum context
  6. Tested questions and answers
  7. Fair comparison with other works
  8. Limitations and open issues
  9. Practical value and social implications
  10. The following experiments and how to test
  11. Conclusion
  12. Sources

1. The paradox of the invisible and the reliable

⚙️ Detailed research option

Imagine you need to prove the authorship of text, images, or videos generated by a neural network. You embed a hidden signal—a watermark—into the content. But the watermark has two seemingly mutually exclusive requirements.

The first is invisibility.  No effective observer, even one making numerous adaptive queries to the model, should be able to distinguish between labeled content and regular content. Otherwise, the watermark either degrades quality or is revealing and renders it meaningless.

Second, reliability.  A recipient with a secret key should be able to extract the signal even after the content has been edited: rephrased, cut, rewritten, inserted, or deleted.

This is the central paradox of watermarks, formulated in works on pseudorandom codes (PRC). Classic error-correcting codes solve the second problem but are completely unconcerned with the first: their codewords are structured and easily distinguishable from random ones. Cryptography can create pseudorandom objects, but it cannot decode them after interference. PRC is an attempt to combine both worlds.

“A PRC codeword is computationally indistinguishable from a uniform random string for any efficient observer without the key, but is still decodable by someone with the key.” — informal idea by Christ and Gunn (CRYPTO 2024).

The paper arXiv:2605.19402v2 takes the missing step: it builds  public  -key PRCs that are robust to  edits  (insertions and deletions), not just character substitutions, and does so at a high rate, approaching 1 for large alphabets and 1/2 for the binary alphabet.

2. What is a pseudo-random code?

⚙️ Detailed research option

Formally, PRC is a triple of algorithms (KeyGen, Enc, Dec) over the alphabet Σ for which three properties hold.

PropertyWhat does it mean?Why is it important for watermarks?
Robustness ​For any message  m,  the keyed decoder returns  m  after exposure to the error channel with probability 1 − negl(λ).The sign survives content edits.
Soundness  (correctness)A string that is not a genuine codeword decodes to ⊥, except in negligible probability.You cannot counterfeit the sign or pass off someone else’s content as your own.
Pseudorandomness ​For any PPT adversary, a real encoding oracle is indistinguishable from an oracle that returns uniform strings.The observer does not see that the content is marked up.

A distinction is made between  secret-key  PRC (the encryption and decoding key are secret) and  public-key  PRC (the encryption key is public, but the decoding key is secret). For practical scenarios where a watermark needs to be applied, for example, by a watermarking service and verified by a trusted auditor, the public-key version is essential; otherwise, anyone who can encode can also forge it.

Zero-bit PRC stands out separately   : it has only one message (“1”), and the decoder’s task is simply to confirm the presence of the codeword. Such codes are a building block: they are used to assemble multi-bit constructions, protecting a short random seed and masking the payload.

The key point is  that PRC isn’t “an error-correcting code plus encryption.” It’s an object whose pseudorandomness and decodability are provided by the same algebraic structure. That’s why it’s difficult to build, and doubly so to build for corrections.

3. Main results: table and numbers

⚙️ Detailed research option

The authors work with a  p(·)-bounded edit channel model : the output differs from the input by no more than p(n)·n insertion and deletion operations (a replacement is counted as a deletion + insertion, i.e., two actions).  A sublinear polynomial  channel is considered separately: the number of edits does not exceed n 1 − c  for some constant 0 < c < 1.

ResultWhat is being claimedConditions
Theorem 1.3  (Hamming reduction → edit)From a binary zero-bit PRC that is robust to a fraction  p  > 1/4 of substitutions, one obtains a binary zero-bit PRC that is robust to any sublinear polynomial channel of edits.p > 1/4; public-key or secret-key.
Investigation 1.4The first public-key zero-bit PRC over the binary alphabet that is resistant to sublinear polynomial edits.Assumption 1.2 (LPN/XOR).
Theorem 1.5  (multi-bit → zero-bit)If there is a zero-bit PRC over Σ that is resistant to  p -bounded edits, then there is a PRC with rate 1 − ε that is resistant to  p′ -bounded edits, where p′ = Ω(min{p, ε}).|Σ| ≥ poly(1/ε); ε is small.
Investigation 1.6PRC with rate 1 − ε: (a) over the alphabet poly(λ, 1/η), resistant to (ε − η)-bounded edits; (b) over the alphabet poly(1/ε), resistant to sublinear edits.(a) Assumption [GM24] (local weak PRFs); (b) Assumption 1.2.
Theorem 1.7  (binary case)A binary PRC of rate 1/2 − ε that is robust to p′-bounded edits, where p′ = Ω(min{p, ε³ / log(1/ε)}).From zero-bit binary PRC with stability p.
Investigation 1.8A binary public-key PRC with rate 1/2 − ε that is resistant to sublinear polynomial edits.Assumption 1.2.

Note the asymmetry: for large alphabets, the rate approaches 1, while for binary, it approaches 1/2. This is not random, but a reflection of fundamental limitations: the binary alphabet does not allow for efficient encoding of synchronization without additional markers, and markers easily recognized by the decoder are also easily recognized by the discriminator, which destroys the pseudo-randomness.

What is the Singleton bound and what does it have to do with edits?  For channels with insertions and deletions, there is an analogue of the Singleton bound: the coding rate and the proportion of edits that are corrected cannot simultaneously be arbitrarily large. Result (a) from Corollary 1.6 achieves this bound up to a constant—this is strong theoretical evidence for optimality.

4. Three technical ideas that hold it all together

⚙️ Detailed research option

4.1 CGK-embedding: turning edits into replacements

⚙️ Detailed research option

The main difficulty with edits is the loss of synchronization: a single insertion shifts all subsequent indices, and the sparse parity checks that underpin Hamming-resistant PRCs stop working. The authors’ idea is to use  a CGK embedding  (Chakraborty, Goldenberg, Koucký, STOC 2016), which maps rows so that the edit distance maps to the Hamming distance with quadratic distortion.

Formally: for strings  x ,  y  of length L and a random seed  r  of length 3L,

Δ H (Emb( x ,  r ), Emb( y ,  r )) ≤ c · ( Δ E ( x ,  y ))²

with probability at least 1 − 6/√c by randomness  r . The embedding is reversible: given the embedding string and seed, the original string can be reconstructed.

The zero-bit PRC scheme is almost naive: encode a Hamming-PRC message, obtain a string  a , then output  y  = Emb −1 ( a ,  r ). The decoder applies Emb to the resulting string and returns the result to the Hamming decoder. The subtlety is that not every binary string is a valid embedding; the authors “project”  a  onto the nearest valid embedding by flipping conflicting bits. This adds no more than 1/4 of the Hamming error rate—and this is precisely why Hamming-PRC requires robustness greater than 1/4.

Pseudo-randomness is ensured by a beautiful observation: for a fixed  r,  the composition “projection + inverse embedding” induces an injective mapping from the indices  of y  to the indices  of a . If  a  is uniform, then so  is y  . This means that  r  can be kept in the public key.

4.2 Synchronization lines and payload

⚙️ Detailed research option

To increase speed, it is necessary to transmit not only the presence of the code, but also the payload—the message  m . The decoder must recover a short random seed  s , which masks the payload. The authors use a construction of the form

PRC λ ( s ) ∘ (PRG( s ) ⊕  c ),

where  c  is the payload codeword, and the PRC λ ( s ) protects the seed. Each bit of  s  is encoded either by a true zero-bit PRC (bit 1) or by an independent uniform string (bit 0).

Problem: The protected part is short, and the adversary can concentrate the entire permissible error rate on it. The solution is to randomly interleave marker blocks with the payload and use  synchronization strings  (Haeupler–Shahrasbi): a uniform random string is ε-self-matching with high probability, allowing positions to be aligned after corrections and limiting corrections to substitutions and erasures. The remaining errors are corrected by an algebraic-geometric code (AG code) with decoding from a mixture of substitutions and erasures.

A subtlety with pseudorandomness.  The synchronization string should appear random, but the decoder needs to know it. The authors split the seed into two parts: one generates the synchronization string via PRG, the other generates the masking string. The public shift (shift pk ) makes each component uniform for a fixed seed, and the decoder recovers the seed from marker blocks.

4.3 Binary Concatenation and Robustness Enhancement

⚙️ Detailed research option

In the binary case, synchronization strings require a larger alphabet. The authors take a different approach: they use the construction of binary insdel codes from [CJL+23], where the outer code is Reed–Solomon and the inner codes are random linear codes of length Θ(log n). Random inner codes are good with probability 1 − 1/poly(n), which is insufficient for a cryptographic guarantee of negl(λ).

Therefore, another concatenation layer is added: n β  such blocks, which increases the success probability to 1 − negl(n). The resulting speed is 1/2 − γ, and the proportion of edits that are corrected is Ω(γ³ / log(1/γ)). This yields Theorem 1.7.

LayerRoleWhat does it give?
CGK investmentThe “edit → replace” bridgeSquare root distortion, resistance to sublinear edits
Synchronization lineAlignment after insertions/deletionsSpeed ​​close to 1 for large alphabets
AG codeCorrection of residual replacements and deletionsReaching the Singleton Border
Binary concatenation [CJL+23]Binary insdel code without markersSpeed ​​close to 1/2
Gain via external RS codeRaising the probability of success to neglCryptographic guarantee

5. Cryptographic assumptions and the post-quantum context

⚙️ Detailed research option

All results in the article rely on  Assumption 1.2  (in the article – Assumption 2.5), which states that at least one of the following holds:

  1. Subexponential LPN complexity:  Learning Parity with Noise is hard for any adversary running in 2 O(√n) time .
  2. Polynomial complexity of LPN + planted XOR:  both problems are hard for a polynomial adversary.

This is the same assumption as in [CG24] for Hamming-resistant zero-bit PRC. Importantly, the authors do not introduce new cryptographic assumptions—they use the existing Hamming-resistant PRC as a black box. This is methodologically strong: any progress in Hamming-resistant PRC (e.g., [GG25]) automatically carries over to the revisions.

The connection to the quantum threat is a careful one.  LPN has no known efficient quantum algorithm and is considered a post-quantum candidate. However, the paper does not prove the post-quantum security of PRC: it inherits its security from the underlying assumption. If a quantum algorithm for LPN were to appear tomorrow, the design would require replacing the underlying PRC. This is a fair limitation that is important to clarify.

In the context of the question designer (Section 9), this corresponds to questions 49–58: what cryptographic problem is being considered, what resources does the attacker need, and how do quantum key distribution (QKD) and post-quantum cryptography (PQC) relate? PRC is not a replacement for PQC, but an additional primitive for  content trust that must be designed with post-quantum assumptions in mind.

6. Verifiable questions and answers

⚙️ Detailed research option

Below are selected questions from the constructor (numbering preserved) and short answers linked to the article. This is not an exhaustive analysis of all 75 questions, but rather a working document of the research.

1. What specific problem does the technology solve and for whom is it important?

The problem: invisible and edit-resistant labeling of AI content. Important for generators (origin label needed), auditors (verification needed), regulators (traceability needed), and users (anti-counterfeiting needed).

2. What question seems paradoxical, but can be scientifically verified?

How can a string be simultaneously indistinguishable from random and decodable? Answer: pseudorandomness is computational (for a PPT adversary without a key), while decodability is provided by the key and the algebraic structure. Verifiable: build a distinguisher or decoder that breaks one of these properties.

4. How to formulate a testable hypothesis and what observation will refute it?

Conjecture: For channels with sublinear number of edits, there exists a public-key binary PRC with rate 1/2 − ε under Assumption 1.2. Rebuttal: An efficient discriminator of the coding oracle from a uniform one, or an efficient decoder that finds the message without the key, or a proof of impossibility under the given assumptions.

7–10. What is the underlying mechanism and can it be explained with a minimal example?

Mechanism: CGK embedding translates edits into replacements with quadratic distortion; the synchronization string aligns positions; PRG masks the payload. A minimal example: a single insertion shifts all indices, but the CGK random walk “notices” this as multiple Hamming substitutions.

13–18. What is the original work and how has the production changed?

The starting point is [CG24] (PRC for substitutions). [GM24] is a public-key PRC for patches over a polynomial alphabet. [CGG+25] is a binary secret-key PRC for patches under the assumption of permuted codes. [GG25], [AAC+25] are strengthening security concepts. This work is the first public-key binary PRC for patches and high-speed constructions.

25–30. How is a task translated into a formal object and what is the cost?

The problem translates into constructing a pair (Enc, Dec) over Σ with three properties. Cost: codeword length N = n + 2d′ℓ, where d′ = ℓ = Θ(n γ ), γ < 1/4; speed R − o(1); decoding by brute-force substring search and calls to the base decoder.

31–36. What is the error model and how does the error probability change?

Model: p(·)-bounded edit channel, oblivious (error pattern is independent of keys and codewords). Decoding error probability is negl(λ) due to block independence and gain. Security costs: additional blocks, masks, retries.

37–42. What classical method is it compared to and what is claimed?

Comparison with Hamming-resistant PRCs and [GM24]/[CGG+25]. Claimed: high speed (1 − ε for large alphabets, 1/2 − ε for binary) and resistance to sublinear edits. This is a theoretical advantage, not a measured one.

43–48. What is the basis for the conclusion and is it reproducible?

The basis is mathematical proofs (Theorems 1.3–1.7, lemmas on CGK, synchronization, and concatenation). There is no experimental section. Reproducibility is achieved through formal parameters and estimates; the code is not provided in the article, but the construction is algorithmic.

49–58. What is the cryptographic problem and how are QKD and PQC related?

The problem is not factorization or discrete logarithm, but tamper resistance under pseudorandomness. Assumptions are LPN/planted XOR (post-quantum candidates). QKD addresses key distribution, PQC addresses scheme security, and PRC addresses content trust. These are different but complementary problems.

63–68. Who needs the result and what are the risks?

Needed by generators, platforms, auditors, and regulators. Risks: dual use (labeling and surveillance), vendor dependency, false sense of security if LPN assumptions are weakened. Total cost of ownership includes computation, key storage, and auditing.

69–75. What problems are open and what’s next?

Open: Reduce the quadratic distortion of CGK, achieve a constant edit rate at a constant speed, find assumptions that directly support public-key edit-PRC, simplify constructions. Next experiment: implement a zero-bit binary PRC and measure the actual decoding speed on synthetic edits.

7. Honest comparison with other works

⚙️ Detailed research option

JobAlphabetKeySustainabilitySpeedAssumptions
[CG24]binary / constantpublic / secretconstant proportion of substitutionszero-bitLPN / XOR
[GM24]poly(λ)publicconstant share of editszero-bitlocal weak PRFs
[CGG+25]binarysecretconstant share of editsconstantpermuted codes
[GG25]differentpublic / secretreplacementsimproved designsdifferent
This workconstant / binarypublic / secretsublinear edits; (ε − η) for large alphabets1 − ε; 1/2 − εLPN / XOR; local weak PRFs

How to read the table.  Comparing the works directly is impossible: different error models, different alphabets, different security concepts. The table doesn’t show “who’s better,” but rather “who secures what.” This work fills a niche for public-key PRCs for high-speed edits—a niche that didn’t exist before.

8. Limitations and open problems

⚙️ Detailed research option

The authors list the limitations honestly (section 1.3):

  • Quadratic distortion of CGK.  k edits turn into O(k²) Hamming substitutions. Therefore, the reduction provides stability only to a sublinear number of edits. Removing this limitation is an open problem; this would allow for constant speed with a constant fraction of edits.
  • Lack of “direct” assumptions.  All known edit-resistant PRCs either reduce to Hamming-resistant ones or require less standard assumptions (permuted codes). We would like to find assumptions that directly support public-key edit-resistant PRCs.
  • The binary case.  A rate of 1/2 − ε is good, but not 1 − ε. Binary synchronization requires compromises, and the question of whether a rate close to 1 can be achieved with a constant edit rate remains open.
  • Practical implementation.  The article is theoretical: there are no experimental measurements, no code, and no estimate of the actual cost of decoding for large n.

In designer terms, these are questions 69–72: what problems are open, what experiments will distinguish between competing explanations, what measurable steps will show progress.

9. Practical value and social consequences

⚙️ Detailed research option

Why all this, other than a beautiful theory? There are several reasons.

Content origin.  Regulators are increasingly requiring AI-generated content to be labeled. PRC provides a cryptographically secure basis: the label is invisible, edit-resistant, and cannot be forged without the key.

Edits are the norm.  Paraphrasing, trimming, rewriting, and inserting fragments are typical operations in modern pipelines. The symbol replacement model is unrealistic here; the edit model is realistic.

Economy.  Low speed (high redundancy) means long codewords and high requirements for the model’s output entropy. High speed (1 − ε or 1/2 − ε) reduces this cost and expands applicability.

Post-quantum agenda.  If a primitive is built on post-quantum assumptions, it won’t become obsolete when quantum computers become large enough. This isn’t a guarantee, but a design direction.

Risks and Ethics.  Watermarks are a dual technology: they protect authorship, but can be used for surveillance and censorship. Public-key PRCs reduce the risk of counterfeiting, but they don’t eliminate political issues: who owns the key, who has the right to verify how the keys are stored. These issues can’t be resolved code-wise; they must be addressed institutionally.

10. Next experiments and how to test

⚙️ Detailed research option

This article is theoretical, but it can be tested empirically. Here’s a minimal outline.

  1. Implement a zero-bit binary PRC  using Algorithm 3: CGK embedding, projection, ℓ independent blocks, and a sliding window decoder. Measure the success rate for different edit rates.
  2. Compare with the Hamming base:  the same PRC without the CGK embedding, but with substitutions. Check that the slope of the curves corresponds to the quadratic distortion.
  3. Implement a high-speed design  (Section 4) with a synchronization string and AG code. Measure the actual speed and the percentage of edits corrected.
  4. Verifying pseudorandomness  with statistical tests (NIST STS) is not a cryptographic proof, but a useful sanity check.
  5. Estimate the cost  of decoding: time, memory, number of calls to the base decoder.

Refutation criterion: If, with realistic revisions (paraphrasing, pruning), the probability of success falls faster than the theory predicts, or if statistical tests find structure, the design requires revision.

11. Conclusion

⚙️ Detailed research option

The paper arXiv:2605.19402v2 addresses a specific and challenging problem: constructing edit-resistant public-key pseudorandom codes with high speed. Its key ideas are a CGK embedding as an “edit → substitution” bridge, synchronization strings for alignment, and multilayer concatenation for enhanced robustness. The results: the first binary public-key zero-bit PRC to handle edits, with speed of 1 − ε for large alphabets and 1/2 − ε for binary, achieving the Singleton bound in one regime.

This is important for the post-quantum agenda not because PRCs replace post-quantum cryptography, but because trust in content is a separate problem that must be solved using post-quantum assumptions. LPN and planted XOR are candidates, but not guarantees. Open problems (quadratic distortion, constant edit rate at constant speed, and direct assumptions) remain.

A good scientific article doesn’t promise a breakthrough. It shows where the limits of the known lie and suggests a testable next step. This paper does just that.

12. Sources

⚙️ Detailed research option

  1. Huang S., Li X., Mao S., Zhou Z.  High-Rate Public-Key Pseudorandom Codes for Edit Errors.  arXiv:2605.19402v2.
  2. Christ M., Gunn S.  Pseudorandom Error-Correcting Codes.  CRYPTO 2024.
  3. Golowich N., Moitra A.  Edit Distance Robust Watermarks via Indexing Pseudorandom Codes.  NeurIPS 2024.
  4. Christ M., Golowich N., Gunn S., Moitra A., Wichs D.  Improved Pseudorandom Codes from Permuted Puzzles.  arXiv:2512.08918, 2025.
  5. Ghentiyala S., Guruswami V.  New Constructions of Pseudorandom Codes.  APPROX/RANDOM 2025.
  6. Alrabiah O., Ananth P., Christ M., Dodis Y., Gunn S.  Ideal Pseudorandom Codes.  STOC 2025.
  7. Chakraborty D., Goldenberg E., Koucký M.  Streaming Algorithms for Embedding and Computing Edit Distance in the Low Distance Regime.  STOC 2016.
  8. Haeupler B., Shahrasbi A.  Synchronization Strings.  2017–2021 (series of papers).
  9. Cheng K., Jin Z., Li X., Wei Z., Zheng Y.  Linear Insertion Deletion Codes in the High-Noise and High-Rate Regimes.  arXiv:2303.17370, 2023.
  10. Garg S., Gunn S., Wang M.  Black-Box Crypto is Useless for Pseudorandom Codes.  TCC 2025.
  11. Döttling N., Müller A., ​​Rajasree MS  Separating Pseudorandom Codes from Local Oracles.  TCC 2025.
  12. NIST.  FIPS 203, 204, 205.  August 2024.
  13. NIST NCCoE.  Migration to Post-Quantum Cryptography.
  14. National Quantum Initiative.  Directions in Quantum Science.