Manuscript Offprint

arXiv:2610.18990

Discovering Undisclosed Concepts in LoRA Adapters for Diffusion-Based AIGC Models

Yupeng Qiu, Han Fang, Dhananjai Sharma, Ee-Chien Chang

Abstract

Low-Rank Adaptation (LoRA) has made diffusion model personalization affordable and widely shareable, but it also creates moderation risks when harmful or problematic content is not faithfully disclosed. Hence, it is desired to develop a mechanism that, given a LoRA adapter, discovers the concept it was trained to generate, so as to support downstream investigation. We characterize the target concept through the conditioning input that most clearly exposes what the LoRA has learned. Such an input should induce coherent LoRA outputs that are distinctive from those of the base model and strongly align with the learned LoRA subspace. We therefore formulate concept discovery as searching for the conditioning input that jointly maximizes output coherence, LoRA-induced distinctiveness, and subspace alignment. Even with a clear objective, however, optimizing it over an open-ended input space is prohibitively expensive, since reliable evaluation of coherence and distinctiveness requires repeated diffusion rendering. Crucially, we observe that an input need not be rendered to determine whether it is promising. Its alignment with the learned LoRA subspace provides a lightweight signal for localizing promising candidates before visual verification. Based on this insight, we develop a two-stage framework for text-to-image LoRAs. Subspace-Guided Evolutionary Search (SGES) uses render-free subspace alignment to explore candidate prompts and retain a compact shortlist, while Paired Visual Identification (PVI) renders only these candidates and compares the LoRA and base-model outputs to identify those exhibiting coherent and distinctive generation behavior. This design enables efficient and reliable discovery of previously unknown concepts encoded in LoRA adapters.

1 Introduction

Diffusion models have substantially advanced text-to-image (T2I) generation [5, 15, 28, 32, 34–36]. Low-Rank Adaptation (LoRA) [18] further reduces the cost of model customization and has become widely used for diffusion-model personalization [40, 48]. By learning compact low-rank updates, LoRA can encode diverse visual concepts from only a small set of training images [12, 20]. Its low training and storage costs have facilitated the widespread creation and sharing of customized adapters [18, 48].

However, this accessibility also creates substantial moderation risks [2,37,39,42,46,54]. LoRAs can encode copyrighted content, real-person identities, or NSFW concepts, and these capabilities may not be faithfully disclosed by their uploaders [48,55]. A large-scale study of CivitAI analyzed 221,304 model assets and found that 15.27% (33,804) were flagged as targeting real individuals [48]. Regulatory scrutiny has also increased. For example, the U.S. TAKE IT DOWN Act addresses non-consensual intimate imagery, including AI-generated depictions [45], while the EU AI Act imposes transparency requirements on deepfakes and other AI-generated content [11]. Yet moderation on model-sharing platforms still relies heavily on uploader-provided descriptions, tags, trigger words, and sample images [48]; CivitAI and Hugging Face illustrate the model-sharing setting [4, 19]. Such metadata becomes unreliable when disclosure is incomplete or misleading [55]. Hence, it is desirable to develop a mechanism that, given a LoRA adapter, discovers the concept it was trained to generate.

Existing techniques provide only partial solutions to this problem. Difference-discovery methods identify changes between a customized model and its base model [8, 10, 22], but LoRA adaptation often alters not only the primary training target but also related or collateral content [22]. As a result, detecting what has changed does not reveal which change best represents what the adapter has learned. Concept-verification methods take the opposite route: they test whether a predefined concept is encoded by the LoRA, either through prompt recovery [52] or direct model comparison [55]. Their effectiveness, however, is bounded by the concepts specified in advance. Both directions therefore leave the same fundamental question unresolved: when the hidden concept is unknown, what exactly should LoRA forensics seek to

∗^{*}Corresponding author: Han Fang (fanghan@ustc.edu.cn).

References (43)

  • BitFit: Simple parameter-efficient fine-tuning for transformer-based masked language-models
  • Extracting training data from diffusion models
  • Reproducible scaling laws for contrastive language-image learning
  • Diffusion models in vision: A survey
  • Nature machine intelligence, 5(3):220–235, 2023
  • CompCon: Official implementation
  • Discovering divergent representations between text-to-image models
  • VisDiff: Official implementation
  • Describing differences in image sets with natural language
  • Concept sliders: Lora adaptors for precise control in diffusion models
  • Some guidelines and guarantees for common random numbers
  • Denoising diffusion probabilistic models
  • Classifier-Free Diffusion Guidance
  • Parameter-efficient transfer learning for nlp
  • LoRA: Low-rank adaptation of large language models
  • Datadream: Few-shot guided dataset generation
  • DriftScope: Official implementation
  • Driftscope: Measuring the hidden effects of diffusion model adaptation
  • The power of scale for parameter-efficient prompt tuning
  • Prefix-tuning: Optimizing continuous prompts for generation
  • Few-shot parameter-efficient fine-tuning is better and cheaper than in-context learning
  • Decoupled weight decay regularization
  • Genetic algorithms, tournament selection, and the effects of noise
  • GLIDE: Towards photorealistic image generation and editing with text-guided diffusion models
  • Sdxl: Improving latent diffusion models for high-resolution image synthesis
  • Hierarchical Text-Conditional Image Generation with CLIP Latents
  • High-resolution image synthesis with latent diffusion models
  • Advances in neural information processing systems, 35:36479–36494, 2022
  • Safe latent diffusion: Mitigating inappropriate degeneration in diffusion models
  • Neural machine translation of rare words with subword units
  • Glaze: Protecting artists from style mimicry by Text-to-Image models
  • Continual diffusion: Continual customization of text-to-image diffusion with c-loRA
  • Deep unsupervised learning using nonequilibrium thermodynamics
  • Diffusion art or digital forgery? investigating data replication in diffusion models
  • Anti-dreambooth: Protecting users from personalized text-to-image synthesis
  • Attention is all you need
  • Perpetuating misogyny with generative ai: How model personalization normalizes gendered harm
  • DPO-Diff: Official implementation
  • On discrete prompt optimization for diffusion models
  • Hard Prompts Made Easy: Official implementation
  • Hard prompts made easy: Gradient-based discrete optimization for prompt tuning and discovery
  • Diffit: Unlocking transferability of large diffusion models via simple parameter-efficient fine-tuning
  • Sneakyprompt: Jailbreaking text-to-image generative models