LiBRA: Detection-Aware Image Watermark Removal via Bidirectional Latent Optimization

Saibo Ye, Huajie Chen, Xin Guo, Le Yang, Chi Liu, Xiangyu Hu, Jingjing Guo, Tianqing ZhuarXiv 2026

TL;DR

LiBRA (Latent In-band Bidirectional Removal Attack) is a novel method for removing digital watermarks from AI-generated images by steering the watermark's decoding confidence toward a "near-chance" target rather than full inversion. By optimizing in the latent space of a public autoencoder with a symmetric loss, it successfully evades sophisticated two-sided statistical detectors while maintaining significantly higher image fidelity and faster runtimes than traditional inversion-based attacks.

What Problem Does This Paper Address?

As AI-generated content (AIGC) becomes ubiquitous, digital watermarking has emerged as a critical tool for source attribution and authenticity verification. However, the security of these watermarks depends on their resistance to removal attacks.

Most existing removal attacks follow a simple intuition: push the decoded watermark as far away from the original key as possible. This is known as watermark inversion. The problem is twofold:

  1. Two-Sided Detection: A security-conscious provider doesn't just look for high agreement with a key; they also look for unusually low agreement. A watermark that is 99% "wrong" is just as statistically significant (and thus detectable) as one that is 99% "right."
  2. Fidelity Loss: Continually pushing for inversion often leads to excessive image distortion. Once a watermark is "removed" (made undetectable), further optimization only serves to degrade the image without providing additional evasion benefits.

The authors tackle the challenge of making watermarks truly undetectable—landing them in the "random guessing" zone—while strictly preserving visual quality.

Methods

The core of the paper is LiBRA, which operates in the latent space of a public, non-watermarked autoencoder (like the VAE used in Stable Diffusion).

Overview of the LiBRA attack pipeline, showing latent-space editing and detector feedback.

Key technical components include:

  • Bidirectional Objective: Instead of minimizing bit accuracy toward zero, LiBRA uses a symmetric loss function that targets a specific "near-chance" mean confidence (e.g., $a^* = 0.45$). If the confidence is too high, the loss pushes it down; if it "overshoots" and becomes too low (entering the detectable inverted region), the loss pushes it back up.
  • Latent Space Optimization: By optimizing a bounded perturbation ($\delta$) in a compact latent representation rather than the high-dimensional pixel space, the attack is more computationally efficient and benefits from the natural image priors inherent in the autoencoder.
  • Fidelity Constraints: The optimization jointly minimizes the watermark loss and fidelity penalties (both in latent and pixel domains) to ensure the attacked image $x'$ remains visually indistinguishable from the original $x_0$.
  • Heuristic Spatial Prior: An optional frequency-guided mask ($M_s$) restricts perturbations to textured or structured regions where changes are less perceptible to the human eye.

Datasets

The authors evaluated LiBRA across four diverse watermarking systems:

  1. Stable Signature: An endogenous, VAE-based system for latent diffusion models.
  2. YU1: An endogenous system for GANs.
  3. HiDDeN: A popular exogenous (post-hoc) encoder-decoder watermarking scheme.
  4. MBRS: A noise-robust successor to HiDDeN.

Evaluation images were drawn from the MS-COCO 2017 validation set (for Stable Signature, HiDDeN, and MBRS) and the CelebA test set (for YU1), totaling 20,000 images across the experiments.

Key Insights and Ideas

  • The "Inversion Trap": The most striking insight is that "more removal" isn't better. Standard attacks that drive bit accuracy to zero fail against two-sided binomial tests. LiBRA's "bidirectional" approach is essential for true evasion.
  • Symmetry is Key: A simple per-bit threshold (stopping once a bit is "flipped") doesn't work because it doesn't provide an incentive to "fix" bits that have been inverted too far. The aggregate symmetric loss on mean confidence allows the optimizer to find the path of least resistance to the non-detection zone.
  • Efficiency of Latents: Optimizing in the latent space of a 512x512 image reduces the number of variables by a factor of 48, leading to significant speedups without sacrificing the ability to disrupt the watermark.
Fig. 4. Bit-accuracy trajectories under the baseline, the adaptive per-bit variant (B+) and the two-sided objective (LiBRA).

Key Results

  • Superior Evasion: On the Stable Signature system, LiBRA reduced the two-sided detection rate (DR2) from 1.00 (full detection) for the inversion baseline to just 0.03, while the baseline's bit accuracy dropped to a detectable 0.018.
  • Higher Fidelity: LiBRA consistently outperformed baselines in image quality metrics. For Stable Signature, it achieved an SSIM of 0.970 and LPIPS of 0.046, compared to the baseline's 0.942 and 0.074, respectively.
  • Speedup: In head-to-head comparisons with the pixel-domain attack WEvade-W-II, LiBRA achieved a 9.5x speedup (12.5s vs 118.6s per image) while maintaining comparable or better evasion and fidelity.
  • Stability: Unlike inversion attacks that continue to degrade image quality as iterations increase, LiBRA's performance remains stable once it reaches the target confidence band.

Limitations and Future Work

  • White-Box Assumptions: The current attack assumes the adversary can access the watermark detector's gradients and knows (or can estimate) the secret key. While the authors show some robustness to key estimation errors (up to 20%), a fully black-box setting remains a challenge.
  • Detector Evolution: The authors briefly explored a "dispersion-aware" detector that looks at the variance of bit confidences. While they developed an adaptive version of LiBRA to counter this, it suggests an ongoing arms race between watermark designers and attackers.
  • Scope: The study focused on multi-bit watermarks with soft-decoding interfaces. It did not evaluate "initial-noise" schemes (like Tree-Ring) which use different detection mechanisms.

Future research directions include exploring black-box optimization techniques and establishing theoretical limits on the trade-off between watermark robustness and image distortion.

Summary updated

BibTeX
@misc{ye2026libra,
  author = {Saibo Ye and Huajie Chen and Xin Guo and Le Yang and Chi Liu and Xiangyu Hu and Jingjing Guo and Tianqing Zhu},
  title = {{LiBRA: Detection-Aware Image Watermark Removal via Bidirectional Latent Optimization}},
  year = {2026},
  eprint = {2610.03166},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.03166},
}
Figure