CHORD: Learned Chunk-Conditioned Watermarking for Autoregressive Image Generation

Zheyu Fu, Leyi Pan, Ruchang Yao, Lijie WenarXiv 2026

TL;DR

Watermarking images from token-based autoregressive (AR) generators faces a catch-22: making the watermark rule dynamic makes it shatter when an image is lightly edited, while making it static lets attackers easily deduce and erase it. CHORD breaks this trade-off by steering generation using the continuous average meaning of recent visual chunks rather than exact, brittle token IDs. The result is a plug-and-play invisible signature that survives rotations, compressions, and crops while remaining statistically indistinguishable to would-be watermark thieves.

What Problem Does This Paper Address?

While diffusion models dominate the spotlight, autoregressive (AR) image generators—like Parti, Chameleon, and LlamaGen—have caught up in visual quality. Instead of sculpting images from continuous Gaussian noise, AR models build pictures step-by-step like text, picking discrete visual "words" (vector-quantized, or VQ, tokens) from a fixed codebook.

Because there is no continuous noise to watermark, AR watermarks borrow a trick from language models: at each step, split the vocabulary into a "greenlist" and "redlist," subtly nudge probabilities toward green tokens, and later verify an image by re-encoding it and counting the green fraction.

Here lies the trap: token drift. When you save an image as a JPEG or rotate it by a mere $5^\circ$, the picture looks identical to human eyes, yet up to 96% of its discrete VQ token IDs change upon re-encoding!

Token drift under a 5-degree rotation destroys hashed greenlists while CHORD preserves them.

This creates a painful dilemma:

  1. Context-hashed rules (Secret, but Fragile): If you determine the next greenlist by hashing previous token IDs, a single drifted token scrambles the hash, completely randomizing the greenlist for verification.
  2. Static global rules (Robust, but Leaky): Using one fixed greenlist everywhere survives edits, since context doesn't matter. However, across just a few hundred images, green tokens show up way too often. Attackers can count token frequencies, spot the greenlist, and swap those tokens with visual lookalikes to strip the watermark.

How do you make a greenlist vary across images for secrecy, yet stay stable when almost every discrete token changes?

Methods

Instead of retraining the costly VQ tokenizer to resist drift, CHORD keeps the generator and tokenizer completely frozen and changes how context is read.

The insight is geometric: when an image is compressed or rotated, token IDs change, but they usually swap to nearby neighbors in the continuous codebook embedding space.

Figure 2. Overview of Chord. During generation, the signal network 𝑇𝜃combines the normalized mean codebook embedding c𝑘−1 of the preceding token chunk (seeded by the secret key for the first chunk) with the preceding token embedding e(𝑧𝑡−1) to predict a vocabulary bias w𝑡∈[−1,+1]𝑉, which shifts the frozen generator logits by 𝛿w𝑡. At verification, an image is re-encoded into VQ tokens, 𝑇𝜃is replayed on the recovered sequence, and the average score 1

CHORD introduces two main components:

  • Pooled Chunk Summaries: Rather than looking at discrete IDs, CHORD groups preceding tokens into chunks (default $C=32$) and computes their normalized mean codebook vector. Local quantization jitter cancels out in the average, keeping the summary stable across edits while varying naturally across different visual scenes.
  • Lightweight Signal Network ($T_\theta$): A small residual MLP takes the continuous chunk summary, the immediate previous token's embedding, and a step position to output smooth vocabulary biases. Secret user keys permute the output vocabulary without needing to retrain the network.

To prevent $T_\theta$ from lazily collapsing into a static global rule during training, the authors train it with two competing objectives alongside detection and visual fidelity: a smoothness loss (forcing similar visual contexts and nearby codebook neighbors to share similar biases) and a decorrelation loss (penalizing different positions in an image if they favor the exact same top tokens).

Datasets

  • Training & Evaluation: Clean ImageNet token sequences generated by public class-conditional LlamaGen checkpoints ($256\times256$ and $384\times384$ resolutions) and RAR-XL.
  • Benchmarks: No new image dataset is introduced, but the authors introduce a context-clustering rule-inference attack tailored for continuous watermarks—using spherical $k$-means to group continuous chunk summaries and test whether an adversary can extract local greenlists.

Key Insights and Ideas

  • Chunking alone isn't the magic—smoothness is: A baseline that hashes the exact discrete token IDs of the same 32-token chunks drops to near-chance detection under edits. Stability comes from pooling continuous embeddings and mapping them smoothly.
  • Pairwise overlap without global bias: Across unrelated images, CHORD's greenlists actually share a 0.637 Jaccard overlap due to the smoothness loss. Surprisingly, this doesn't leak the rule! Because the favored subsets shift fluidly across trajectories, aggregate token counts across 500 images stay completely flat and unbiased, thwarting frequency attacks.
Static greenlists exhibit a sharp frequency cliff that leaks 96% of the rule, whereas CHORD decays smoothly.
  • One knob controls the secrecy-robustness trade-off: Ablating the decorrelation loss ($\mathcal{L}_{\text{pc}}$) causes the network to collapse into a near-static rule—boosting edit robustness slightly while causing watermark-removal resistance to plummet (from 0.943 AUROC down to 0.285).

Key Results

Evaluated on LlamaGen-B and LlamaGen-L, CHORD occupies the sweet spot of high edit survival and high secrecy:

Trade-off between edit robustness and rule secrecy across watermarking methods.
  • Edit Robustness: On aligned edits (JPEG, WebP, noise, blur, color shifts), CHORD hits 0.993 mean AUROC, matching the static global ceiling (0.997). On misaligning edits that wreck token grids, it beats 1-token hashed KGW by +0.193 AUROC on $5^\circ$ rotation and +0.158 on 5% cropping.
  • Attack & Secrecy Resistance: Given 500 queried images, frequency-counting removal destroys global KGW (0.015 AUROC), whereas CHORD retains 0.943 AUROC. Under context-clustering rule inference, attackers only guess CHORD's rules at 0.536 accuracy (barely above 0.50 random chance).
  • Zero-Shot Transfer: Trained once at $256\times256$, $T_\theta$ transfers zero-shot to $384\times384$ generators via simple positional interpolation, maintaining 0.941 aligned mean AUROC on LlamaGen-L-384.

Limitations and Future Work

  • Severe Geometric Distortions: Under extreme spatial shifts like $30^\circ$ or $90^\circ$ rotations, detection degrades considerably (~0.58–0.61 AUROC) because chunk boundaries fall out of spatial alignment. Pairing CHORD with geometric synchronization modules is a promising next step.
  • Latency Overhead: Because $T_\theta$'s linear output head scales with codebook size ($V \times 512$, accounting for 8.40M of its 9.44M parameters), it adds per-step compute overhead. Distilling lighter output heads could speed up generation.
  • Zero-bit Payload: CHORD currently verifies presence ("was this generated by model X?") rather than encoding multi-bit metadata strings, which the authors leave for future extension.

Summary updated

BibTeX
@misc{fu2026chord,
  author = {Zheyu Fu and Leyi Pan and Ruchang Yao and Lijie Wen},
  title = {{CHORD: Learned Chunk-Conditioned Watermarking for Autoregressive Image Generation}},
  year = {2026},
  eprint = {2611.36032},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.36032},
}
Figure