Evaluation without Generation: Non-Generative Assessment of Harmful Model Specialization with Applications to CSAM

Vinith Menon Suriyakumar, Ayush Sekhari, Lena Stempfle, Robertson Wang, Michael Simpson, Rebecca S. Portnoff, Marzyeh Ghassemi, Ashia C. Wilson

TL;DR

Researchers have developed Gaussian probing, a method to detect if a generative AI model has been fine-tuned for harmful content (like CSAM) by analyzing its internal activations rather than its outputs. This "Evaluation without Generation" approach allows platforms to screen thousands of models for illegal or dangerous capabilities without the legal, ethical, and scaling risks of actually generating harmful imagery.

What Problem Does This Paper Address?

The explosion of open-weight models and lightweight "LoRA" (Low-Rank Adaptation) adapters has created a massive governance headache. Platforms like CivitAI host hundreds of thousands of user-uploaded adapters that can specialize a base model to generate anything from "watercolor style" to "highly illegal content."

Traditionally, safety auditing relies on generative evaluation: you prompt the model and see what comes out. This fails in three ways:

  1. Scalability: You can't manually red-team 100,000 new adapters every month.
  2. Legal/Ethical Constraints: In domains like Child Sexual Abuse Material (CSAM), even attempting to generate the content for testing purposes is often illegal and psychologically scarring for human reviewers.
  3. Adversarial Evasion: A model might be "safety-filtered" for common prompts but still possess the underlying capability if triggered differently.

The authors propose a shift from auditing outputs to auditing model state.

Methods

The core innovation is Gaussian Probing. Instead of feeding the model a text prompt and looking at the pixels, the researchers feed the model's internal denoising network pure Gaussian noise—the "native" starting state for diffusion models.

Here’s how it works:

  1. Probe: Sample random Gaussian noise.
  2. Run: Pass this noise through the base model combined with the user-uploaded LoRA.
  3. Extract: Instead of finishing the image, they record the internal activations (hidden layers) at various timesteps.
  4. Aggregate: These activations are pooled into a compact "feature vector" that acts as a functional signature of the LoRA.
  5. Classify: A simple linear classifier is trained to distinguish between "benign" signatures and "harmful" signatures.

This method is "functional" because it measures how the LoRA actually changes the model's internal logic, rather than just looking at the raw numbers in the weight matrices (which can be easily disguised).

Datasets

The study evaluated the method across three major architectures: Stable Diffusion 1.5, SDXL 1.0, and FLUX.1-dev.

  • Controlled Data: To isolate signals, they trained 2,000 LoRAs on Safe-For-Work (SFW) datasets (COCO, Flickr30K, etc.) and adult pornography (NSFW) datasets (Danbooru2023, etc.).
  • "In the Wild" Data: They collected ~1,100 SDXL LoRAs from CivitAI to test performance on real-world, noisy user uploads.
  • CSAM Data: Crucially, they tested on CSAM-specialized LoRAs accessed through authorized entities. The researchers emphasize they never possessed, generated, or viewed CSAM; all testing was done via secure, compliant protocols.

Key Insights and Ideas

  • Activations > Weights: Raw weights are noisy. A model can have very different weights but perform the same function. By looking at activations, Gaussian probing captures the behavioral shift of the model.
  • The "Native" State Space: Using Gaussian noise as a probe is clever because it doesn't require "prompt engineering." It interrogates the model's fundamental denoising dynamics, making it harder for a malicious actor to hide harmful capabilities behind "trigger words."
  • Robustness to "Weight Rescaling": A common trick to bypass weight-based detection is to multiply the weights by a constant. Because Gaussian probing looks at the result of the computation, it remains highly accurate even when weights are manipulated this way.
  • Conceptual Generalization: The method doesn't just memorize specific datasets. In "Leave-Dataset-Out" tests, the classifier could identify a harmful LoRA even if it was trained on a dataset the classifier had never seen before.

Key Results

  • 100% Recall on CSAM: Across all three architectures (SD1.5, SDXL, FLUX), Gaussian probing correctly identified every single CSAM-specialized LoRA tested.
  • Low False Positives: The false positive rate for SFW models was under 1% for SD1.5 and SDXL.
  • Superior to Baselines: Gaussian probing significantly outperformed "raw weight projection" (simply looking at the numbers in the LoRA file), especially in the "wild" CivitAI dataset where training artifacts often confuse simpler detectors.
  • Efficiency: The representation is orders of magnitude smaller than the full model weights, making it feasible for platforms to store and scan "signatures" of millions of models.

Limitations and Future Work

  • Scope: The paper focuses on LoRAs. While LoRAs are the most common way models are specialized today, the authors note that extending this to full-model fine-tunes or "merged" models is a necessary next step.
  • Adversarial Evolution: While robust to weight rescaling, the authors acknowledge that sophisticated adversaries might eventually find ways to "obfuscate" activations, though this would likely degrade the model's actual performance.
  • Label Noise: In the "wild" study, some NSFW models were flagged as CSAM. The authors suggest this might actually be "true" detection of contaminated datasets on public platforms, but it warrants further investigation to distinguish between classifier error and genuine contamination.

Summary updated

BibTeX
@inproceedings{suriyakumar2026evaluation,
  author = {Vinith Menon Suriyakumar and Ayush Sekhari and Lena Stempfle and Robertson Wang and Michael Simpson and Rebecca S. Portnoff and Marzyeh Ghassemi and Ashia C. Wilson},
  title = {{Evaluation without Generation: Non-Generative Assessment of Harmful Model Specialization with Applications to CSAM}},
  booktitle = {AI4GOOD @ ICML},
  year = {2026},
  url = {https://openreview.net/forum?id=zpuOfW7NV9},
}
Figure