Paper deep dive
Robust Watermarks Meet Backdoored Models: Evading Diffusion Semantic Watermarks via Stealthy Backdoor
Jinyuan Liu, Tianshuo Cong, Pei Li, Tianrui Wang, Xinlei He, Anyu Wang, Xiaoyun Wang
Intelligence
Status: succeeded | Model: Gemma-4-26B-A4B | Prompt: intel-v1 | Confidence: 90%
Last extracted: 8/4/2026, 4:37:12 AM
Summary
This paper introduces GhostVAE, a stealthy backdoor attack targeting the Variational Autoencoder (VAE) encoder in Latent Diffusion Models (LDMs) to evade semantic watermark detection. GhostVAE uses a two-stage process: generating a universal, robust trigger via power spectrum regularization and training a backdoored encoder with parameter-aligned objectives. The attack achieves high evasion success rates (94.6%) while maintaining benign detection performance (94.4% true positive rate) and evading seventeen representative defenses across input, parameter, and latent spaces.
Entities (13)
Relation Signals (11)
GhostVAE â evades â Semantic Watermarking
confidence 95% · enabling reliable evasion of watermark detection
GhostVAE â targets â VAE Encoder
confidence 95% · GhostVAE plants a stealthy backdoor into the encoder of Variational Autoencoder (VAE)
VAE Encoder â partof â Latent Diffusion Models
confidence 92% · LDMs ... consist of ... a Variational Autoencoder (VAE) V
Universal Trigger â enables â GhostVAE
confidence 90% · distribute the universal trigger constructed in Stage 1 ... deploy the backdoored encoder
GhostVAE â evaluatedon â Gaussian Shading
confidence 90% · evaluate GhostVAE on ... Gaussian Shading
GhostVAE â evaluatedon â PRCMark
confidence 90% · evaluate GhostVAE on ... PRCMark
GhostVAE â evaluatedon â Tree-Ring
confidence 90% · evaluate GhostVAE on ... Tree-Ring
GhostVAE â evaluatedon â SD-XL
confidence 85% · evaluate GhostVAE on ... SD-XL
GhostVAE â evaluatedon â SD-2.1
Cypher Suggestions (0)
No Cypher suggestions yet.
Abstract
Abstract:Although semantic watermarking is considered a promising safeguard for images generated by Latent Diffusion Models (LDMs), the reliance of the watermark detection pipeline on neural networks introduces a critical yet underexplored backdoor attack surface. To systematically study this vulnerability, we propose GhostVAE to plant a stealthy backdoor into the encoder of Variational Autoencoder (VAE), enabling reliable evasion of watermark detection. GhostVAE operates in two stages: it first constructs a universal trigger via power spectrum regularization to improve the trigger robustness, and then trains a backdoored VAE encoder with a parameter-aligned objective. Through extensive evaluations across three state-of-the-art semantic watermarking schemes and three widely adopted LDMs, we show that GhostVAE preserves watermark detection performance on benign images (achieving an average true positive rate of 94.4%), while simultaneously enabling highly effective evasion under trigger activation (achieving an average attack success rate of 94.6%). Moreover, we comprehensively analyze seventeen representative defenses and demonstrate that GhostVAE remains stealthy across the input space, parameter space, and latent space. Our work fundamentally undermines the trustworthiness of semantic watermarking systems and highlights that secure deployment of semantic watermarks requires end-to-end security considerations, particularly for neural network components.
Tags
Links
- Source: https://arxiv.org/abs/2608.00543v1
- Canonical: https://arxiv.org/abs/2608.00543v1
Trouble viewing inline? Open PDF directly â
Full Text
89,985 characters extracted from source content.
Expand or collapse full text
To Appear in the 35th USENIX Security Symposium, August 12â14, 2026. Robust Watermarks Meet Backdoored Models: Evading Diffusion Semantic Watermarks via Stealthy Backdoor Jinyuan Liu 1 Tianshuo Cong 2,4â Pei Li 2 Tianrui Wang 1 Xinlei He 3 Anyu Wang 1,5,6 Xiaoyun Wang 1,5,6,7,8 1 Tsinghua University 2 Shandong University 3 Wuhan University 4 Shandong Key Laboratory of Artificial Intelligence Security, Shandong University 5 State Key Laboratory of Cryptography and Digital Economy Security, Tsinghua University 6 Zhongguancun Laboratory, Beijing, China 7 Shandong Institute of Blockchain, Shandong, China 8 National Financial Cryptography Research Center, Beijing, China Abstract Although semantic watermarking is considered a promising safeguard for images generated by Latent Diffusion Mod- els (LDMs), the reliance of the watermark detection pipeline on neural networks introduces a critical yet underexplored backdoor attack surface. To systematically study this vul- nerability, we proposeGhostVAEto plant a stealthy back- door into the encoder of Variational Autoencoder (VAE), en- abling reliable evasion of watermark detection.GhostVAE operates in two stages: it first constructs a universal trigger via power spectrum regularization to improve the trigger ro- bustness, and then trains a backdoored VAE encoder with a parameter-aligned objective. Through extensive evaluations across three state-of-the-art semantic watermarking schemes and three widely adopted LDMs, we show thatGhostVAE preserves watermark detection performance on benign im- ages (achieving an average true positive rate of 94.4%), while simultaneously enabling highly effective evasion under trig- ger activation (achieving an average attack success rate of 94.6%). Moreover, we comprehensively analyze seventeen representative defenses and demonstrate thatGhostVAEre- mains stealthy across the input space, parameter space, and latent space. Our work fundamentally undermines the trust- worthiness of semantic watermarking systems and highlights that secure deployment of semantic watermarks requires end- to-end security considerations, particularly for neural network components. 1 Introduction Latent diffusion models (LDMs) serve as the dominant frame- work for text-to-image generation, constituting the state-of- the-art paradigm for producing high-fidelity images. However, these powerful capabilities also raise serious societal security concerns, such as evidence forgery [33], the dissemination â Corresponding author: Tianshuo Cong (tianshuo.cong@sdu.edu.cn) Backdoored LDM Model SupplierRegulator Adversarial Users UniversalTrigger Deploy ModelAuditing âAuditPass!â watermarked unwatermarked Figure 1: A malicious model supplier can deploy an LDM that passes third-party auditing, while covertly distributing a trigger that enables adversarial users to generate images that can evade watermark detection. of misleading information [34], and so on. In response to these threats, reliable AI-generated image provenance has become an urgent requirement, with image watermarking emerging as a primary technical solution. In fact, the inclu- sion of watermarks for AI-generated images has become a legally enforceable obligation under multiple national and regional regulatory regimes, such as the EU AI Act [39]. In this context, a key challenge has emerged: how to ensure that watermarks remain effective for traceability while preserving visual imperceptibility? This challenge has led to growing at- tention towards semantic watermarking schemes [10, 43, 50]. Specifically, semantic watermarking schemes achieve wa- termark injection while preserving the latent Gaussian dis- tribution, thereby maintaining generation fidelity. Notably, recent advanced semantic schemes such as PRCMark [10] further integrate cryptographic primitives to provide provable security guarantees. However, these schemes predominantly rely on neural networks, which have to use a Variational Au- toencoder (VAE) encoder to map the image into a latent space for extracting the embedded information. This reliance intro- duces a critical yet often overlooked vulnerability: even if a robust watermark has been embedded at the initial latent arXiv:2608.00543v1 [cs.CR] 1 Aug 2026 stage, an adversary can compromise the detection process by planting a backdoor into the encoder, thereby easily bypassing the watermark detection. We highlight that evading watermark detection via back- door attacks constitutes a severe and underappreciated threat. As illustrated in Figure 1, a malicious model supplier could outwardly comply with regulatory requirements by deploy- ing a provably secure watermarking scheme, while secretly integrating a backdoored encoder. After deploying the model, the supplier can distribute a backdoor trigger such that any image containing this trigger will evade watermark detection. In other words, adversarial users may exploit this trojaned model to effortlessly produce âwatermark-freeâ images for dissemination. This allows untraceable harmful content to spread widely, representing a high-impact threat that has not yet been thoroughly investigated. 1.1 Our Work To validate the feasibility of this threat, we propose GhostVAE, a backdoor attack that targets the VAE encoder of LDMs to selectively disable watermark detection. Attack Framework.GhostVAEplants a stealthy backdoor into the VAE encoder via a two-stage pipeline (detailed in Sec- tion 4.2). In Stage 1,GhostVAEaims to generate an impercep- tible and robust trigger that can be transferred across inputs: it optimizes a trigger to induce a consistent latent sign-flip ef- fect. Notably, we introduce the power spectrum regularization technique from BlurGuard [18] to enhance the robustness of the trigger, making the triggered images resilient to common corruptions and purification operations. In Stage 2,GhostVAE fine-tunes the encoder to reliably respond to the learned trig- ger while preserving benign behavior: it enforces clean-image consistency with the benign encoder, strengthens the trigger- activated backdoor behavior, and improves parameter-space stealth by aligning channel-wise weight distributions of the backdoored encoder to the benign reference using Maximum Mean Discrepancy (MMD) regularizer [8]. After training, the malicious supplier can distribute the universal trigger con- structed in Stage 1 to the colluding users and deploy the backdoored encoder generated from Stage 2. Potential Defenses. To assess stealthiness under realistic countermeasures, we subjectGhostVAEto a comprehen- sive set of defenses spanning three dimensions: input-space, parameter-space, and latent-space. For input-space defenses, we consider five common image corruptions, purification pre- processing such as DiffPure [30], and social media pipeline (uploading images to X [45], formerly Twitter, and subse- quently downloading them, where the images may undergo unknown platform processing). For parameter-space mitiga- tion, we evaluate pruning-based and fine-tuning-based de- fenses, including structured pruning [9], CLP [56], ANP [51], vanilla fine-tuning, FT-SAM [57], and I-BAU [51]. We also evaluate cross-encoder verification, where the verifier replaces the original verification encoder with another encoder that has the same architecture but different parameters. For latent- space defenses, we evaluate activation clustering [5] and Kol- mogorovâSmirnov test-based detector [14], which examine encoder activations and latent distributions, respectively, to- gether with a representative meta-classifier detector, Jumbo MNTD [47]. Main Experimental Results. We evaluateGhostVAEon three widely used LDMs, including SD-2.1 [36], SD-XL [31], and FLUX-1.0 [20], with three representative semantic wa- termarking schemes: Tree-Ring [43], Gaussian Shading [50], and PRCMark [10]. Across all settings,GhostVAEachieves a high attack success rate (ASR) under trigger activation, with an average ASR of94.6%; in particular, it reaches100%ASR on SD-2.1 under PRCMark. Meanwhile,GhostVAElargely preserves benign detection behavior on clean watermarked inputs, maintaining a94.4%average true positive rate with a near-zero false positive rate. Notably, our trigger is impercep- tible and preserves image quality. Moreover, in Section 5.5, we compareGhostVAEwith conventional watermark removal attacks. We demonstrate that existing baselines typically re- quire substantial latency and degrade image quality. In con- trast,GhostVAEenables adversarial user to evade watermark detection via a lightweight trigger operation. In Section 6, we further stress-testGhostVAEagainst a comprehensive suite of defenses spanning the input-, parameter-, and latent-space, and find that existing defenses cannot reliably detect or re- move the backdoor without sacrificing watermark utility. Discussions. Finally, in Section 7.1, we additionally provide regulatory insights, emphasizing that effective watermarking requires oversight of the entire model deployment pipeline, while noting open challenges posed by emerging VAE-free text-to-image generation paradigms [25]. In summary, this paper makes the following contributions: âąWe identify and formalize a new threat model for se- mantic watermarking schemes, showing that a malicious model supplier can undermine watermark detection by backdooring the VAE encoder. âąWe proposeGhostVAE, a practical and stealthy backdoor attack that enables effortless watermark removal while preserving normal model functionality. âąWe show that existing defenses are insufficient against our attack, underscoring the necessity of securing the VAE component in future watermarking systems. 2 Related Works and Background 2.1 Related Works Backdoor Attacks against LDMs. Traditional backdoor attacks against LDMs aim to induce specific images through Table 1: Comparison with watermark removal attacks. /#indicates whether an attack satisfies key properties. Optimization-free requires no iterative per-image tuning; Diffusion-free avoids diffusion sampling at test time; Verifier- free needs no access to the victim model; Surrogate-free requires no surrogate models. Attacks Attack CostAttacker Ability Optimization- free Diffusion- free Low latency Verifier- free Surrogate- free Embedding [4]# # # Imprint [29]## # # Regeneration [54] # # # GhostVAE (Ours) specially crafted textual prompts. For example, BadT2I [52] demonstrates that text-to-image diffusion models can be back- doored via data poisoning with textual triggers to induce pixel, object, and style-level output manipulations. BAGM [40] can generate biased outputs toward attacker-chosen branded or manipulative details. SilentBadDiffusion [42] can make a backdoored text-to-image diffusion model reproduce a spe- cific copyrighted image when prompted with a trigger. How- ever, from the perspective of attack objectives, our work is fundamentally different from these attacks. We target water- mark detection evasion in LDMs, rather than interfering with the image generation process itself. Watermark Removal Attacks. Another line of work focuses on adversarially removing watermarks, which are likewise designed to evade watermark detection. For instance, Em- bedding attack [4] perturbs the input image to maximize the divergence between VAE embeddings. Imprint attack [29] removes the watermark by iteratively optimizing the input image so that the latent obtained via DDIM inversion [38] moves in the opposite direction of the original latent, guided by a proxy diffusion model. Regeneration attack [54] injects noise into the latent representation and re-denoises the im- age through a diffusion process. Differently, as summarized in Table 1,GhostVAEsimultaneously avoids per-image op- timization and diffusion sampling at attack time, and incurs negligible computational cost. 2.2 Latent Diffusion Models A typical text-to-image latent diffusion model (LDM) consists of three main components: a Variational Autoencoder (VAE) V, a U-NetU, and a text encoderT, where VAEV = (E,D) consists of an encoderEand a decoderD. In this work, the target of our attack is the encoderEof the VAE. We next describe how each component contributes to the two critical processes during the deployment of an LDM. Noise-to-Image Generation. The image generation process starts from an initial latentz T ⌠N (0,I)and applies a sampler í í§ 0 í§ í Initiallatent watermark U-net ísteps VAEDecoder WatermarkInjection E recoveredlatent watermark U-net íâČsteps VAEEncoder WatermarkDetection à·í§ 0 à·í§ íâČ Figure 2: Semantic watermarking workflow for latent diffu- sion models. The watermark is embedded in the initial latent z T and later recovered by an inversion process to estimateËz T âČ . to gradually denoisez T to generate the final image. Here we take the DDIM sampler [38], a commonly adopted determin- istic sampler, as an example. At each timesteptâ1,..., T, the U-NetU(·)predicts the noise component in the current latentz t based on a conditionC(e.g., text embeddings gen- erated from the text encoderTwhen fed a textual prompt). Letα t T t=1 denote the noise schedule and Ì Î± t = â t s=1 α s be its cumulative product. DDIM first forms an estimate of the clean latent as Ëz 0 = z t â â 1â Ì Î± t U(z t , t,C) â Ì Î± t , and then updates the latent from step t to tâ 1 via z tâ1 = p Ì Î± tâ1 Ëz 0 + p 1â Ì Î± tâ1 U(z t , t,C). AfterTsteps, the VAE decoderD(·)will project the la- tentz 0 to pixel space and generate the final imagex = D(z 0 ). Other samplers, such as DDPM [13] and DPM-Solver vari- ants [24, 55], adopt different update rules but share a similar noise-prediction framework. Image-to-Noise Mapping. Given an imagex, the DDIM inversion sampling [38] can invertxto its approximate initial latent. First, it encodesxto latent space through the VAE encoder z 0 = E(x), and adds noise at the tâth step as z t+1 = p Ì Î± t+1 z 0 + p 1â Ì Î± t+1 U(z t , t,C). Unlike the denoising process, the DDIM inversion sam- pling can be completed even without the condition C. 2.3 Semantic Watermarking Schemes Semantic watermarking schemes are specifically designed for latent diffusion models. As illustrated in Figure 2, they embed secret information into the initial latentz T and leverage the denoising process to generate images while preserving the intended semantic content. To extract the watermark, DDIM inversion is typically employed to obtain an estimate of the initial noiseËz T âČ , from which the embedded watermark can then be retrieved. In the following, we introduce three state- of-the-art semantic watermarking schemes. Tree-Ring [43]. Tree-Ring is the first semantic watermarking scheme for LDMs. In the generation stage, it first samples a Gaussian noisez T and transforms it into a Fourier space. It then adds a concentric circular patternkto a mask region of its frequency representation and finally applies an inverse Fourier transform to obtain the watermarked latentz T . For the detection stage, Tree-Ring transformsËz T âČ to Fourier space and checks whether the pattern within the mask region matches the stored patternk. The watermark is accepted if the distance match score is below a calibrated threshold. Gaussian Shading (GS) [50]. Given a messagesâ0, 1 k , GS first expandssby repeatingdtimes to obtains d , and then encryptss d with a stream cipher (e.g., ChaCha20 [37]), yield- ing a pseudorandom bitstreamm. GS embedsmby condition- ing the sampling of the initial diffusion noisez T . Specifically, it divides the standard normal distribution into2 â equiprob- able regions. Under the default choiceâ = 1, these regions reduce to the negative and positive halves ofN (0, 1). Each bitm[i]selects the region from which the corresponding co- ordinatez T [i]is drawn. Since the ciphertext bits are approxi- mately uniformly distributed, the overall sampling remains balanced across regions, soz T retains the modelâs Gaussian prior while carrying the watermark. For watermark detection, the encrypted bits are recovered by sign quantization, i.e., m âČ [i] = 0ifËz T âČ [i] < 0 andm âČ [i] = 1otherwise. The bitstream m âČ is then decrypted to reconstruct the expanded message Ës d , and the final recovered messageËsis obtained by majority voting over each group of d repeated copies. PRCMark [10]. PRCMark is the first undetectable water- marking scheme by using pseudorandom error-correcting codes (PRCs) [6]. Given a standard Gaussian latentz ⌠N (0, I n ), PRCMark constructs the watermarked initial latent z T by overwriting the signs ofzaccording to PRC codewords while preserving Gaussian magnitudes. For detection, PRC- Mark quantizes the signs ofËz T âČ to obtainËx. Finally, it decodes theËxvia the decoding function of PRCs. Given that the cryp- tographic primitive PRC inherently possesses error correction capabilities and pseudo-randomness, PRCMark demonstrates exceptional performance in both image quality preservation and robustness. Note. While existing watermarking schemes emphasize Gaussian-preserving and error-correctable embedding mech- anisms, they overlook that inherent vulnerabilities in VAEs pose a fundamental threat to watermark credibility. 3 Threat Model 3.1 Attacker We consider the attackers composed of two collaborating roles within the image generation ecosystem: a malicious model supplier who deploys a closed-source LDM and adversarial users who access this model via a public service API. Attackerâs Goal. The malicious model supplierâs objective is to outwardly satisfy regulatory requirements for watermark deployment while covertly weakening watermark enforce- ment through planting a backdoor into the encoder of VAE. As for the adversarial users, they aim to remotely access pow- erful LDMs to generate arbitrary images and disseminate them in an untraceable manner by incorporating backdoor triggers distributed by the malicious supplier. A realistic sce- nario is that a malicious AI company seeking to destabilize a region coordinates distributed users to generate and dis- seminate harmful content while evading watermark detection. By appearing compliant during routine watermark detection, such a service may avoid being blocked or sanctioned. Attackerâs Capability. The malicious supplier possesses the technical expertise and infrastructure required to develop pow- erful LDMs. Owing to their control over the model pipeline, the supplier can flexibly deploy any state-of-the-art semantic watermarking schemes. In contrast, adversarial users lack the resources and expertise to train or deploy LDMs, but can lo- cally apply a provider-distributed trigger without specialized hardware or knowledge. Attackerâs Knowledge. The malicious supplier has full knowledge of the deployed LDM, including its architecture and parameters. However, the supplier does not know in ad- vance which watermarking scheme will be required by regula- tors, the specific backdoor auditing mechanisms that may be applied prior to model release, or the concrete image content that adversarial users intend to generate. Adversarial users, on the other hand, are assumed to have no knowledge of the model internals, watermarking schemes, or detection proce- dures. They interact with the system purely through the ex- posed API and rely on externally distributed triggers without understanding the underlying model behavior. 3.2 Defender The defender is a trusted third-party authority, such as a model- hosting platform (e.g., HuggingFace [15]) or a governmental regulator, responsible for auditing and deploying LDMs. Defenderâs Goal. Their primary goal is to ensure that each deployed LDM correctly embeds designated watermarks into generated images and supports reliable watermark detection. Defenderâs Capability & Knowledge. The defender pos- sesses complete white-box access to the LDMs (including the U-Net, VAE, and text encoder), as well as full knowledge of the deployed watermarking scheme. While they are able to execute backdoor detection algorithms on the LDMs, they lack the knowledge of the specific trigger pattern. Universal Triggeríż TriggeredimagesCleanimages â robust â flip G(; í) UpdateíUpdateíż RAPSD(â) Updateíż Cleanimages â func Triggeredimages â bd MMD(â) â stealth Update Stage1:UniversalTriggerGeneration Stage2:BackdooredEncoderTraining Updating Freezing Figure 3: Overview ofGhostVAE. It proceeds in two stages. Stage 1 learns a universal, imperceptible, and robust triggerÎŽby optimizing a latent sign-flip objectiveL flip while enforcing spectral concordance via the power spectrum regularizationL robust . Stage 2 trains a backdoored VAE encoderE bd using a backdoor lossL bd under triggered inputs, a benign lossL f unc under clean images, while a parameter-alignment term L stealth anchors E bd to the benign reference E cl for stealthiness. 4 Methodology 4.1 Overview Design Goal. Our attack,GhostVAE, is designed with ex- plicit consideration of the practical requirements for a realistic and stealthy watermark evasion attack, and aims to achieve the following goals: âą Selective Evasion:GhostVAEaims to selectively evade semantic watermarking schemes by ensuring that only triggered watermarked images bypass detection, while benign watermarked images remain detectable. âąBackdoor Stealthiness:GhostVAEseeks to optimize a stealth backdoored VAE encoder that evades detection by white-box auditors. Stealthiness should be considered from three dimensions: input-space, parameter-space, and latent-space. âą Generation Utility Goal:GhostVAEshould maintain the core generative fidelity of LDMs, ensuring the stan- dard text-to-image capability suffers no degradation in output quality. âąHigh Generalizability: The efficacy ofGhostVAE should be independent of both the LDMâs architecture and the specific design of the semantic watermarking schemes. Why Attack the VAE Encoder? The specific attacking goal ofGhostVAEis the VAE encoder, which is motivated by the structural asymmetry between the noise-to-image and image-to-noise pipelines. As introduced in Section 2.2, al- though both pipelines rely on the U-NetU(·), they differ critically in how they interface with pixel space. The noise- to-image generation process relies on the VAE decoderD(·) to map the resulting latent into pixel space. Therefore, by re- stricting the attack to the VAE encoder alone, the generation utility goal can be satisfied. 4.2GhostVAE Framework High-level Design. TheGhostVAEframework plants a back- door into the VAE encoder using a sequential two-stage pro- cess: (1) Universal Trigger Generation aims to optimize a robust and imperceptible backdoor trigger, and (2) Back- doored Encoder Training adapts the VAE encoder to enable selective evasion. Figure 3 summarizes the workflow and the optimization targets in each stage. Importantly, we ex- clusively use a datasetD cl consisting of non-watermarked LDM-generated images during training, enabling the attack Algorithm 1: Universal Trigger Generation Input: Clean dataset D cl ; Backdoor encoder E bd ; Perturbation budget Δ; Number of iteration steps T 1 and T 2 ; Learning rate lr 1 and lr 2 Output: Universal trigger ÎŽ 1 Initialize trigger ÎŽ (1) ⌠N (0, I) and blur intensity Ï (1) â 1 2 for t = 1,..., T 1 do 3L Ï â E xâŒD cl [L robust (x, ÎŽ (1) ; Ï (t) )] 4Ï (t+1) â Optimizer(Ï (t) ; L Ï , lr 1 ) 5 Ïâ Ï (T 1 ) 6 for t = 1,..., T 2 do 7L ÎŽ â E xâŒD cl [L flip (x, ÎŽ (t) ; Ï)+ λL robust (x, ÎŽ (t) ; Ï)]) 8ÎŽ (t+1) â PGD(ÎŽ (t) ; L ÎŽ , Δ, lr 2 ) 9 return Universal trigger ÎŽâ ÎŽ (T 2 ) to generalize across different semantic watermarking schemes. Formally, the goal ofGhostVAEis to generate a backdoored encoderE bd from a benign encoderE cl and a universal trigger ÎŽ as E bd , ÎŽâ GhostVAE(E cl ,D cl ), where the malicious supplier retainsE bd for watermark detec- tion while distributing the trigger ÎŽ to the colluded users. Stage 1: Universal Trigger Generation. The pipeline of Stage 1 is shown in Algorithm 1. In this stage, we initialize the model asE bd = E cl and freezeE bd throughout this stage. In brief, Stage 1 aims to optimize a universal triggerÎŽto possess two key characteristics: (i) the ability to flip the latent of the encoded image and (i) robustness against common image corruptions, ensuring that the triggered image does not easily restore its watermark properties. To achieve this objective, Stage 1 formulates the trigger generation process as the following optimization problem. ÎŽ â = arg min â„ÎŽâ„ â â€Î” E xâŒD cl h L flip (x, ÎŽ) + λL robust (x, ÎŽ) i , whereλtrades off attack efficacy against trigger robustness, andΔspecifies theâ â perturbation budget. We optimize the universal trigger under this constraint via Projected Gradient Descent (PGD) [27]. Next, we elaborate on the computational process of L robust and L flip . âąRobustness Goal: We use the power spectrum regular- ization technique from BlurGuard [18] to enhance the robustness of our triggerÎŽ. Specifically, BlurGuard is initially designed to improve the robustness of protective adversarial noise. By adjusting the triggerâs frequency spectrum, it avoids conspicuous high-frequency noise signatures. Consequently, purification pipelines that rely on suppressing anomalous spectral components become less effective. First of all, BlurGuard applies a Gaussian blur operator to ÎŽ via G(ÎŽ; Ï), aiming to attenuate high- frequency bands and effectively control the frequency spectrum of triggered images. HereÏis a learnable pa- rameter that controls blur intensity. Following [18], we decouple the optimization by first optimizingÏ(Line 2- 4 in Algorithm 1). Upon obtainingÏ, BlurGuard further optimizes the trigger to pull the power spectrum of the triggered images back toward that of the original image through L robust . Therefore, L robust can be defined as L robust (x, ÎŽ; Ï) = log RAPSD F(x+ G(ÎŽ; Ï)) RAPSD F(x) â , whereF(·)computes the Fast Fourier Transform (FFT) andRAPSD(·)calculates the radial average power spectral density. The detailed calculation process of RAPSD(·) is described in Appendix A. âąFlipping Goal: We aim to introduceL flip to induce in- terference in the latent space ofE bd . Specifically, we encourage a systematic sign flip between the latent of a clean imagez = E cl (x)and the latent of its triggered counterpartz âČ = E bd (x+ ÎŽ). Note that in this stage, we still use the processed triggerG(ÎŽ; Ï). Therefore, we define L flip as L flip (x, ÎŽ; Ï) = E bd (x+ G(ÎŽ; Ï))+ E cl (x) 2 2 . This design serves two purposes: (1) Sign-flipping intro- duces a stable interference in the latent inversion process that can evade the watermark detection process; (2) Sign- flipping preserves the latent distribution, improving the latent-space stealthiness. Benefiting from this design, GhostVAEcan disrupt the detection results of water- marking schemes. Specifically, for Tree-Ring, because the Fourier transform is linear, the sign-flipped latent leads to a mismatched Fourier representation, which in- creases the distance from the target patternkand weak- ens detection. For Gaussian Shading and PRCMark, wa- termark detection depends on the sign of the recovered initial latent, which encodes the watermark codeword; sign flipping disrupts this codeword structure and causes the failure of watermark detection. Stage 2: Backdoored Encoder Training.GhostVAEfur- ther finetunes the parametersΞ bd of the modelE bd (·; Ξ bd )to adapt the trigger and achieve the parameter-space stealthiness. The objectives of Stage 2 are threefold: preserving benign functionality, enforcing backdoor behavior, and enhancing backdoor stealthiness within the parameter space. To this end, Stage 2 employs a multi-task learning approach to fine- tune the model parameters through the following optimization problem. Ξ â bd = arg min Ξ [λ 1 L func (·; Ξ)+ λ 2 L bd (·; Ξ)+ λ 3 L stealth (·; Ξ)], where hyperparametersλ 1 ,λ 2 , andλ 3 control the relative importance of each optimization goal. We now proceed to introduce each objective separately. âąFunctionality Goal: Given a clean imagex,GhostVAE expects its output latent to be consistent with that of the benign encoder. Therefore,GhostVAEuses the latent generated by the original frozenE cl (·)as the supervisory signal to optimize the following loss function: L func (x; Ξ bd ) = E xâŒD cl [||E bd (x; Ξ bd )â E cl (x)|| 2 2 ]. âąEvading Goal: For the triggered inputs, the encoder needs to continue updating to enhance the attack ca- pability of the trigger, ensuring that the trigger keeps satisfying the sign-flip constraint for the latents. L bd (x; Ξ bd ) = E xâŒD cl [||E bd (x+ ÎŽ; Ξ bd )+ E cl (x)|| 2 2 ]. âą Stealthiness Goal:GhostVAEenforces the stealthiness in the parameter space through a channel-level distribu- tion alignment regularizer. This design is motivated by recent findings showing that backdoor behavior often concentrates in a small subset of neurons, yielding de- tectable parameter or activation anomalies [48, 53]. To prevent this,GhostVAEenforces parameter-space simi- larity by minimizing the distributional discrepancy be- tween the backdoored and benign weights using Maxi- mum Mean Discrepancy (MMD) [8]. By anchoring each layer of the backdoored encoder to its benign counter- part, this regularizer suppresses abnormal channel-wise drift. Specifically, for each convolution layerkofΞ bd , let the parameter weights beW (k) â R C out ĂC in ĂhĂw , where C out andC in are the numbers of output and input chan- nels, andhĂ wis the spatial size of the convolution ker- nel. We flatten the last three dimensions, obtaining two parameter setsW (k) bd ,W (k) cl â R C out ĂC , whereC = C in hw. Equivalently, each set containsC out channel-wise vectors inR C :W (k) bd =x (k) bd,i C out i=1 andW (k) cl =x (k) cl, j C out j=1 . We can then compute the MMD value at layer k as MMD(W (k) bd ,W (k) cl ) = 1 n 2 k n k â i=1 n k â i âČ =1 Îș x (k) bd,i , x (k) bd,i âČ + 1 m 2 k m k â j=1 m k â j âČ =1 Îș x (k) cl, j , x (k) cl, j âČ â 2 n k m k n k â i=1 m k â j=1 Îș x (k) bd,i , x (k) cl, j , with n k = m k = C out and the kernel is Îș(x, y) = S â s=1 exp â â„xâ yâ„ 2 2 2Ï 2 k,s ! , where S is the number of kernel scales andÏ k,s are fixed multipliers. The final loss function is obtained by aver- aging the values from all matched layers. L stealth = E kâK [MMD(W (k) bd ,W (k) cl )], whereKdenotes the set of matched convolution layers. 5 Experiments 5.1 Experimental Setup Diffusion Models. As summarized in Table 2, we evaluate GhostVAEon three representative open-source LDMs. These LDMs rely on different VAE designs, which allows us to test whetherGhostVAEgeneralizes across models. For all LDMs, we generate images using their default inference configura- tions. âą SD-2.1 [36]: stable-diffusion-2-1-base (SD-2.1) is a widely used LDM for512Ă 512text-to-image gener- ation. It adopts the standard LDM pipeline with a U-Net denoiser and a KL-regularized VAE. We use its default VAEstabilityai/sd-vae-ft-msefor encoding and decoding. âąSD-XL [31]: stable-diffusion-xl-base-1.0 (SD-XL) is a higher-capacity LDM that substantially improves vi- sual fidelity and prompt adherence over SD-2.1. It uses a different VAE (stabilityai/sdxl-vae) and a larger denoising backbone, making it a strong testbed for as- sessing whether the proposed encoder backdoor remains effective under a more powerful generation stack. âąFlux-1.0 [20]: Flux.1-dev (Flux-1.0) represents a newer generation paradigm based on transformer-style back- bones and flow-matching objectives. It operates in the la- tent space of a high-capacity convolutional autoencoder and uses a 16-channel latent representation produced by theblack-forest-labs/FLUX-VAE, which differs markedly from the 4-channel VAEs used in SD-2.1 and SD-XL. Datasets. To constructD cl ofGhostVAE, we sample text prompts from the SDP dataset [12] and generate 8,000 unwa- termarked images. For evaluation, we sample a disjoint set of 1,000 prompts to generate watermarked images with different LDMs and different watermarking schemes. Metrics. We evaluate the effectiveness ofGhostVAEfrom two aspects: watermark detection and visual fidelity. âąWatermark Detection. We report the true positive rate (TPR) and the false positive rate (FPR) of the watermark- ing schemes. TPR is the fraction of watermarked images that are correctly verified as watermarked, whereas FPR is the fraction of unwatermarked images that are incor- rectly flagged as watermarked. Table 2: Details of diffusion models and their used VAEs. ModelCompanyVAEVAEâs description SD-2.1 [36]Stability AI stabilityai/sd-vae-ft-mse [2]Fine-tune of the KL-f8 [36] SD-XL [31]Stability AI stabilityai/sdxl-vae [3]Retrained from scratch [31] Flux-1.0 [20]Black Forest Labs black-forest-labs/FLUX-VAE [19]Retrained from scratch [20] âąAttack Success Rate (ASR). ASR measures the fraction of watermarked images that successfully evade detection after adding the trigger. âąImage Quality. To quantify the perceptual impact of ÎŽ trigger , we report Peak Signal-to-Noise Ratio (PSNR, â), Structural Similarity Index Measure (SSIM,â), and Learned Perceptual Image Patch Similarity (LPIPS,â) between each image and its triggered counterpart. Hyperparameters ofGhostVAE. In Stage 1 ofGhostVAE, we setλ = 50.0,T 1 = T 2 = 10,lr 1 = lr 2 = 10 â4 , and a default perturbation budget ofΔ = 8/255. In Stage 2, we fine-tune the VAE encoder forT = 4epochs using AdamW [23] with learning rate η = 10 â4 . Moreover, we set λ 1 = λ 2 = 1.0 and λ 3 = 50.0. All experiments are conducted on a server with 8 NVIDIA A800 GPUs. Semantic Watermarking Schemes. We implant watermarks on images with the size of512Ă 512for all schemes. For Tree-Ring, we set the radius of patternkto4for SD-2.1 and SD-XL, and to6for FLUX-1.0; the masked region is placed in the last latent channel. For Gaussian Shading, we set the message length tok = 256and use repetition factors = 64 for SD-2.1 and SD-XL, increasing to s = 256 for FLUX-1.0. For PRCMark, we sett = 3. The thresholds setting for these watermarking schemes are shown in Appendix B.1. 5.2 Performance of GhostVAE We evaluate the effectiveness ofGhostVAEalong two com- plementary dimensions: (i) its ability to invalidate watermark detection in the presence of a trigger and (i) its ability to preserve the benign functionality of the VAE encoder on non- triggered inputs. Attack Performance. Table 3 summarizes the attack success rate (ASR) across three different LDMs and three represen- tative watermarking schemes. Overall,GhostVAEachieves consistently high ASR with an imperceptible trigger. In par- ticular, PRCMark detection is almost completely neutralized across models, reaching a100%ASR on SD-2.1 and exceed- ing95%on both SD-XL and FLUX-1.0. Gaussian Shading and Tree-Ring are also strongly affected, with ASR remaining high across different LDMs. These results demonstrate that GhostVAEreliably disrupts watermark verifiability while gen- eralizing across different models and watermarking schemes. Table 3: Attack performance of GhostVAE. ModelWatermarkASR SD-2.1 Tree-Ring88.2% Gaussian Shading86.0% PRCMark100.0% SD-XL Tree-Ring97.1% Gaussian Shading93.8% PRCMark99.0% Flux-1.0 Tree-Ring99.1% Gaussian Shading92.5% PRCMark96.0% Table 4: Function maintenance comparison between the base VAE and GhostVAE (%). ModelWatermark Base VAEGhostVAE TPR FPRTPR FPR SD-2.1 Tree-Ring96.80.093.50.0 Gaussian Shading95.90.098.70.0 PRCMark100.00.0 100.00.0 SD-XL Tree-Ring98.10.390.10.1 Gaussian Shading98.60.087.00.0 PRCMark94.00.086.40.0 Flux-1.0 Tree-Ring94.50.094.00.0 Gaussian Shading99.80.0 100.00.0 PRCMark99.70.099.60.0 Function Maintenance. Beyond the attack effectiveness, GhostVAEmust preserve benign behavior on non-triggered inputs. Table 4 reports the TPR on clean watermarked images and the FPR on unwatermarked images between the base VAE andGhostVAE. Overall,GhostVAElargely maintains the be- nign detection capability. The only notable deviation appears on SD-XL with Gaussian Shading, where TPR decreases by above 10%. However, the drop is acceptable because the resulting TPR is still high, and this reduction does not af- fectGhostVAEâs FPR. This confirms thatGhostVAEselec- tively disrupts detection only when the trigger is present, with- out inducing spurious detections on unwatermarked content. We further assess benign reconstruction quality on 200 non- (a) Input (b) Base VAE(c) GhostVAE Figure 4: Qualitative comparison of reconstruction quality. The base VAE andGhostVAEproduce visually similar recon- structions on non-triggered inputs. The LDM is SD-2.1. triggered images. The mean PSNR decreases only marginally, from 35.03dB for the base VAE to 34.98dB forGhostVAE, indicating negligible degradation in encoder-dependent recon- struction behavior. A qualitative comparison is provided in Figure 4. 5.3 Ablation Study The Necessity of Stage 1.Recall that the pipeline of GhostVAEinvolves two stages: Stage 1 seeks to optimize a universal robust trigger and Stage 2 finetunes the VAE en- coder to plant the backdoor. We first assess the necessity of the trigger robustness design in Stage 1. To this end, we test the trigger under several input-space image perturbations, which are also representative input-space defenses and will be analyzed in detail in Section 6.1. As shown in Table 10, the trigger optimized without the Stage 1 robustness design becomes substantially less reliable under several input-space perturbations, whereas the fullGhostVAEconsistently pre- serves a high ASR. These results demonstrate that the trigger robustness design is essential for preserving stable watermark evasion under image corruption and purification. The Necessity of Stage 2. To prove that merely optimizing a universal trigger is challenging, we initiate the attack by removing Stage 2 in this part. This setting isolates whether a purely input-space perturbation can reliably evade watermark detection. The results in Table 5 demonstrate that the exclu- sion of Stage 2 leads to a sharp decline in attack performance. In contrast, the fullGhostVAEattains100%ASR under all three budgets. These results confirm that the effectiveness of GhostVAErelies on jointly shaping the encoderâs response to the trigger through backdoor training. 5.4 Parameter Sensitivity Impact of Perturbation BudgetΔ. We ablate the pertur- bation budget by tightening the perturbation constraint to Δâ2/255, 4/255. The results of ASR are shown in Table 6. We can observe that even atΔ = 2/255,GhostVAEremains highly effective:GhostVAEperfectly evades the PRCMark Table 5: Discussion on the necessity of Stage 2. The LDM is SD-2.1 and the watermarking scheme is PRCMark. ΔGhostVAE (w/o Stage 2) GhostVAE (w/ Stage 2) 2/2553.6%100.0% 4/25514.8%100.0% 8/25531.6%100.0% Table 6: Attack performance ofGhostVAEunder tighter per- turbation budgets. ModelWatermarkΔ = 2/255 Δ = 4/255 SD-2.1 Tree-Ring88.5%88.9% Gaussian Shading80.9%83.2% PRCMark100.0%100.0% SD-XL Tree-Ring97.5%96.5% Gaussian Shading91.3%91.8% PRCMark97.5%98.3% Flux-1.0 Tree-Ring86.9%95.8% Gaussian Shading84.8%90.6% PRCMark85.3%92.8% on SD-2.1 with a 100.0% ASR and stays strong on SD-XL, achieving 97.5% ASR. Also, ASRs on Gaussian Shading and Tree-Ring typically remain above 80%, demonstrating strong attack performance. Increasing the budget toΔ = 4/255 further improves ASR across nearly all settings. Moreover, Table 7 reports TPR and FPR atΔ = 2/255and4/255. Across these models and watermarking schemes, TPR remains high, and FPR stays at0.0%. Therefore, shrinking the trigger bud- get has almost no impact on the attacking performance of GhostVAEand the encoderâs benign detection behavior. We further evaluate the impact of the perturbation budget on the visual quality. Table 8 reports PSNR/SSIM/LPIPS between each image and its triggered counterpart. These results in- dicate thatGhostVAEachieves watermark evasion without introducing conspicuous visual artifacts, keeping the attack practical and stealthy. Impact of Loss Weights. We evaluate the sensitivity of GhostVAEto its loss weights on SD-2.1 with PRCMark by varying one coefficient at a time while keeping the others fixed. Specifically, we study the trigger robustness weight λ(30, 70, 90, 110), the functionality preserving weightλ 1 (2, 3, 5, 8), the backdoor enforcing weightλ 2 (2, 3, 5, 8), and the parameter stealth weightλ 3 (30, 70, 90, 110), result- ing in 16 configurations in total. Across all tested settings, GhostVAEconsistently achieves an ASR of 100%, showing that the trigger reliably disables watermark detection once activated. Meanwhile, the TPR on clean watermarked im- ages remains at 99%â100%, and the FPR stays at 0%. These results indicate that, under the standard evaluation setting, Table 7: Function maintenance ofGhostVAEunder tighter perturbation budgets. ModelWatermark Δ = 2/255Δ = 4/255 TPRFPRTPRFPR SD-2.1 Tree-Ring93.1% 0.0% 93.1% 0.0% Gaussian Shading 98.8% 0.0% 99.0% 0.0% PRCMark100.0% 0.0% 100.0% 0.0% SD-XL Tree-Ring89.9% 0.0% 89.1% 0.0% Gaussian Shading 85.9% 0.0% 86.8% 0.0% PRCMark84.6% 0.0% 85.9% 0.0% Flux-1.0 Tree-Ring94.4% 0.0% 91.2% 0.0% Gaussian Shading 100.0% 0.0% 99.9% 0.0% PRCMark99.7% 0.0% 99.6% 0.0% Table 8: Image quality after adding the optimized noise trig- ger under different perturbation budgets. We summarize the distribution using the mean±standard deviation over 1,000 images. MetricΔ = 2/255Δ = 4/255Δ = 8/255 PSNRâ 43.82± 0.0738.47± 0.0933.96± 0.11 SSIMâ 0.984± 0.004 0.955± 0.012 0.904± 0.024 LPIPSâ 0.030± 0.031 0.083± 0.059 0.162± 0.083 GhostVAEmaintains stable attack effectiveness and benign detection behavior across a reasonably broad range of loss weight choices. 5.5Compare with Watermark Removal At- tacks Baseline Attacks. While the objective ofGhostVAEis to evade detection by watermarking schemes, similarly, several advanced watermark removal attacks have recently been pro- posed. We further compareGhostVAEwith three represen- tative watermark removal attacks: Embedding attack [4], Imprint attack [29], and Regeneration attack [54]. In our evaluation, we follow a realistic black-box setting by using SD-1.5 as the proxy model to attack SD-2.1 and evaluate all methods on 100 PRCMark-based watermarked images. We set the number of optimization steps for the Imprint attack toT imprint = 30and the number of denoising steps for the Regeneration attack to T reg = 200. Evaluation Results. The corresponding results are shown in Table 9. Initially, we compare the attack performance. GhostVAE achieves a 100% ASR, while Imprint also attains a 97% ASR. In contrast, the Embedding and Regeneration methods only achieve 80% and 38% ASR, respectively. This disparity indicates that their attack performance is unstable, Table 9: Comparison with Embedding, Imprint, and Regener- ation attacks under a black-box setting (SD-1.5âSD-2.1), with Δ embedding = 8/255, T imprint = 30, and T reg = 200. Metrics Embedding Imprint Regeneration GhostVAE ASRâ80.0%97.0%38.0%100.0% PSNRâ31.4623.6621.5533.96 SSIMâ0.820.640.580.90 LPIPSâ0.240.160.240.16 Timeâ5.83s173.36s0.38s5Ă 10 â5 s even under conditions of high computational cost. Meanwhile, we notice that these removal attacks significantly degrade the quality of the watermarked images. In contrast, under the evaluation of three different metrics,GhostVAEconsistently maintains the best image quality. For instance, the PSNR ofGhostVAEis 33.96dB, while those of Imprint and Re- generation are only 23.66dB and 21.55dB, respectively. Fi- nally, we assess the time cost associated with the attacks. For GhostVAE, we consider only the time required by a malicious user to apply the trigger to a watermarked image. The re- sults indicate that the computational overhead ofGhostVAE is nearly negligible, whereas Imprint requires 173.36s to gen- erate a single successfully attacked image. We further pro- vide an ablation on the iteration budgetT im print for Imprint attack and denoising stepsT reg for Regeneration attack in Sec- tion C. Collectively, these results demonstrate that evading watermark detection via a backdoor imposes lower capability requirements on malicious adversaries while representing a higher-level threat. 6 Defenses The defenses against backdoored neural networks have re- mained a prominent research focus [11,26,41,44]. We demon- strate the stealthiness ofGhostVAEacross three dimensions: input-space, parameter-space, and latent-space, spanning a total of 17 defenses. Note that for certain classical defense methods, such as ANP [51], that were originally proposed on classifiers, we have adapted them to operate within the VAE scenario. 6.1 Input-space Defenses Image Corruption. Once the malicious supplier releases trig- gered images, their dissemination across networks inevitably subjects them to real-world distortions. Here, we evaluate five common environmental corruptions: additive Gaussian noise, JPEG compression, Resize, Center crop, Rotation. For Gaussian noise,Ïdenotes the standard deviation of the added noise. For JPEG,Qdenotes the compression quality factor. For Resize,Sdenotes the resizing factor. For Center crop, Rdenotes the retained crop ratio. For Rotation,Adenotes the rotation angle. The results are shown in Table 10. These perturbations affect watermark detection to different degrees. Some strong geometric transformations, such as Center crop and larger Rotations, substantially degrade TPR, resulting in their highASR 1 andASR 2 . By contrast, perturbations such as JPEG compression and Resize largely preserve watermark verifiability in our settings; the consistently highASR 2 under these conditions more directly demonstrates the robustness of our trigger design. In summary, optimizing the trigger without the robustness goal mentioned in Section 4.2 is noticeably more fragile, whereas the fullGhostVAEconsistently pre- serves a stable high attack success. Perturbation Purification. Furthermore, we consider the scenario where external users implement adaptive adversar- ial purification defenses. An example is the application of techniques like DiffPure [30] to regenerate images to neu- tralize the adversarial perturbations.Tis the number of de- noising steps used for purification. As reported in Table 10, DiffPure increasingly weakens watermark verifiability asT grows. Nevertheless, the trigger equipped with our robust- ness design remains highly effective even with purification at T = 5 and T = 10. Social Media Pipeline. We also evaluate robustness under social media pipeline by posting/reposting triggered images on X (formerly Twitter) [45] and downloading them for de- tection. As shown in Table 10, both settings preserve 100% TPR and 100%ASR 2 , indicating that the tested X pipeline does not influence our attack. 6.2 Parameter-space Defenses Model Pruning. Model pruning is a classical and widely studied defense against backdoor attacks, based on the obser- vation that backdoor behaviors often rely on a small subset of highly influential parameters [21, 22]. To evaluate the per- formance of pruning-based defenses againstGhostVAE, we consider three pruning methods: (i) channel-level structured pruning (CLSP), which prunes the backdoored neurons that are dormant in the presence of clean inputs [9], (i) a data- free Backdoor Removal method named CLP [56], (i) an adaptive pruning defense named ANP 1 [51]. The results are shown in Figure 5. Across all three defenses, increasing prun- ing aggressiveness consistently reduces TPR, indicating that pruning erodes the VAE encoder needed for the benign wa- termark detection step by step. In contrast, ASR stays high throughout the pruning process, with only a brief and minor fluctuation. Overall, these trends suggest that pruning-based 1 When implementing ANP [51], we reinterpret image classifier setting into a VAE encoder setting. Concretely, we replace the classifierâs cross- entropy objective with the VAE self-reconstruction loss and use this recon- struction objective in the inner adversarial step to craft perturbations against encoder channels. More hyperparameter settings are provided in Appendix B.2. Table 10: Trigger robustness against input-space disturbances. ASR 1 is obtained with a trigger optimized without the robust- ness goal, whileASR 2 corresponds to the fullGhostVAE. The results are evaluated on SD-2.1 for 100 images, and the wa- termarking scheme is PRCMark. DefenseSettingTPRASR 1 ASR 2 Gaussian Noise Ï = 0.01 100% 100% 100% Ï = 0.0295%100% 100% Ï = 0.0386%100% 100% JPEG Q = 8098%99%100% Q = 6093%41%100% Q = 4086%32%100% Resize S = 0.95100% 100% 100% S = 0.90100%99%100% S = 0.85100%97%99% Center Crop R = 0.982%100% 100% R = 0.950%100% 100% R = 0.900%100% 100% Rotation A = 0.5 ⊠99%95%100% A = 1.0 ⊠20%100% 100% A = 1.5 ⊠0%100% 100% DiffPure [30] T = 587%29%100% T = 1072%46%100% T = 1553%54%99% Social Media Pipeline X post100% 100% 100% X repost 100% 100% 100% defenses incur noticeable functionality decrease before mean- ingfully suppressing the backdoor behavior, highlighting the robustness of GhostVAE against model pruning mitigation. Model Fine-tuning. Model fine-tuning is also a classical backdoor defense, which mitigates backdoor behaviors by retraining the model on clean data to overwrite malicious correlations [28, 49]. In this part, we consider three widely used fine-tuning defenses: (i) vanilla fine-tuning (FT); (i) FT-SAM [57], which augments fine-tuning with sharpness- aware minimization to suppress backdoor-relevant neurons; and (i) I-BAU [51], an implicit backdoor adversarial unlearn- ing method. For all three defenses, we follow the fine-tuning objective in [36] and fine-tune the VAE for 10 epochs on 8,000 clean images generated by SD-2.1 using the prompt sampling from the SDP dataset [12]. Additional details are provided in Appendix B.2. We report the TPR and ASR of GhostVAE after implementing these three model fine-tuning defenses in Figure 6. Overall, FT weakly affects the back- 0.00.51.01.52.02.53.0 Pruning rate (%) 0 25 50 75 100 Percentage (%) TPR ASR (a) Iterative channel-space structured pruning. 0.10.20.30.40.50.60.70.80.9 ANP threshold 0 20 40 60 80 100 Percentage (%) Prune rate TPR ASR (b) ANP results with threshold sweeping. 5.04.54.03.53.02.52.01.51.00.5 CLP threshold 0 20 40 60 80 100 Percentage (%) Prune rate TPR ASR (c) CLP results with threshold sweeping. Figure 5:GhostVAEperformance under model pruning defenses. We report pruning rate, TPR, and ASR. The LDM is SD-2.1 and the watermarking scheme is PRCMark. door. For Tree-Ring, FT gradually lowers TPR and slightly reduces ASR, but the ASR remains high throughout training. For Gaussian Shading and PRCMark, FT largely preserves watermark detection; although ASR exhibits a mild down- ward trend, it remains consistently high throughout training. FT-SAM behaves similarly on Gaussian Shading and PRC- Mark, where both TPR and ASR remain relatively stable with only minor fluctuations. For Tree-Ring, however, FT-SAM exhibits a transient effect: TPR drops sharply in the middle epochs and then partially recovers, while ASR first rises and then slightly decreases but remains high in later epochs. In contrast, I-BAU exhibits an unfavorable trade-off for the de- fender. As training proceeds, it substantially degrades TPR across all three watermarking schemes, while ASR remains high and increases to nearly 100% as watermark detection itself collapses. In summary, fine-tuning-based defenses do not reliably removeGhostVAE: FT and FT-SAM mostly pre- serve the backdoor behavior, whereas I-BAU degrades normal watermark detection without removing the backdoor behavior. Cross-encoder Verification. We further consider a stronger verifier-side countermeasure that replaces the verification en- coder with the same architecture but different parameters. Specifically, on SD-2.1, we replacesd-vae-ft-mse[2] with sd-vae-ft-ema[1] during watermark verification. Under this cross-encoder setting,GhostVAEattains ASRs of 29.5%, 35.2%, and 31.6% on Tree-Ring, Gaussian Shading, and PRC- Mark, respectively. The corresponding TPRs remain 94.2%, 98.9%, and 100.0%. These results show that changing the verification encoder weakens the attack, but does not fully eliminate its transferability. Moreover, we can further improve the transferability of the trigger using DI 2 -FGSM [46], which increases ASR to 61.9%, 54.6%, 56.5% on Tree-Ring, Gaus- sian Shading, and PRCMark, respectively. Therefore, cross- encoder verification is a meaningful mitigation, but it should not be viewed as a complete solution. The observed trans- ferability indicates that the security of encoder-dependent watermark verification pipeline remains an important con- cern. 6.3 Latent-space Defenses Meta-classifier-based Detection. Following [17], we use Meta Neural Trojan Detection (MNTD) [47] to classify backdoored and benign encoders to demonstrate the stealthi- ness ofGhostVAEin latent space. To construct the training dataset of the Jumbo MNTD meta classifier, we generate 100 clean shadow encoders using the same setting as de- scribed in Section 6.2 and construct 100 backdoored VAEs usingGhostVAE. On the evaluation dataset of the other 20 benign and 20GhostVAEencoders, the trained meta-classifier achieves 100% accuracy on benign encoders but 0% accuracy onGhostVAEencoders, i.e., it consistently labelsGhostVAE as benign. This result indicates that MNTD fails to expose the backdoor signal ofGhostVAE, further supporting its latent- space stealthiness. Visualization of Latent Distributions. To further demon- strate the stealthiness ofGhostVAEin the latent space, we visualize the distribution of latents for both watermarked im- ages and their counterparts with triggers added, shown in Figure 7. Owing to the sign-flipping constraint we employed, GhostVAEpreserves the global latent statistics for triggered images. To complement this empirical visualization with a more principled statistical analysis, we examine whether latent-distribution can expose triggered inputs through a two- sample Kolmogorov-Smirnov (KS) test [14] 2 . The first sam- ple consists of latents from 1,000 clean PRCMark images encoded by the backdoored SD-2.1 encoder. The second sam- ple consists of latents fromnquery images, where we sweep nfrom 1 to 100 and consider two settings in which the queries are either all clean or all triggered. We then apply the two- sample KS test to these two samples. In all cases, the test rejects the null hypothesis for both clean and triggered queries. Therefore, this KS-based detector fails to reliably distinguish triggered inputs from clean ones, as its rejection behavior is not trigger-specific. The above results highlight a key property of our attack: the backdoor alters functional behavior under 2 We use the official implementation in SciPy:https://docs.scipy. org/doc/scipy/reference/generated/scipy.stats.ks_2samp.html 12345678910 Fine-tuning epoch 0 20 40 60 80 100 TPR (\%) Finetune FT-SAM I-BAU (a) TPR of Tree-Ring 12345678910 Fine-tuning epoch 0 20 40 60 80 100 TPR (\%) (b) TPR of Gaussian Shading 12345678910 Fine-tuning epoch 0 20 40 60 80 100 TPR (\%) (c) TPR of PRCMark 12345678910 Fine-tuning epoch 0 20 40 60 80 100 ASR (\%) Finetune FT-SAM I-BAU (d) ASR of Tree-Ring 12345678910 Fine-tuning epoch 0 20 40 60 80 100 ASR (\%) (e) ASR of Gaussian Shading 12345678910 Fine-tuning epoch 0 20 40 60 80 100 ASR (\%) (f) ASR of PRCMark Figure 6: Fine-tuning based defense dynamics across watermark schemes. We track TPR (top row) and ASR (bottom row) over fine-tuning epochs for FT, FT-SAM, and I-BAU. 0.0 0.5 (a) SD-2.1 0.0 0.5 Density (b) SD-XL -3-2-10123 Latent value 0.0 0.5 (c) Flux-1.0 Clean imagesTriggered images Figure 7: Latent-space stealthiness ofGhostVAE. Empirical marginal density of latent values on 1,000 PRCMark images, comparing clean inputs and triggered inputs for SD-2.1, SD- XL, and FLUX-1.0. the trigger while remaining statistically indistinguishable in latent space. Activation Clustering [5]. We further assess whether ac- tivation clustering can separate clean and triggered inputs toGhostVAE. For this evaluation, we use 500 clean water- marked images and their corresponding triggered versions. We extract the final encoder activations of these 1,000 in- puts, reduce them to lower-dimensional activations using In- dependent Component Analysis (ICA) [16], and then apply K-means clustering. We quantify separability using the mean optimal clustering accuracy over five runs. Specifically, be- cause the two cluster indices produced byK-means are arbi- trary, we assign them to the ground-truth clean and triggered labels in the way that yields the highest classification accu- racy for each run, and report the average accuracy across five independent runs. On the SD-2.1 setting, the average optimal clustering accuracy is 52.6% and 50.1% when the ICA dimen- sion is 256 and 512, respectively, which means that the two clusters contain nearly balanced clean and triggered samples. We further observe the same phenomenon on SD-XL, where the corresponding accuracy is 50.0% and 50.1% under the same ICA dimensions. These results indicate that activation clustering fails to reliably separate triggered inputs from clean ones. 6.4 Parameter-Space Visualization To further probe whetherGhostVAEleaves a detectable ar- tifact footprint in the parameter space, we construct three groups of encoders, each containing 50 independently trained models: (i) benign VAE encoders obtained by fine-tuning SD- 2.1 using the default training hyperparameters in Section 6.2, (i) backdoored VAE encoders using random BadNets-style trigger [9] as described in Section 6.3, and (i) backdoored encoders trained byGhostVAE. For each convolutional layer, we collect the corresponding weights from all encoders across three groups and jointly project them into a two-dimensional space using t-SNE [32]. Figure 8 illustrates the resulting L1L2L3L4L5L6L7L8L9 L10L11L12L13L14L15L16L17L18 L19L20L21L22L23L24L25L26L27 BenignBadNetsGhostVAE Figure 8: Layer-wise t-SNE visualization of convolutional weights in the VAE encoder. Each subplot (L1âL27) corresponds to a convolutional layer. We fix the LDM to SD-2.1. layer-wise visualizations, where each point corresponds to one encoder at a specific layer. Across all layers,GhostVAE- based backdoored encoders consistently overlap with the be- nign cluster and remain well separated from BadNets-based backdoored encoders. These results indicate thatGhostVAE does not induce a layer-specific geometric signature in the weight space, which means the introduction of the MMD- based regularization inGhostVAEeffectively enhances the parameter-space stealthiness. 7 Discussion & Limitations 7.1 Regulation Suggestions Our findings indicate that once the neural network compo- nent becomes unreliable, the effectiveness of watermarking schemes is fundamentally compromised. Consequently, we argue that regulatory efforts should place greater emphasis on the integrity of the entire model deployment pipeline under- lying watermarking schemes. For example, VAEs could be required to be trained by trusted third parties, or their training processes could be subject to end-to-end regulatory oversight. Meanwhile, to prevent covert replacements, cryptographic mechanisms such as hash functions [35] should be employed to ensure the integrity of deployed VAE components. Moreover, integrity checking alone may be insufficient if adversarial perturbations can transfer across compatible en- coders. As suggested by our cross-encoder verification results in Section 6.2, replacing the verification encoder weakens but does not fully eliminate the attack. Therefore, VAE train- ing should also consider adversarial training to improve ro- bustness to input perturbations, while deployment pipelines should reduce the transferability of such perturbations across independently trained encoders. We further note recent progress in text-to-image diffusion models, where image generation can be achieved without the involvement of VAEs. For instance, pMF [25] enables single- step image generation directly in the raw pixel space, without relying on a pretrained VAE or performing multi-step iterative sampling. While such architectures may be inherently resilient to our attacks, watermarking schemes specifically designed for these novel generation paradigms remain largely underex- plored, thereby posing challenges even for basic provenance tracking of generated images. 7.2 Limitations We highlight several limitations of our work. First, implanting the backdoor into the VAE encoder can affect benign water- mark detection in some settings. AlthoughGhostVAElargely preserves the original detection capability, we observe TPR degradation for certain backbone-watermark combinations, as shown in Table 4. This suggests a trade-off between attack effectiveness and function maintenance. An important next step is to design backdoor attacks that further minimize such degradation. Second, our threat model assumes that the ma- licious model supplier can control the encoder used during watermark detection. If the verifier instead uses an encoder that has the same architecture but different parameters, the attack can be weakened. However, with techniques that en- hance adversarial transferability, such as DI 2 -FGSM [46], GhostVAEcan still retain a non-trivial watermark evasion ASR under cross-encoder verification. Further studying at- tacks in this stronger setting, and understanding how far such transferability can be improved, would be a valuable direction for future work. Third, part of our evidence for the stealthi- ness relies on empirical visualization. In particular, the t-SNE visualization provides only qualitative evidence and should not be interpreted as a principled detector. A longer-term goal is therefore to develop watermark evasion backdoors with cryptographic undetectability guarantees [7]. 8 Conclusion We proposeGhostVAE, a stealthy VAE encoder backdoor that achieves watermark evasion under trigger activation while preserving detection behavior on benign inputs. Moreover, the universal trigger remains effective under common cor- ruptions, purification techniques and social media pipeline, making the evasion reliable in the real world. Crucially, we show thatGhostVAEis difficult to detect or mitigate using existing defenses, including a wide range of parameter-space and latent-space defense strategies. These findings underscore a fundamental gap between watermark robustness and the se- curity of the underlying generative model, where a watermark can be robust in isolation but still fail in practice when the detection pipeline is compromised. Therefore, safeguarding semantic watermarks requires not only robust designs but also principled protection of neural network components against backdoor insertion. We hope this work motivates future re- search and regulatory efforts to jointly address watermark robustness and the secure deployment of generative models. Acknowledgement We sincerely thank the anonymous reviewers for their con- structive suggestions. This work is supported by the Na- tional Cyber Security-National Science and Technology Major Project (2026ZD1500700), the Scientific Research Innovation Capability Support Project for Young Faculty (ZYGXQNJSKYCXNLZCXM-P4), the Fundamental and In- terdisciplinary Disciplines Breakthrough Plan of the Min- istry of Education of China (JYB2025XDXM114), the Na- tional Natural Science Foundation of China (62402273), the Guangdong Basic and Applied Basic Research Foundation (2026A1515030046), and the State Key Laboratory of Inter- net Architecture, Tsinghua University (HLW2025ZD14). Ethical Considerations Our ethical considerations consist of stakeholder analysis, impact analysis, mitigations, and decision justifications. Stakeholder Analysis. We organize the stakeholders affected byGhostVAEaccording to their role in the watermark deploy- ment and enforcement pipeline. (1) Governance stakeholders: This group includes regulators, auditors, platform operators, and AI image generation companies. These stakeholders care about whether deployed LDMs satisfy watermarking-related compliance requirements. (2) Model suppliers: They provide LDMs to generate images. Upon receiving requests from users, these models generate watermarked images, where the watermark is only detectable by model suppliers holding the watermark key. (3) Downstream participants: This group in- cludes casual end users and professional content creators who use LDMs to generate images that contain watermarks. (4) Research team: This group includes researchers and water- mark developers who study the reliability of watermarking schemes. Impact Analysis. Our analysis identifies both positive and negative impacts on the stakeholder groups above. Positive impacts: (1) Enhancing Governance Auditing (for governance stakeholders): Our work reveals a hidden risk of surface-level compliance, where a system appears compli- ant during auditing but can still have vulnerabilities in real deployment. Our work will help make future auditing pro- cesses of LDM watermarking systems more comprehensive. (2) Strengthening Secure Deployment Practices (for model suppliers): Our work helps model supplier recognize that wa- termark embedding alone is insufficient. They need to protect the entire detection pipeline, especially neural components like the VAE encoder, reducing the risk of hidden backdoors and improving trustworthy deployment. (3) More Trustworthy Provenance (for downstream participants): By exposing this hidden vulnerability, our work can help drive the develop- ment of more trustworthy provenance mechanisms, thereby reducing the risk that downstream participants rely on prove- nance signals that fail in practice. (4) Advancing Research on Watermark Security (for research team): Our work exposes a previously overlooked attack surface in semantic watermark- ing systems, motivating future research on verifier integrity, backdoor-resistant watermarking, and end-to-end security for LDM deployment pipelines. Negative impacts: (1) Reduced Confidence in Watermark- Based Enforcement (for governance stakeholders): Our work may weaken confidence in current watermark-based enforce- ment by showing that these systems can be less reliable than expected. (2) Increased Misuse and Commercial Risks (for model suppliers): Our work may help malicious suppliers selectively disable watermark detection, while also creat- ing commercial risks for benign providers, such as customer churn. (3) Harder-to-Trace Harmful Content (for downstream participants): Our work may enable malicious users to gener- ate images that evade watermark detection, making harmful or misleading content harder to trace. (4) Challenging Existing Research Assumptions (for research team): Our work may challenge reliability assumptions in existing semantic water- marking schemes by showing that watermarked latents alone are insufficient for security evaluation. While this may prompt researchers to revisit prior protocols and claims, our findings do not invalidate the underlying cryptographic assumptions; instead, they expose risks arising from the integration of cryp- tographic primitives with AI components. Mitigations. We acknowledge that this work may be mis- used by malicious actors to better understand or reproduce watermark evasion attacks. For example, a malicious sup- plierâuser coalition could use a backdoored watermarking pipeline to generate and disseminate harmful synthetic im- ages while evading traceability. To mitigate such risks, we adopt the following measures. As discussed in Section 7.1, our mitigation suggestions include trusted third-party VAE training, end-to-end oversight of training and deployment, integrity checks for deployed VAE components, and designing more secure watermarking schemes. We emphasize that any use of our findings should remain within applicable law and regulation. Meanwhile, to mitigate real-world threats, we did not re- lease any attack-ready artifacts generated in this work, such as optimized triggers, backdoored VAE encoders, or directly reusable checkpoints. Our evaluation was restricted to con- trolled offline experiments on local systems, and we did not test on deployed large-scale services, engage with real users, or attempt any real-world watermark evasion or misuse. These restrictions were intended to limit operational abuse while preserving the value of the work as a security assessment. Decision Justifications. Decision to Conduct: It was appropriate to conduct this work because the vulnerability we studied is a practical deployment-level risk in semantic watermarking systems whenever detection relies on neural components that can be backdoored. Our motivation was to assess whether this attack is practically feasible and whether it can remain stealthy in de- ployment. Before starting this work, we explicitly considered the relevant stakeholders, the misuse risks, and the conditions under which the work could be responsibly conducted. We also carried out all experiments in a controlled offline setting. Decision to Publish: Although backdoor research on gen- eral AI models has been extensively published, its integration with watermarking scenarios has not yet been well studied. Without disclosure, this vulnerability could remain hidden and sustain misplaced confidence in watermark-based enforce- ment. After weighing the misuse risks against the defensive value of disclosure, we concluded that publication is justified, as it can help the community avoid false assurance, motivate more secure watermarking schemes, and strengthen the audit- ing process. We believe the benefits of publication outweigh the risks, and by sharing our findings through a high-impact platform like USENIX, we can promote long-term security of the watermarking ecosystem. Open Science To support reproducibility, we release an artifact package that contains (i) the necessary configuration files, (i) all defense and evaluation scripts used in our study, and (i) the full imple- mentation ofGhostVAE. Specifically, the repository provides an integrated workflow, including environment setup, dataset preparation, universal-trigger optimization, backdoored VAE- encoder training, and representative defense runs. Inparticular, weprovidetwostandard depen- dencyspecifications,requirements_dif.txtand requirements_ghostvae.txt, for different task stages, together with example commands. The main results in this paper can be reproduced by following the in- structions inREADME.md. All artifacts are available via https://github.com/CryptoAILab/GhostVAEand https://doi.org/10.5281/zenodo.20391190. References [1] Stability AI. sd-vae-ft-ema.https://huggingface. co/stabilityai/sd-vae-ft-ema, 2023. [2]Stability AI. sd-vae-ft-mse.https://huggingface. co/stabilityai/sd-vae-ft-mse, 2023. [3] Stability AI. sdxl-vae.https://huggingface.co/ stabilityai/sdxl-vae, 2023. [4] Bang An, Mucong Ding, Tahseen Rabbani, Aakriti Agrawal, Yuancheng Xu, Chenghao Deng, Sicheng Zhu, Abdirisak Mohamed, Yuxin Wen, Tom Goldstein, and Furong Huang. WAVES: benchmarking the robustness of image watermarks. In Forty-first International Con- ference on Machine Learning, ICML 2024, Vienna, Aus- tria, July 21-27, 2024, 2024. [5]Bryant Chen, Wilka Carvalho, Nathalie Baracaldo, Heiko Ludwig, Benjamin Edwards, Taesung Lee, Ian M. Molloy, and Biplav Srivastava. Detecting backdoor at- tacks on deep neural networks by activation clustering. In Workshop on Artificial Intelligence Safety 2019 co- located with the Thirty-Third AAAI Conference on Ar- tificial Intelligence 2019 (AAAI-19), Honolulu, Hawaii, January 27, 2019, CEUR Workshop Proceedings, 2019. [6]Miranda Christ and Sam Gunn. Pseudorandom error- correcting codes. In Annual International Cryptology Conference, pages 325â347. Springer, 2024. [7]Shafi Goldwasser, Michael P. Kim, Vinod Vaikun- tanathan, and Or Zamir. Planting undetectable back- doors in machine learning models : [extended abstract]. 2022 IEEE 63rd Annual Symposium on Foundations of Computer Science (FOCS), pages 931â942, 2022. [8]Arthur Gretton, Karsten M. Borgwardt, Malte J. Rasch, Bernhard Schölkopf, and Alexander Smola.A kernel two-sample test.J. Mach. Learn. Res., 13(null):723â773, March 2012. [9]Tianyu Gu, Brendan Dolan-Gavitt, and Siddharth Garg. Badnets: Identifying vulnerabilities in the ma- chine learning model supply chain. arXiv preprint arXiv:1708.06733, 2017. [10]Sam Gunn, Xuandong Zhao, and Dawn Song. An unde- tectable watermark for generative image models. In The Thirteenth International Conference on Learning Rep- resentations, ICLR 2025, Singapore, April 24-28, 2025, 2025. [11]Wenbo Guo, Lun Wang, Yan Xu, Xinyu Xing, Min Du, and Dawn Song. Towards inspecting and eliminating tro- jan backdoors in deep neural networks. In 2020 IEEE In- ternational Conference on Data Mining (ICDM), pages 162â171, 2020. [12]Gustavosta.Stable-diffusion-prompts.URL: https://huggingface.co/datasets/Gustavosta/ Stable-Diffusion-Prompts. [13]Jonathan Ho, Ajay Jain, and Pieter Abbeel. Denois- ing diffusion probabilistic models. Advances in neural information processing systems, 33:6840â6851, 2020. [14]J. L. Hodges.The significance probability of the smirnov two-sample test. Arkiv för Matematik, 3:469â 486, 1958. [15] Hugging Face Inc.Hugging face hub.https:// huggingface.co, 2024. [16] A. HyvĂ€rinen and E. Oja. Independent component anal- ysis: algorithms and applications. Neural Networks, 13(4):411â430, 2000. [17]Jinyuan Jia, Yupei Liu, and Neil Zhenqiang Gong. Badencoder: Backdoor attacks to pre-trained encoders in self-supervised learning. In 43rd IEEE Symposium on Security and Privacy, SP 2022, San Francisco, CA, USA, May 22-26, 2022, pages 2043â2059. IEEE, 2022. [18]Jinsu Kim, Yunhun Nam, Minseon Kim, Sangpil Kim, and Jongheon Jeong. Blurguard: A simple approach for robustifying image protection against AI-powered edit- ing. In The Thirty-ninth Annual Conference on Neural Information Processing Systems, 2026. [19]Black Forest Labs.Flux.https://github.com/ black-forest-labs/flux, 2024. [20] Black Forest Labs, Stephen Batifol, Andreas Blattmann, Frederic Boesel, Saksham Consul, Cyril Diagne, Tim Dockhorn, Jack English, Zion English, Patrick Esser, Sumith Kulal, Kyle Lacey, Yam Levi, Cheng Li, Do- minik Lorenz, Jonas MĂŒller, Dustin Podell, Robin Rom- bach, Harry Saini, Axel Sauer, and Luke Smith. Flux.1 kontext: Flow matching for in-context image gener- ation and editing in latent space.arXiv preprint arXiv:2506.15742, 2025. [21]Yige Li, Xixiang Lyu, Xingjun Ma, Nodens Koren, Lingjuan Lyu, Bo Li, and Yu-Gang Jiang. Reconstruc- tive neuron pruning for backdoor defense. In Interna- tional Conference on Machine Learning, ICML 2023, 23-29 July 2023, Honolulu, Hawaii, USA, volume 202 of Proceedings of Machine Learning Research, pages 19837â19854. PMLR, 2023. [22]Kang Liu, Brendan Dolan-Gavitt, and Siddharth Garg. Fine-pruning: Defending against backdooring attacks on deep neural networks. In Research in Attacks, In- trusions, and Defenses - 21st International Symposium, RAID 2018, Heraklion, Crete, Greece, September 10-12, 2018, Proceedings, volume 11050 of Lecture Notes in Computer Science, pages 273â294. Springer, 2018. [23]Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. In International Conference on Learning Representations, 2017. [24]Cheng Lu, Yuhao Zhou, Fan Bao, Jianfei Chen, Chongx- uan Li, and Jun Zhu. Dpm-solver: A fast ODE solver for diffusion probabilistic model sampling in around 10 steps. In Advances in Neural Information Processing Systems 35: Annual Conference on Neural Information Processing Systems 2022, NeurIPS 2022, New Orleans, LA, USA, November 28 - December 9, 2022, 2022. [25]Yiyang Lu, Susie Lu, Qiao Sun, Hanhong Zhao, Zhicheng Jiang, Xianbang Wang, Tianhong Li, Zhengyang Geng, and Kaiming He. One-step latent- free image generation with pixel mean flows. arXiv preprint arXiv:2601.22158, 2026. [26]Xingjun Ma, Yifeng Gao, Yixu Wang, Ruofan Wang, Xin Wang, Ye Sun, Yifan Ding, Hengyuan Xu, Yun- hao Chen, Yunhao Zhao, Hanxun Huang, Yige Li, Yutao Wu, Jiaming Zhang, Xiang Zheng, Yang Bai, Yiming Li, Zuxuan Wu, Xipeng Qiu, Jingfeng Zhang, Xudong Han, Haonan Li, Jun Sun, Cong Wang, Jin- dong Gu, Baoyuan Wu, Siheng Chen, Tianwei Zhang, Yang Liu, Mingming Gong, Tongliang Liu, Shirui Pan, Cihang Xie, Tianyu Pang, Yinpeng Dong, Ruoxi Jia, Yang Zhang, Shiqing Ma, Xiangyu Zhang, Neil Gong, Chaowei Xiao, Sarah M. Erfani, Tim Baldwin, Bo Li, Masashi Sugiyama, Dacheng Tao, James Bailey, and Yu- Gang Jiang. Safety at scale: A comprehensive survey of large model and agent safety. Found. Trends Priv. Secur., 8(3-4):254â469, 2025. [27]Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. In 6th International Conference on Learning Representa- tions, ICLR 2018, Vancouver, BC, Canada, April 30 - May 3, 2018, Conference Track Proceedings, 2018. [28]Rui Min, Zeyu Qin, Li Shen, and Minhao Cheng. To- wards stable backdoor purification through feature shift tuning. In Advances in Neural Information Processing Systems 36: Annual Conference on Neural Information Processing Systems 2023, NeurIPS 2023, New Orleans, LA, USA, December 10 - 16, 2023, 2023. [29]Andreas MĂŒller, Denis Lukovnikov, Jonas Thietke, Asja Fischer, and Erwin Quiring.Black-box forgery at- tacks on semantic watermarks for diffusion models. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, CVPR 2025, Nashville, TN, USA, June 11- 15, 2025, pages 20937â20946. Computer Vision Foun- dation / IEEE, 2025. [30] Weili Nie, Brandon Guo, Yujia Huang, Chaowei Xiao, Arash Vahdat, and Animashree Anandkumar. Diffu- sion models for adversarial purification. In Interna- tional Conference on Machine Learning, ICML 2022, 17-23 July 2022, Baltimore, Maryland, USA, volume 162 of Proceedings of Machine Learning Research, pages 16805â16827. PMLR, 2022. [31] Dustin Podell, Zion English, Kyle Lacey, Andreas Blattmann, Tim Dockhorn, Jonas MĂŒller, Joe Penna, and Robin Rombach. SDXL: Improving latent diffu- sion models for high-resolution image synthesis. In The Twelfth International Conference on Learning Represen- tations, 2024. [32] Pavlin G. Policar, Martin Strazar, and Blaz Zupan. opentsne: A modular Python library for t-sne dimension- ality reduction and embedding. J. Stat. Softw., 109(3), 2024. [33]Nate Raymond.Us judicial panel to de- veloprulestoaddressai-produced evidence. https://w.reuters.com/legal/transactional/us- judicial-panel-develop-rules-address-ai-produced- evidence-2024-11-08/, November 2024. [34]Reuters Fact Check. Fact check: Images of aircraft landings into flaming beirut airport are ai-generated. https://w.reuters.com/fact-check/images-aircraft- landings-into-flaming-beirut-airport-are-ai-generated- 2024-10-29/, October 2024. [35]Ronald L. Rivest. The MD5 Message-Digest Algo- rithm. RFC 1321, April 1992. URL:https://w. rfc-editor.org/info/rfc1321. [36]Robin Rombach, A. Blattmann, Dominik Lorenz, Patrick Esser, and Björn Ommer. High-resolution image synthesis with latent diffusion models. 2022 IEEE/CVF Conference on Computer Vision and Pattern Recogni- tion (CVPR), pages 10674â10685, 2021. [37]Artur Sobo Ì n and Sylwia Stachowiak. Chacha20 cipher cryptanalysis through sat problem solving. In 2024 IEEE 17th International Scientific Conference on Infor- matics (Informatics), pages 355â361, 2024. [38]Jiaming Song, Chenlin Meng, and Stefano Ermon. De- noising diffusion implicit models. In 9th International Conference on Learning Representations, ICLR 2021, Virtual Event, Austria, May 3-7, 2021, 2021. [39]The European Parliament and of the Council. Regulation (eu) 2024/1689 of the european parliament and of the council of 13 june 2024 laying down harmonised rules on artificial intelligence and amending regulations (ec) no 300/2008, (eu) no 167/2013, (eu) no 168/2013, (eu) 2018/858, (eu) 2018/1139 and (eu) 2019/2144 and direc- tives 2014/90/eu, (eu) 2016/797 and (eu) 2020/1828 (ar- tificial intelligence act). Official Journal of the European Union, July 2024. URL:https://eurlex.europa. eu/eli/reg/2024/1689/oj/eng. [40]Jordan Vice, Naveed Akhtar, Richard I. Hartley, and Ajmal Mian. BAGM: A backdoor attack for manipulat- ing text-to-image generative models. IEEE Trans. Inf. Forensics Secur., 19:4865â4880, 2024. [41]Bolun Wang, Yuanshun Yao, Shawn Shan, Huiying Li, Bimal Viswanath, Haitao Zheng, and Ben Y. Zhao. Neu- ral cleanse: Identifying and mitigating backdoor attacks in neural networks. In 2019 IEEE Symposium on Secu- rity and Privacy (SP), pages 707â723, 2019. [42]Haonan Wang, Qianli Shen, Yao Tong, Yang Zhang, and Kenji Kawaguchi. The stronger the diffusion model, the easier the backdoor: Data poisoning to induce copy- right breaches without adjusting finetuning pipeline. In NeurIPS 2023 Workshop on Backdoors in Deep Learn- ing - The Good, the Bad, and the Ugly, 2024. [43]Yuxin Wen, John Kirchenbauer, Jonas Geiping, and Tom Goldstein. Tree-rings watermarks: Invisible fingerprints for diffusion images. In Advances in Neural Information Processing Systems, volume 36, pages 58047â58063. Curran Associates, Inc., 2023. [44] Baoyuan Wu, Hongrui Chen, Mingda Zhang, Zihao Zhu, Shaokui Wei, Danni Yuan, Mingli Zhu, Ruotong Wang, Li Liu, and Chao Shen. Backdoorbench: A comprehen- sive benchmark and analysis of backdoor learning. Int. J. Comput. Vis., 133(8):5700â5787, 2025. [45] X. Formerly twitter. URL: https://x.com. [46] Cihang Xie, Zhishuai Zhang, Yuyin Zhou, Song Bai, Jianyu Wang, Zhou Ren, and Alan L. Yuille. Improv- ing transferability of adversarial examples with input diversity. In 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 2725â 2734, 2019. [47] Xiaojun Xu, Qi Wang, Huichen Li, Nikita Borisov, Carl A. Gunter, and Bo Li. Detecting AI trojans us- ing meta neural analysis. In 42nd IEEE Symposium on Security and Privacy, SP 2021, San Francisco, CA, USA, 24-27 May 2021, pages 103â120. IEEE, 2021. [48]Xiaoyun Xu, Zhuoran Liu, Stefanos Koffas, and Stjepan Picek. Towards backdoor stealthiness in model param- eter space. In Proceedings of the 2025 ACM SIGSAC Conference on Computer and Communications Security, CCS 2025, Taipei, Taiwan, October 13-17, 2025, pages 2863â2876. ACM, 2025. [49]Xiong Xu, Kunzhe Huang, Yiming Li, Zhan Qin, and Kui Ren. Towards reliable and efficient backdoor trigger inversion via decoupling benign features. In The Twelfth International Conference on Learning Representations, ICLR 2024, Vienna, Austria, May 7-11, 2024, 2024. [50]Zijin Yang, Kai Zeng, Kejiang Chen, Han Fang, Wei Ming Zhang, and Neng H. Yu. Gaussian shading: Provable performance-lossless image watermarking for diffusion models. 2024 IEEE/CVF Conference on Com- puter Vision and Pattern Recognition (CVPR), pages 12162â12171, 2024. [51]Yi Zeng, Si Chen, Won Park, Zhuoqing Mao, Ming Jin, and Ruoxi Jia. Adversarial unlearning of backdoors via implicit hypergradient. In The Tenth International Conference on Learning Representations, ICLR 2022, Virtual Event, April 25-29, 2022, 2022. [52]Shengfang Zhai, Yinpeng Dong, Qingni Shen, Shi Pu, Yuejian Fang, and Hang Su. Text-to-image diffusion models can be easily backdoored through multimodal data poisoning. In Proceedings of the 31st ACM Inter- national Conference on Multimedia, M 2023, Ottawa, ON, Canada, 29 October 2023- 3 November 2023, pages 1577â1587. ACM, 2023. [53]Shengfang Zhai, Jiajun Li, Yue Liu, Huanran Chen, Zhi- hua Tian, Wenjie Qu, Qingni Shen, Ruoxi Jia, Yinpeng Dong, and Jiaheng Zhang. Efficient input-level backdoor defense on text-to-image synthesis via neuron activation variation. In Proceedings of the IEEE/CVF Interna- tional Conference on Computer Vision (ICCV), pages 15182â15193, October 2025. [54]Xuandong Zhao, Kexun Zhang, Zihao Su, Saastha Vasan, Ilya Grishchenko, Christopher Kruegel, Giovanni Vigna, Yu-Xiang Wang, and Lei Li. Invisible image water- marks are provably removable using generative AI. In Advances in Neural Information Processing Systems 38: Annual Conference on Neural Information Processing Systems 2024, NeurIPS 2024, Vancouver, BC, Canada, December 10 - 15, 2024, 2024. [55]Kaiwen Zheng, Cheng Lu, Jianfei Chen, and Jun Zhu. Dpm-solver-v3: Improved diffusion ODE solver with empirical model statistics. In Advances in Neural Infor- mation Processing Systems 36: Annual Conference on Neural Information Processing Systems 2023, NeurIPS 2023, New Orleans, LA, USA, December 10 - 16, 2023, 2023. [56]Runkai Zheng, Rongjun Tang, Jianze Li, and Li Liu. Data-free backdoor removal based on channel lipschitz- ness. In Computer Vision - ECCV 2022 - 17th European Conference, Tel Aviv, Israel, October 23-27, 2022, Pro- ceedings, Part V, volume 13665 of Lecture Notes in Computer Science, pages 175â191. Springer, 2022. [57] Mingli Zhu, Shaokui Wei, Li Shen, Yanbo Fan, and Baoyuan Wu. Enhancing fine-tuning based backdoor de- fense with sharpness-aware minimization. In IEEE/CVF International Conference on Computer Vision, ICCV 2023, Paris, France, October 1-6, 2023, pages 4443â 4454. IEEE, 2023. A RAPSD Calculation Given an imagexand its triggered counterpartx + G(ÎŽ; Ï), we summarize their frequency content using the radially- averaged power spectral density (RAPSD). For an input image x, we compute its Fourier frequency matrixf := F(x)â C hĂw , wherehandwdenote the height and width of the Fourier grid (matching the spatial resolution ofx), and(u, v)indexes a discrete frequency coordinate on thishĂ wgrid. We then partition the coordinates offintoBradial bands according to their distance to the spectrum center, yieldingBdisjoint sets B b B b=1 , whereB b contains the frequency coordinates that fall into theb-th band and|B b |denotes its cardinality. RAPSD is defined as aB-dimensional vector whoseb-th entry is the average squared magnitude of FFT coefficients within B b : RAPSD b ( f) := 1 |B b | â (u,v)âB b | f(u, v)| 2 .(1) Collecting all B band-wise entries yields the RAPSD vector. B Experimental Details B.1 Watermark Detection Threshold Setting We summarize the detection thresholds for each semantic wa- termarking on each backbone model. These thresholds shown in Table 11 are fixed across all experiments in our evalua- tion. Different models and watermark designs induce differ- ent calibration characteristics; thus, a single global threshold would conflate detection stringency across settings and lead to unfair comparisons. We use the official thresholds when they are specified in the original watermarking papers; for other backbone-watermark combinations, we calibrate thresh- olds to achieve high TPR and low FPR on benign models. We further assess threshold sensitivity on Gaussian Shad- ing with SD-XL by varying the threshold from 0.67 to 0.60 and 0.70. TPR/FPR/ASR change to 73.0%/0.0%/100.0% and Table 11: Detection threshold configurations for watermark verification. For PRCMark, we show the Ï prc here. Scheme Threshold SD-2.1SD-XLFlux-1.0 Tree-Ring0.590.670.60 Gaussian Shading1.000.980.95 PRCMark0.150.150.15 Table 12: Hyperparameter settings for parameter-level back- door defenses. DefenseHyperparameters CLSPpruning rate = 0.15%, prune steps = 20 CLPsweep pruning threshold from0.5to5.0with step size 0.5 ANPepochs=4, batch size=2,Δ= 0.4,lr inner = 0.4, lr outer = 0.2, sweep pruning threshold from0.1 to 0.9 with step size 0.1 FTepoch = 10, lr = 1eâ 5 FT-SAMepoch = 10,lr = 1eâ 5,Ï max = 2.0,Ï min = 0.05, Ï schedule = cosine I-BAUepoch = 10,lr = 1eâ 5,n rounds = 4, K = 5, pert steps = 50, unlearn portion = 0.01, unlearn batches = 300 KS testsignificance level α = 0.05 99.6%/1.3%/92.5%, respectively. While these changes re- flect the expected threshold trade-off,GhostVAEconsistently maintains strong evasion performance, indicating that our findings are robust to reasonable threshold choices. B.2 Defense Methods Parameter Setting We disclose the hyperparameter settings for the model pruning and fine-tuning defenses evaluated in Section 6.2. Table 12 lists the exact configurations used in our experiments. Com- pared to the default hyperparameter configuration, we reduce the number of epochs because training the VAE encoder is computationally time-consuming. C Sensitivity to Step Budgets for Watermark Removal Attacks We perform a sensitivity study on the step budgets of two iterative watermark removal baselines: the optimization steps T imprint used by Imprint and the denoising stepsT reg used by Regeneration. We sweep each budget while holding all other settings fixed, and report the ASR and image quality. 102030 Optimization step 0 20 40 60 80 100 ASR (%) ASR PSNR 24 25 26 PSNR Figure 9: Sensitivity of the Imprint attack to the optimization steps T imprint . We report the resulting ASR (left axis) and im- age quality measured by PSNR (right axis) as T imprint varies. 1050100150200 Denoising step 0 20 40 60 80 100 ASR (%) ASR PSNR 22 24 26 28 PSNR Figure 10: Sensitivity of the Regeneration attack to the de- noising stepsT reg . We report the resulting ASR (left axis) and image quality measured by PSNR (right axis) as T reg varies. Both iterative baselines exhibit a clear trade-off: increasing the step budget improves watermark evasion but degrades image quality and increases runtime. For Imprint attack re- sults shown in Figure 9, raising the optimization steps from T imprint =10to30sharply increases the ASR from3%to97%, but this gain comes with a substantial PSNR drop, indicat- ing noticeably stronger visual distortion. For Regeneration, Figure 10 shows the same pattern: larger denoising budgets increase ASR monotonically, yet PSNR steadily deteriorates, so the attack becomes more destructive and costly as it be- comes more effective. These results motivate our main-paper choices (T imprint =30andT reg =200), which place both base- lines in their stronger regimes while making the associated quality and efficiency costs explicit.