TL;DR
Auditing generative models for harmful specialization (like CSAM) is legally and ethically fraught using standard output-based methods. This paper introduces Gaussian Probing, a non-generative technique that detects harmful fine-tuning by analyzing internal model responses to random noise, offering a scalable and robust way to screen model artifacts before they are ever distributed.
What Problem Does This Paper Address?
The explosion of open-weight generative models and lightweight fine-tuning methods like Low-Rank Adaptation (LoRA) has created a massive governance challenge. Platforms like Hugging Face and CivitAI host hundreds of thousands of user-uploaded adaptors. Some of these are specialized for harmful purposes, including the generation of Child Sexual Abuse Material (CSAM).
The standard way to audit these models—"red-teaming" by providing prompts and inspecting the resulting images—simply doesn't scale. More importantly, for domains like CSAM, generating the content is often illegal and psychologically traumatizing for human reviewers. The authors propose the Evaluation without Generation problem: how can we assess a model's capabilities based solely on its internal state (weights or activations) without ever producing a single pixel of harmful output?
Methods
The authors introduce Gaussian Probing, a method that characterizes how a LoRA adaptor functionally changes a base model.
As shown in Figure 1(a), the pipeline works as follows:
- Sample Noise: Instead of a text prompt, the model is fed random Gaussian noise—the "native" starting point for the diffusion process.
- Forward Pass: The noise is propagated through the diffusion model equipped with the LoRA adaptor. Crucially, no image is decoded or rendered.
- Record Activations: The method records intermediate hidden representations (activations) from specific layers across multiple denoising timesteps.
- Aggregate Features: These activations are pooled into a fixed-dimension feature vector.
- Classify: A simple linear classifier is trained on these feature vectors to distinguish between Safe-For-Work (SFW), Not-Safe-For-Work (NSFW), and CSAM specializations.
This approach is compared against "raw-weight" baselines, which attempt to classify models by looking directly at the numerical values of the LoRA weights (often using random projections to handle high dimensionality).
Datasets
The study utilizes a mix of controlled and "in-the-wild" data:
- Controlled SFW: LoRAs trained on COCO2017, Flickr30K, Conceptual Captions, LAION-Aesthetics, OpenImages, Unsplash-Lite, and Wikiart.
- Controlled NSFW: LoRAs trained on adult pornography datasets (NSFW Video Still, Danbooru2023, Amaye15), filtered to ensure no CSAM was present.
- In-the-Wild: Over 1,000 SDXL LoRAs sourced from CivitAI, labeled via metadata and automated classifiers.
- CSAM: A small, highly sensitive set of CSAM-specialized LoRAs accessed through authorized entities (Thorn) under strict legal and ethical safeguards. The researchers never possessed or generated CSAM data themselves.
Key Insights and Ideas
- Functional vs. Structural Signal: Raw weights often contain "shortcut" signals—incidental artifacts like specific learning rates or ranks used during training. Gaussian probing focuses on the functional change: how the math of the model actually shifts when processing noise.
- Semantic Latent Space: The method leverages the fact that diffusion models organize high-level concepts in their internal representations. Even without a prompt, a model specialized for a specific category will "steer" random noise toward that category's latent distribution.
- Adversarial Robustness: A simple way to fool a weight-based classifier is to rescale the weights (e.g., normalizing them to a unit norm). Because Gaussian probing measures the effect of the weights on activations, it remains robust to this type of manipulation.
Key Results
Gaussian Probing proved highly effective across three major architectures: Stable Diffusion 1.5, SDXL 1.0, and FLUX.1-dev.
- CSAM Detection: The method achieved 100% recall on CSAM-specialized models across all tested architectures.
- Superiority over Raw Weights: In "in-the-wild" scenarios with small sample sizes (typical for CSAM), raw weight classifiers struggled (AUROC 0.68-0.87), while Gaussian Probing maintained near-perfect separation (AUROC ~0.99).
- Robustness: When subjected to adversarial weight rescaling, the AUROC for raw weights dropped significantly (from 0.92 to 0.83), whereas Gaussian Probing actually improved slightly (0.92 to 0.94).
As seen in Figure 6, the false positive rate for SFW models being flagged as CSAM is extremely low (under 1% for SD 1.5 and SDXL).
Limitations and Future Work
- Access Requirements: The method requires access to the model weights (open-weights), making it inapplicable to closed-source API-only models.
- Scope: The current work focuses on LoRA adaptors. Detecting specialization in full-model fine-tunes or base models remains a more difficult challenge.
- Adversarial Evolution: While robust to weight rescaling, the authors acknowledge that more sophisticated adversaries might find new ways to obfuscate harmful specialization.
- Governance Balance: The authors highlight the need for clear policies to ensure such tools are used for safety (like CSAM detection) without drifting into broader, unjustified censorship.
Summary updated