arXiv:2610.03166cs.CROct 2026

Manuscript Offprint

arXiv:2610.03166

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 Zhu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Saibo Ye♠,†, Huajie Chen♠,◇,†, Xin Guo†, Le Yang◇,‡, Chi Liu†, Xiangyu Hu§, Jingjing Guo¶, and Tianqing Zhu†

Abstract—Digital watermarking supports source attribution for AI-generated images, but its reliability depends on resistance to removal attacks. Some attacks attempt to remove watermarks by forcing the decoded watermark to differ from the original. However, this can produce an inverted watermark that remains detectable, causing removal to fail, while further attempts to alter the watermark may unnecessarily degrade image quality. To address these limitations, we present LiBRA (Latent In-band Bidirectional Removal Attack), which aims to make watermarks undetectable while preserving image quality. Instead of continually pushing the watermark toward inversion, LiBRA adjusts the image to conceal the watermark without encouraging further changes that could degrade image quality. Some attacks keep pushing decoded bits away from the original watermark, even when further changes preserve detectability and damage image quality. With access to the watermark key and decoder, LiBRA makes bounded changes in a public autoencoder's latent space. Unlike inversion-driven objectives that cannot correct excessive inversion, LiBRA guides average decoding confidence toward random guessing from either direction. This helps avoid an inverted but detectable watermark. Leaving individual bits flexible allows image-quality constraints to favor less damaging changes, while an optional frequency-guided mask limits their location. We verify removal using an exact two-sided binomial test rather than assuming the confidence target guarantees success. Experiments on four released watermarking systems show that LiBRA substantially reduces two-sided detection rates while improving image fidelity over the inversion baseline. An iteration study on Stable Signature shows that extending optimization from 25 to 100 iterations further degrades the inversion baseline's image quality, while LiBRA maintains stable detection rates and image fidelity.

Index Terms—Image watermarking, watermark removal, adversarial attacks, latent space, two-sided detection.

I. INTRODUCTION

THE rapid development of artificial intelligence-generated content (AIGC) has made high-quality synthetic images increasingly accessible. Generative adversarial networks, diffusion models, and latent diffusion models have advanced visual realism, supporting content creation, digital design, and media production [1]–[3]. These capabilities also complicate authenticity verification and source attribution, creating risks of misleading dissemination and unauthorized use [4]. Digital watermarking supports provenance by embedding recoverable

Figure

Fig. 1. Overview of LiBRA. A watermarked image is encoded into latent space and iteratively refined using feedback from a frozen watermark detector. LiBRA steers the mean soft bit-matching confidence toward a fixed near-chance target to discourage excessive bit inversion, while fidelity regularization limits visual changes. The refined latent is decoded into the output image. The dashed arrow denotes iterative refinement. Images are illustrative.

identifiers into images. Research has progressed from conventional signal-based embedding to learned encoder–decoder systems and generation-integrated watermarking [5]–[8]. Despite their different embedding mechanisms, these methods depend on reliable detection after image processing and deliberate removal attempts.

Alongside watermarking, removal attacks have expanded beyond conventional transformations to exploit decoder feedback, spectral structures, and generative models. Pixel-domain attacks directly optimize image perturbations, as exemplified by WEvade and its WEvade-W-II variant, which uses random target watermarks to address double-tail detection [9]. Spectral attacks disrupt structures associated with watermark carriers; UnMarker does so without detector feedback [10]. Regeneration attacks reconstruct images through learned compression or diffusion models to weaken watermarks while preserving visual content [11], [12]. Latent-space optimization offers another route, modifying compact autoencoder representations before decoding them into images. Related research also explores decision-boundary information for watermark removal [13]. Although their access assumptions and distortion mechanisms differ, these approaches must balance detection evasion with image fidelity.

Three issues remain. First, low bit accuracy does not necessarily indicate removal: pushing decoded bits away from the key can produce an inverted watermark that remains detectable under a two-sided test. Second, objectives that reward continued inversion may introduce distortion after entering the non-detection region, while simple per-bit stopping thresholds can

♠Equal Contribution, ◇Corresponding Author. †Faculty of Data Science, City University of Macau, Macao SAR, China. ‡School of Information and Communications Engineering, Xi'an Jiaotong University, Xi'an 710049, China. §School of Information and Software Engineering, University of Electronic Science and Technology of China, Chengdu 610054, China. ¶School of Cyber Engineering, Xidian University, Xi'an 710071, China. E-mail: {d24090127012, hjchen, h23090104001, chiliu, tqzhu}@cityu.edu.mo; yangle15@xjtu.edu.cn; huxiangyu@uestc.edu.cn; jjguo@xidian.edu.cn.

admit fully inverted results. Third, attacks optimize soft confidences, whereas detection depends on discrete bit matches, and these quantities can disagree. We examine whether a bidirectional objective on average decoding confidence can counter excessive inversion while preserving image quality during latent-space optimization. Evaluation must examine image-level detection outcomes, since average bit accuracy near chance can conceal removal failures.

Our Work. We propose LiBRA (Latent In-band Bidirectional Removal Attack), a detection-aware watermark removal method operating in latent space. We consider a white-box setting in which the adversary can access the watermark decoder and its gradients and knows or can estimate the watermark key. Our goal is to evade a two-sided statistical test while preserving the visual content of the input image. Given a watermarked image, we first encode it using a public, non-watermarked autoencoder, optimize a bounded perturbation in its latent representation, and decode the modified representation into an attacked image. This allows the attack to operate in a compact space without accessing the provider's watermark-generating components. Latent and image-level fidelity penalties constrain changes to the representation and reconstructed image. An optional frequency-guided mask further restricts perturbations to regions selected from the image content, providing a spatial prior for controlling visual distortion.

The central component is a symmetric loss that guides the mean per-bit confidence toward a prescribed near-chance target. When the mean exceeds the target, the loss encourages it to decrease; when it falls below the target, the loss encourages it to increase. The objective therefore counteracts excessive inversion while leaving individual bit configurations unspecified. We optimize this loss jointly with the fidelity terms, allowing image preservation to influence how the target is approached. LiBRA uses a single optimization procedure without an outer perturbation-budget search. We evaluate the resulting images with the two-sided test and examine the gap between soft confidence and hard bit accuracy. Comparisons across the evaluated watermarking systems and ablations of supporting components assess whether the objective improves the balance between evasion and fidelity.

Our main contributions are as follows:

  • Analysis of objective-detector mismatch. We explain why confidence-minimizing objectives and simple per-bit thresholding rules can still admit fully inverted watermarks, and distinguish soft-confidence optimization from hard-bit detection.

  • A detection-aware aggregate objective in latent space. We study a symmetric mean-confidence penalty combined with bounded latent optimization, fidelity constraints, and an optional spatial prior, examining its effect on watermark evasion and image quality.

  • Cross-system evaluation and mechanism analysis. We assess four watermarking systems through direct comparisons with WEvade-W-II, component ablations, surrogate-gap measurements, and adaptive evaluation, establishing the approach's empirical benefits and scope under the stated threat model.

TABLE I MAIN NOTATION.

NotationDefinition
x0,x′x_0, x'Watermarked input and attacked image.
E,DE, DPublic autoencoder encoder and decoder.
DmD_mWatermark decoder.
w,Nw, NWatermark key and its bit length.
Lw,δL_w, \deltaInput latent representation and latent perturbation.
MsM^sFrequency-guided spatial mask.
a(x′)a(x')Fraction of decoded bits matching the key.
cˉ,a⋆\bar{c}, a^\starMean soft confidence of agreement with the key and its target value.
AN,α\mathcal{A}_{N,\alpha}Accepted bit accuracies under the two-sided test at significance level α\alpha.
Lbd2,LfidL_{\text{bd2}}, L_{\text{fid}}Proposed watermark loss and fidelity loss.

References (37)