NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Filtering Memorization from Parameter-Space in Diffusion Models

Yu Zhe, Yang Jiayan, Wei Junhao, Yu-Lin Tsai, Wang ChenarXiv 2026

TL;DR

Base-Anchored Filtering (BAF) is a training-free, data-free method designed to scrub memorized, copyrighted images from diffusion LoRA weights after they have been trained. By analyzing the geometric alignment between LoRA updates and the pretrained base model, BAF selectively suppresses memorization while preserving or even enhancing the model's creative generation quality.

What Problem Does This Paper Address?

Low-Rank Adaptation (LoRA) has revolutionized the customization of text-to-image diffusion models, allowing users to inject specific styles or characters using just a few reference images. However, LoRAs are highly prone to memorizing their training data, frequently reproducing copyrighted artwork, protected characters, or private individuals near-verbatim.

Figure 1: LoRA weight carries memorization of training data, manifested as pixel-level and object-level reproduction of training samples. BAF successfully modifies diffusion models to produce memorization-free outputs.

In open model-sharing ecosystems like CivitAI or Hugging Face, downstream users and hosting platforms only have access to the final, uploaded LoRA weight files—not the original training data or the optimization pipeline. Existing defenses against memorization require either modifying the training process or having prior knowledge of the memorized content to erase it. This paper addresses a critical gap: How can we identify and filter out memorization when only the released LoRA weights are available?

Methods

The authors introduce Base-Anchored Filtering (BAF), a post-hoc framework that operates entirely in parameter space without requiring data or retraining.

  1. Spectral Decomposition: BAF applies Singular Value Decomposition (SVD) to decompose the LoRA weight updates ($\Delta W$) into distinct spectral channels.
  2. Anchoring Score: It calculates an "anchoring score" for each channel, measuring its bilateral geometric alignment with the principal subspace (the dominant singular vectors) of the pretrained base model ($W_*$).
  3. Energy-Adaptive Selection: Because different neural network layers exhibit different spectral decay patterns, BAF dynamically determines the principal subspace dimension ($K$) for each layer based on a target spectral energy threshold ($\tau_{energy}$).
  4. Gating Modes: Channels that fall below a random-projection baseline threshold (meaning they show no structured alignment with the base model) are targeted as carriers of memorized content. BAF handles them via two modes:
  5. BAF-Hard: Explicitly zeroes out weakly aligned channels.
  6. BAF-Soft: Continuously down-weights channels using an exponent ($\alpha$) to smoothly suppress memorization.

Datasets

The method was evaluated on both controlled setups and real-world models:

  • Pokémon: A dataset of ~800 stylized character images with BLIP-generated captions.
  • CelebA-HQ: A high-quality portrait dataset used to simulate celebrity-likeness fine-tuning.
  • LAION Art: A subset of ~1,000 images with high art-related prompt similarity.
  • CivitAI LoRAs: 20 real-world, publicly distributed Flux LoRAs spanning anime characters, celebrity likenesses, and specific artistic styles to test deployment-realistic conditions.

Key Insights and Ideas

  • The Geometric Signature of Memorization: The core "aha moment" of the paper is that generalizable style adaptations naturally align with the dominant spectral directions of the pretrained base model. Conversely, memorization forces weight updates into weakly aligned, instance-specific directions.
  • Parameter-Space Noise: Memorized channels behave like parameter-space noise. Removing them doesn't degrade the model's utility; instead, it frees the model from rigid data replication, allowing it to generate cleaner, more flexible variations.
  • Data-Free Safety: BAF demonstrates that the pretrained base model itself can serve as a structural anchor to audit and clean up downstream adapters, shifting the safety enforcement paradigm from the training pipeline to the hosting platform level.

Key Results

BAF consistently outperformed existing data-free inference-time defenses across multiple backbones (Stable Diffusion 1.5 and SDXL), achieving the lowest SSCD (a metric for image copy detection) while maintaining or improving visual quality.

Figure 2: Directional ablation supports the anchoring hypothesis. From a memorizing LoRA (•), removing low-alignment channels yields near-base memorization with the best aesthetic quality (■). Removing high-alignment channels preserves memorization but lowers quality (♦). The clean LoRA (+) and base model (×) are references. Results are consistent across Pokémon (a) and CelebHQ (b).
  • Quality Improvement: On the Pokémon dataset (SD1.5), BAF-Soft reduced the memorization score (SSCD) from 0.76 to 0.57 while simultaneously boosting the Aesthetic Score from 5.08 to 5.43 (see Table 1).
  • Robustness to Over-training: Even when training images were duplicated up to 100 times to force extreme memorization, BAF successfully suppressed the replication signal back to baseline levels.
  • Real-World Validation: In a blind preference study involving 10 independent raters evaluating 20 real-world CivitAI concepts, BAF was unanimously rated as the strongest memorization suppressor across all 20 concepts.

Limitations and Future Work

The authors note that the choice of the energy threshold ($\tau_{energy}$) requires careful balance: setting it too low can inadvertently weaken the model's useful adaptation capacity, while setting it to 1.0 eliminates the filtering effect entirely. Additionally, while the paper opens up a promising avenue for data-free safety mechanisms in open ecosystems, extending this geometric filtering approach to non-linear layers or full-parameter fine-tuning remains an open area for future research.

Summary updated

BibTeX
@misc{zhe2026filtering,
  author = {Yu Zhe and Yang Jiayan and Wei Junhao and Yu-Lin Tsai and Wang Chen},
  title = {{Filtering Memorization from Parameter-Space in Diffusion Models}},
  year = {2026},
  eprint = {2605.10439},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.10439},
}
Figure