Bypassing Copyright Protection in Diffusion-based Customization via Two-Stage Latent Feature Optimization

Ziang Xu, Wenbo Yu, Hongyao Yu, Hao Fang, Jiawei Kong, Bin Chen, Hao Wu, Shu-Tao Xia, Zhiyong WuarXiv 2026

TL;DR

The paper introduces Two-Stage Latent Feature Optimization (TS-LFO), a highly effective framework that systematically bypasses state-of-the-art adversarial copyright protections designed to prevent unauthorized fine-tuning of diffusion models. By identifying that current defenses primarily work by breaking the mapping between an image and its latent representation, TS-LFO successfully restores this connection to enable high-fidelity, personalized image generation from protected data.

What Problem Does This Paper Address?

Diffusion-based customization techniques like DreamBooth and Textual Inversion allow users to clone specific visual concepts or styles using just a few reference images. To protect intellectual property and prevent malicious content forgery, researchers developed adversarial defenses (such as Anti-DreamBooth, AdvDM, and SimAC). These defenses add imperceptible perturbations to images, ensuring that if an unauthorized user attempts to fine-tune a diffusion model on them, the resulting generated images are severely degraded or distorted.

However, existing "purification" attacks (like DiffPure or IMPRESS) try to blindly remove these perturbations without understanding the underlying mechanism of the defense. The authors of this paper bridge this gap by analyzing exactly how these defenses disrupt Latent Diffusion Models (LDMs). They discover that the adversarial noise fundamentally corrupts the VAE encoder's mapping and destabilizes the Unet denoiser's training dynamics. TS-LFO addresses this specific vulnerability by targeted rectification of the damaged latent features.

Methods

TS-LFO operates directly within the latent space of the LDM via a targeted, two-stage optimization process:

Overview of the TS-LFO pipeline
  1. Stage 1: Latent Denoising Stage
    This stage eliminates high-frequency adversarial perturbations. It optimizes the latent feature $z$ by jointly minimizing two losses:

  2. Latent-Image Alignment Loss ($\mathcal{L}_{align}$): Uses a traditional pixel-wise Mean Squared Error (MSE) to maintain semantic consistency between the decoded latent code and the input image.

  3. Latent Diffusion Loss ($\mathcal{L}_{LDM}$): Simulates the forward and backward diffusion process using a pre-trained, frozen Unet denoiser. This forces the optimized latent feature to align with the model's natural, easy-to-denoise generation trajectory.
  4. Timestep-Varying Weights: A linear scheduling mechanism dynamically adjusts the balance between these two losses across different diffusion timesteps to ensure stable optimization.
  5. Stage 2: Latent Reconstruction Stage
    To recover low-frequency structural details and prevent semantic drift, this stage applies a strict pixel-level $\mathcal{L}_\infty$ bounding constraint ($\epsilon_{rec} = 8/255$). It clamps the reconstructed latent features close to the original image space, ensuring high visual fidelity in the final customized outputs.

Datasets

The authors evaluated their approach across three distinct image distributions to verify its generalization capabilities:

  • CelebA-HQ: A high-quality facial image dataset used to evaluate identity consistency and facial structure preservation.
  • LSUN-Cat: A dataset focused on animal categories (cats) to test performance on non-human subjects.
  • LSUN-Sheep: Another animal dataset (sheep) providing varied textures and structures.

Key Insights and Ideas

  • Defenses Target the Mapping, Not Just Pixels: Adversarial protections don't just act as superficial noise; they actively trick the VAE encoder into creating "corrupted" latent representations. This corruption cascades downstream, drastically increasing the Unet denoiser's training loss during customization.
Impact of adversarial defenses on Unet training loss
  • Simplicity Wins in Latent Alignment: Counterintuitively, traditional pixel-wise MSE significantly outperforms advanced perceptual metrics (like LPIPS or SSIM) when optimizing the alignment loss. Advanced metrics often misinterpret adversarial noise as legitimate features, whereas MSE treats it purely as an error to be minimized.
  • Active Representation Optimization: TS-LFO doesn't just filter out defense perturbations; it actively optimizes latent representations. When applied to completely clean, unprotected images, it actually improves downstream generation metrics, acting as a general image enhancement tool.

Key Results

TS-LFO consistently outperformed state-of-the-art copyright attacks (DiffPure, GrIDPure, IMPRESS) and successfully neutralized top-tier defenses (AdvDM, Anti-DreamBooth, SimAC, DisDiff, PhotoGuard).

  • Quantitative Performance: On the CelebA-HQ dataset against the SimAC defense, TS-LFO achieved an impressive Fréchet Inception Distance (FID) of 170.15, substantially beating DiffPure (205.50) and GrIDPure (201.50). Lower FID indicates higher image generation quality.
  • Identity Preservation: Under PhotoGuard protection, TS-LFO maintained a high Identity Consistency Metric (ISM) of 0.4487, far surpassing IMPRESS (0.3272).
  • Bypassing Watermarks: The method proved highly effective even against semantic-level watermarking defenses like DIAGNOSIS, reducing the watermark flag rate from 17.24% down to a negligible 0.92%.
Figure 3: The impact of latent feature 𝑧on the L𝐿𝐷𝑀under the influence of different copyright protections.

Limitations and Future Work

The primary drawback of TS-LFO is its computational time complexity. Processing a single $512 \times 512$ image requires approximately 6 minutes due to the iterative 3000-step optimization loop. While the authors argue this is acceptable compared to the subsequent 15-to-30-minute model fine-tuning process, it remains a bottleneck for large-scale operations.

Future research directions include developing faster optimization schedules and exploring more robust defense mechanisms that can safeguard latent spaces against targeted feature optimization attacks.

Summary updated

BibTeX
@misc{xu2026bypassing,
  author = {Ziang Xu and Wenbo Yu and Hongyao Yu and Hao Fang and Jiawei Kong and Bin Chen and Hao Wu and Shu-Tao Xia and Zhiyong Wu},
  title = {{Bypassing Copyright Protection in Diffusion-based Customization via Two-Stage Latent Feature Optimization}},
  year = {2026},
  eprint = {2606.09909},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.09909},
}
Figure