LiBRA: Detection-aware image watermark removal via bidirectional latent space optimizationLiBRA: Detection-Aware Image Watermark Removal via Bidirectional Latent Optimization
On four watermarking systems, LiBRA's two-sided detection rate is 0–0.05, and the inversion baseline is 1.00 in all cases.
The paper is called white-box and resource-limited: can query Dm and backpropagate, know or can estimate the key w and length N, use a public non-watermark VAE for bounded latent-space modifications. Cannot access the provider's watermark decoder, cannot re-embed, modify the detector, or intervene in generation, and cannot observe α. The goal is to make the hard bit accuracy fall into the exact two-sided acceptance set while maintaining SSIM and LPIPS.
- Watermarks in generated images need to remain detectable after deliberate removal. Pushing decoded bits toward inversion leaves a watermark that a two-sided test can still detect, and further modification can also damage the image.
- LiBRA performs bounded perturbations in the latent space of a public non-watermark autoencoder, uses a symmetric loss to pull the average soft confidence from both sides toward a near-random target, and uses a fidelity term to limit visual changes. Whether evasion occurs is determined by an exact two-sided binomial test.
- On four published systems, each with 5,000 images, the two-sided detection rate of the inversion baseline is 1.00 for all, LiBRA is 0 to 0.05, and SSIM is higher than that baseline. The unadapted dispersion combination has a detection rate of 0.64.
- The authors point out that the attack assumes detector gradients and the key or an estimate, does not characterize arbitrary black-box deployments, and the target depends on the assumed significance level. The evaluation covers four published checkpoints; the paper does not report multiple independent repetitions.
- Evaluated models
- Stable SignatureYU1HiDDeNMBRS
- Benchmarks
- MS-COCO 2017 validationCelebA
- Metrics
- DR1DR2Bit ACCPSNRSSIMLPIPS
The researchers propose LiBRA (Latent In-band Bidirectional Removal Attack), a method that removes watermarks from AI-generated images through bidirectional latent space optimization, given a known watermark key and decoder. Existing attacks remove watermarks by forcing the decoded watermark to differ from the original, but they may produce an inverted watermark that is still detectable, causing removal to fail, and further modification harms image quality. LiBRA makes bounded modifications in the latent space of a public autoencoder, guiding the average decoding confidence from either direction to the random-guess level, avoiding an inverted but detectable watermark. The method retains single-bit flexibility, allowing image quality constraints to favor modifications that cause less damage, and can use a frequency-guided mask to restrict modification locations. The study verifies removal effectiveness using an exact two-sided binomial test, rather than assuming that a confidence target necessarily leads to success.
Related events and news
1 events · 0 news mentions
- This event's paper
LiBRA 双向潜空间优化去除图像水印
Paper analysis
What problem does this paper attempt to solve?
Inverting a watermark remains detectable under a two-sided test; LiBRA pulls average confidence toward a near-random target.
Steadily pushing watermark bits toward inversion can still be detected under a two-sided test)Skip and continues to damage the image.
- Scenario: The authors argue that AIGC image watermarks are used for source attribution, and reliability depends on detectability after image processing and deliberate removal. Embedding can be a traditional signal, a learnable codec, or coupled with the generation process.
- Detection gap: Low bit accuracy does not equal removal. The authors note that pushing decoded bits away from the key produces an inverted watermark that a two-sided test can still detect.
- Optimization gap: An objective rewarding continued inversion can still add distortion after entering the undetectable region; per-bit stopping thresholds also accept full inversion. Soft confidence and discrete bit matching can be inconsistent.
- Approach: LiBRA makes bounded changes in the latent space of a public non-watermark autoencoder, pulling average decoding confidence from both sides toward a near-random target. An optional mask restricts locations. Whether removal succeeds is checked with an exact two-sided binomial test, not by treating the confidence target as success.
- Threat model:
- Goal: Make hard bit accuracy fall in the acceptance set so the two-sided test cannot assert the watermark is present; while staying close to the input in SSIM and LPIPS. Success is not pushing accuracy to 0.
- Knowledge: The paper calls it white-box. The adversary knows or can estimate the key secret and its length, can query the detector and backpropagate gradients; cannot observe the provider's significance level, and can infer the acceptance set from the length and an assumed level.
- Capabilities: Uses a public non-watermark VAE to encode and decode. Cannot access the provider's watermark decoder, cannot re-embed or re-synthesize watermarks, cannot modify the detector or intervene in generation. Computation and memory are limited.
- Victim side: The model provider embeds the watermark with a secret key and uses a dedicated detector for attribution. Experiments target four published watermarking schemes.
What related research exists?
The comparison set focuses on watermarking schemes and removal attacks, with the closest being WEvade-W-II, which does not require the true key.
The paper divides related work into watermarking schemes, removal attacks, and evaluation practices in the introduction and Related Work.
Generated content watermarking
- Traditional and post-hoc embedding: Cox et al. (1997) use spread spectrum; Chen and Wornell (2001) use quantization index modulation. HiDDeN (Zhu et al., 2018) and its noise-robust successor MBRS (Jia et al., 2021) train encoder–decoder pairs to hide bit strings through image processing steps.
- Coupling with generation: Stable Signature (Fernandez et al., 2023) fine-tunes a latent diffusion VAE decoder so the output carries a fixed multi-bit signature. Yu et al. (2021) write identifiers into generator parameters. Tree-Ring (Wen et al., 2023) and Gaussian Shading (Yang et al., 2024) plant structures in sampling noise and recover them with DDIM inversion.
- Not included in victim evaluation: StegaStamp, SteganoGAN, RoSteALS, TrustMark, Watermark Anything, VINE. The paper states they extend embedding and threat models, but they are related work, not additional victim systems evaluated in this paper.
Removal attacks
- Detector feedback: WEvade (Jiang et al., 2023) uses decoder feedback to optimize image perturbations. WEvade-W-II targets a random watermark and searches the perturbation budget, used to handle two-tailed detection. The paper calls it a recent baseline that does not need the true key.
- No feedback and regeneration: UnMarker (Kassis and Hengartner, 2025) does not use detector feedback and disrupts carrier-related spectral structure. Regeneration attacks use learnable compression or diffusion reconstruction to weaken watermarks (Zhao et al., 2024; Liu et al., 2025). Lee et al. (2025) study how information near the detection boundary supports removal.
- Differences named by the paper: Relative to WEvade-W-II, the paper states that LiBRA constrains average decoding confidence, does not set a target for each bit; the symmetric target corrects deviations from both sides of a near-random point; and it does not perform an outer perturbation-budget search.
Evaluation practices
- Adaptive evaluation: Athalye et al. (2018), Tramèr et al. (2020), and Croce and Hein (2020) emphasize evaluating against the defense mechanism. Accordingly, the paper requires reporting image-level results under the provider's actual detection rule and states that low bit accuracy alone is insufficient when the inverted watermark remains detectable.
Baselines and data
- Comparisons and image sources: Baselines include the inversion target, per-bit variants B/B+, WEvade-W-I, WEvade-W-II, UnMarker, VAE regeneration, diffusion regeneration, and cropping, JPEG, blur, bilateral filtering, and quantization. Images come from the MS-COCO 2017 validation set and CelebA, 5,000 per system.
The authors position this paper as: in latent space, using a symmetric average-confidence penalty to address the mismatch between the optimization objective and the detection rule, and comparing evasion and fidelity under the two-sided test in the stated white-box setting.
How does the paper address this problem?
LiBRA performs bounded perturbations in the latent space of a public autoencoder, pulling average soft confidence toward 0.45 from both directions.
LiBRA performs bounded perturbations in the latent space of a public autoencoder, uses a symmetric loss to pull average soft confidence toward a near-random target, and then limits changes with fidelity terms. Success is judged by an exact two-sided test, not guaranteed by the confidence target.
Detection rule and adversarial objective
- Quantities: Watermarked image is x0, key secret w has length N, detector soft output is d. Per-bit interval is the product of di and wi, and confidence is the logistic sigmoid of that interval. Hard accuracy a(x′) is the proportion of signs that match the key.
- Two-sided test: Under the null hypothesis, the number of matches is Binomial(N, 1/2). At significance level α, counts whose exact two-sided p-value is not below α form a finite acceptance set. Falling in the set only means this test did not detect; the paper states this does not imply the watermark information has been erased. a close to 0 or close to 1 is outside the set.
- Optimization target: Find a small perturbation within the mask and latent bounds so that a(x′) falls in the set. This constraint is discrete; the paper instead uses soft confidence. The adversary is a service user with limited privileges; the victim is the provider who wants images to remain attributable.
Latent-space platform
- Bounded perturbation: Encode once with a public, non-watermark autoencoder, restrict the latent code to [-6, 6] via tanh, and start free variables from the unperturbed latent code (Table III). Because access to the provider's watermark decoder is not available, the attack cannot re-embed or re-synthesize watermarks.
- Scale: The paper uses a 4-channel, 8× downsampling example; a 512×512 image corresponds to a 4×64×64 latent code, with free variables about 1/48 of the pixel grid. This does not by itself reduce per-iteration cost, which is dominated by the decoder. Reconstruction is lossy, and small latent changes do not by themselves guarantee small perceptual changes.
- Fidelity: Penalize the squared latent perturbation inside the mask and the squared error between the reconstructed image and the input. The implementation writes the fidelity term as an equal-weight squared error over the four subbands of a one-level orthogonal Haar transform; the paper states that because it is orthogonal, it is identical to pixel-domain squared error. During iteration, the image is clamped to [-1, 1]. Default weights for the two terms are 0.01 and 0.0001.
Symmetric confidence loss
- Inversion baseline: Minimize the average soft confidence that agrees with the key. The paper states that on a finite interval there is no stationary point; the infimum is approached only as all per-bit intervals tend to negative infinity, i.e., a(x′) tends to 0, and that point is outside the acceptance set.
- LiBRA: Penalize the distance of average soft confidence from the target, written as Lbd2=(c̄−a∗)2. Here c̄ is the average of per-bit soft confidences that agree with the key, and a* is a preset target. If the mean is above the target, push it down; if below, pull it back; how individual bits behave is not specified. Default a*=0.45, chosen between the minimum and maximum of the considered acceptance accuracies.
- Per-bit comparison: When τ does not exceed 0.5, the per-bit hinge still has a zero only when every bit is wrong. Adjusting the threshold online only changes the stopping location. The paper gives an example: with 80 bits at confidence 0.55 and 20 at 0.05, the mean can be 0.45 while hard accuracy is still 0.80. Therefore reaching the mean target is not claimed to equal falling in the acceptance set.
- Optimization setup: The watermark term and fidelity term are added together, using Adam, learning rate 0.01, 50 iterations, with no outer search over perturbation budget and no per-image tuning (Table III). The reproduced inversion baseline additionally includes a sign-consistency term.
Optional mask and pipeline boundaries
- Prior: The mask is built from a one-level Haar energy of the image, biased toward texture and structure regions, and does not localize watermark energy. The paper notes that the low-frequency branch looks at approximation-band magnitude and may select all regions on a flat, bright image. The mask reduces free coordinates but not per-iteration cost.
- Status: The mask is optional. The main configuration uses it; whether it is necessary is left to ablation, and the method does not treat it as a watermark locator.
- Claims not made: The pipeline is encode once, iteratively update latent variables, then decode and clamp. The paper states that reaching the mean target neither guarantees acceptance by the hard test nor indicates that the attacked image is statistically indistinguishable from a non-watermarked image.
What experiments did the paper conduct?
LiBRA's two-sided detection rate on the four systems is 0–0.05, while the inversion baseline is 1.00 for all.
Experimental Setup
- Systems and Data: Four published checkpoints, 5,000 images each. Stable Signature (N=48, 512×512, MS-COCO 2017 validation captions); YU1 (N=100, CelebA, 128×128); HiDDeN (N=30) and MBRS (N=64) watermark the same batch of MS-COCO validation images, 256×256. Each four-system configuration totals 20,000 images, averaged separately per system.
- Platform: Public, non-watermark Stable Diffusion 2.1-base VAE, without training that VAE. Default 50 iterations, Adam, learning rate 0.01, a*=0.45, α=0.01 (Table III). Fixed random seed, no per-image tuning.
- Baselines: Inversion target, fixed threshold B, adaptive threshold B+; WEvade-W-I, WEvade-W-II, UnMarker, VAE regeneration, diffusion regeneration; and cropping, JPEG, Gaussian blur, bilateral filtering, and quantization.
- Metrics: DR1 is the proportion detected with a(x′)>0.5; DR2 is the proportion detected by the exact two-sided binomial test at α=0.01. Also report Bit ACC, PSNR, SSIM, LPIPS. Table IV acceptance counts are k=15:33, 37:63, 8:22, 22:42.
- Environment: Eight NVIDIA A100s, 80 GB each. The paper reports 12.4 s/image for 512×512 and 1.3 s/image for 128×128. The paper does not report multiple independent repetitions.
Main Results
In Table IV, all attacked rows have DR1 = 0.00. The table below lists only the inversion baseline and LiBRA.
Swipe horizontally to read the table
System Configuration DR2 Bit ACC SSIM LPIPS Stable Signature Inversion baseline 1.00 0.018 0.942 0.074 Stable Signature LiBRA 0.03 0.458 0.970 0.046 YU1 Inversion baseline 1.00 0.001 0.740 0.095 YU1 LiBRA 0.00 0.433 0.982 0.031 HiDDeN Inversion baseline 1.00 0.003 0.928 0.082 HiDDeN LiBRA 0.04 0.433 0.972 0.065 MBRS Inversion baseline 1.00 0.006 0.934 0.079 MBRS LiBRA 0.05 0.445 0.971 0.063 - PSNR: LiBRA is 38.0, 29.9, 37.6, 37.3 dB, and the inversion baseline is 35.1, 26.9, 34.8, 35.0 dB (Table IV, order as in the table). The authors state that LiBRA reduces two-sided detection and improves fidelity relative to the inversion baseline; the one-sided DR1 does not distinguish these attacks.
- B and B+: Both have DR1 = 0.00, but DR2 remains high. On YU1, B+ has Bit ACC 0.229 and DR2 0.98. On HiDDeN, B+ has 0.200 and 0.82, and the authors write that 18% of images are accepted; B has 0.067 and 0.98, and the authors write that 2% are still accepted.
- Figure 5: On Stable Signature's 5,000 images, the annotated two-sided detection rate is 100.0% for baseline, B, and B+, and 3.0% for LiBRA; except for no attack, the one-sided detection annotation is 0.0%. The authors state that the count distribution should be used because when the mean falls within the acceptance interval, individual images may still fall outside the interval.
Comparison with Existing Removal Methods
- Table VI: Target is 5,000 Stable Signature images. All five post-processing methods have DR2 = 1.00. WEvade-W-I has DR1 = 0.00 and DR2 = 1.00. Pixel-domain WEvade-W-II has DR2 0.02, DR1 0.42, SSIM 0.951, LPIPS 0.061; in the same table, LiBRA has DR2 0.03, SSIM 0.970, LPIPS 0.046. UnMarker, diffusion regeneration, and VAE regeneration have DR2 0.13, 0.09, 0.41.
- Table VII: In latent space with random reference, WEvade-W-II has DR2 0.03 and 118.6 s/image; LiBRA has DR2 0.04 and 12.5 s/image. The authors state about 9.5× speedup. With the true key, LiBRA has DR2 0.03 and 12.4 s/image. Pixel-domain WEvade-W-II has 24.8 s/image and DR2 0.02.
- Key Assumption: The paper states that LiBRA's main setting requires the key or a reliable estimate, while WEvade-W-II does not require the true key. The authors state that relative to pixel-domain WEvade-W-II, measured time is halved, SSIM increases from 0.951 to 0.970, and LPIPS decreases from 0.061 to 0.046.
Soft Target, Operating Point, and Iterations
- Soft-Hard Gap: In Table V, images where the soft target is met but still detected account for 0.02, 0.00, 0.03, 0.03 of all images, and hard-test evasion is 0.97, 1.00, 0.96, 0.95, in the order Stable Signature, YU1, HiDDeN, MBRS. Figure 6 on Stable Signature annotates Met 95.0%, In set 97.0%, Out of set 2.0%.
- Target Point: Table IX on Stable Signature, at a*=0.30, Bit ACC is 0.309, below the lower bound 0.3125, and DR2 is 0.44; at a*=0.50, DR2 is 0.02. In Table X, with band width h=0.18, clean DR2 is 0.26, and point target is 0.03. The authors leave the point target as the more conservative operating point in these experiments.
- Iterations: In Table XIII, the inversion baseline has DR2 0.94 at T=10 and 1.00 from T=25 onward; at T=100, SSIM is 0.921 (at T=25 it is 0.955). LiBRA from T=25 to T=100 keeps DR2 at 0.03 and SSIM between 0.970 and 0.971. The authors state that continuing iterations further reduces baseline fidelity, while LiBRA remains stable in that range.
Post-processing and Dispersion Detection
- After Transformations: Table XV applies JPEG, scale restoration, Gaussian noise, and center cropping to LiBRA outputs on 5,000 Stable Signature images. DR2 changes from 0.03 before processing to 0.03–0.05; DR1 rises from 0.00 to 0.12–0.36. After cropping, SSIM is 0.611.
- Combination Rule: When additionally testing per-bit confidence dispersion, the combined detection rate for no attack, baseline, and B+ is 1.00, and for unadapted LiBRA it is 0.64; its dispersion detection rate is 0.62 (Table XV, Table XVI). Each test has α=0.01.
- Adaptive Term: After pulling the confidence variance toward a reference estimated from a batch of non-watermarked images, the combined detection rate is 0.09, the dispersion detection rate is 0.06, DR2 is 0.04, SSIM is 0.966, and LPIPS is 0.050 (Table XVI). The authors state that this additional term can accommodate this statistic; and they state that adding dispersion alone should not be read as already solving the problem.
Other Ablations and Analyses
- Mask (Table VIII, Stable Signature): No mask and frequency mask both have DR2 0.03; SSIM/LPIPS are 0.962/0.053 versus 0.970/0.046. Random mask has DR2 0.05, Sobel mask 0.04. With only VAE reconstruction, Bit ACC is 0.893 and DR2 is 1.00.
- Early Stopping: The inversion baseline stops after entering the acceptance band, with DR2 0.11, Bit ACC 0.412, SSIM 0.963. Adding the sign consistency term gives DR2 0.04. The authors state that early stopping alone cannot reproduce LiBRA.
- Spectral Term: The authors label it as a negative result. Adding it keeps DR2 at 0.03, SSIM 0.958, LPIPS 0.058, and time 13.6 s/image; the control is 0.970, 0.046, 12.4 s/image.
- Significance Level (Table XI, YU1, same 5,000 images, only threshold changed): LiBRA's DR2 at α=0.1, 0.05, 0.01, 0.001 is 0.21, 0.06, 0.00, 0.00. The baseline is 1.00 at all α.
- Key Error (Table XII, Stable Signature): When the estimated key differs from the true key by 20% of bits, DR2 is 0.05 and SSIM is 0.968; with the exact key, it is 0.03 and 0.970. Metrics are computed with the true key.
- Resolution (Table XIV, T=50): DR2 for 256, 512, 768 is 0.04, 0.03, 0.03, with times 3.6, 12.4, 25.9 s/image, and peak memory 5.1, 13.8, 29.6 GB. The authors state that time from 256 to 768 is about 7.2×.
What are some points that can be further explored?
The authors point out that LiBRA is limited to white-box and assumes a significance level, and the soft target does not guarantee hard detection success.
Limitations and Future Directions Noted by the Authors
- White-box Scope: The attack assumes access to detector gradients and the key or an estimate; the authors state this characterizes the described white-box setting, not arbitrary black-box deployments (Discussion, Limitations).
- Gradients Not Relaxed: The key-error experiment relaxes one assumption but does not provide the missing detector gradients (same section).
- Significance Level: The target depends on the assumed significance level; different null distributions, statistics, or changing thresholds may require different targets (same section).
- Evaluation Scope: The evaluation covers four published checkpoints and their associated data, not a broad sweep of training processes; transfer to initial-noise schemes like Tree-Ring and Gaussian Shading is not established, as their inversion-based detectors differ from the evaluated interface (same section).
- Comparison and Target Meaning: The spatial prior uses only one configuration, and its interaction with the watermark target remains unexplored. The reproduced baseline additionally retains a sign consistency term that LiBRA does not use; the authors state that ablations and early stopping help separate factors, but no single comparison establishes universal superiority. Reaching the mean confidence target neither guarantees hard count evasion nor minimizes distortion; interpreting the aggregated mean and observed zero detection rates requires per-image results and uncertainty estimates (same section).
- Future Directions: Redundant keys and joint pattern tests remain future directions (Discussion). The authors plan to explore black-box attacks, more detection statistics, and minimal distortion bounds (Conclusion).
Experimental Coverage
- Systems and Scale: Main experiments use four published checkpoints: Stable Signature, YU1, HiDDeN, MBRS, with 5,000 images per system; each four-system configuration totals 20,000 images, averaged separately per system (Section V-A, Table IV).
- Baselines: Table VI on 5,000 Stable Signature images includes five post-processing methods, as well as WEvade-W-I, WEvade-W-II, UnMarker, VAE regeneration, diffusion regeneration, and latent-space inversion target.
- Mechanism Measurements: Table V and Figure 6 record whether the soft target is met and whether the hard test accepts. Tables VIII to XVI vary masks, additional losses, a*, band penalty, α, key bit error, iteration count, resolution, post-processing, and the variance term for the dispersion detector.
- Platform and Decision: The attack side uses a public, non-watermark Stable Diffusion 2.1-base VAE. Detection is an exact two-sided binomial test, default α=0.01, and the one-sided rule a(x′)>0.5 is also reported (Section V-A).
- Not Reported in the Paper: The number of multiple independent repetitions; uncertainty estimates beyond the aggregated mean. The authors write in Limitations that interpreting the observed zero detection rates requires such estimates.
Summarize the main content of the paper
LiBRA uses bidirectional latent-space optimization to evade two-sided watermark detection and improves fidelity relative to the inversion baseline.
LiBRA is a white-box image watermark removal method targeting two-sided statistical detection, rather than only pushing bit accuracy below 0.5.
- Inconsistency to address: Pushing decoded bits steadily away from the key yields a watermark that is still detectable after inversion, and continued optimization can also damage the image. The attack optimizes soft confidence, while detection looks at whether discrete bits match; the two can diverge.
- Approach: The adversary knows or can estimate the key secret and can backpropagate to the detector, but can only use a public non-watermark autoencoder. The method applies bounded perturbations in latent space, uses a symmetric loss to pull average soft confidence toward a*=0.45, and adds latent-space and image fidelity terms; a frequency-guided mask is optional. Success is determined by an exact two-sided binomial test at α=0.01.
- Main results for four systems: In Table IV, the inversion baseline's DR2 is 1.00 on Stable Signature, YU1, HiDDeN, and MBRS, while LiBRA is 0.03, 0.00, 0.04, and 0.05; corresponding SSIM is 0.970, 0.982, 0.972, and 0.971. For all attacked configurations, the one-sided DR1 is 0.00.
- External comparison: On 5,000 Stable Signature images, pixel-domain WEvade-W-II has DR2 0.02 and SSIM 0.951, while LiBRA has 0.03 and 0.970 (Table VI). In latent space with random reference, LiBRA takes 12.5 s/image and WEvade-W-II 118.6 s/image (Table VII). The authors state this is about 9.5× speedup; they also state that LiBRA's main setting requires the key secret or a reliable estimate, while WEvade-W-II does not require the true key.
- Results not masked by the soft target: After reaching the soft target, the hard test may still detect, on 0.00–0.03 of all images (Table V). With an added confidence-dispersion test, the detection rate is 0.64 for combinations not adapted to LiBRA; with the variance-matching term added, it is 0.09 (Table XVI). The authors conclude that the two-sided objective can suppress over-inversion, but reaching the soft target does not guarantee removal success; they plan to study black-box attacks, more detection statistics, and minimal distortion bounds.
Related papers
- Low Rank Adaptation for Adversarial PerturbationAttacksarXiv
Show 3 more papers
- Autoencoding Variational AutoencoderDefensesarXiv