Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Generating Risky Samples with Conformity Constraints via Diffusion Models

About

Although neural networks achieve promising performance in many tasks, they may still fail when encountering some examples and bring about risks to applications. To discover risky samples, previous literature attempts to search for patterns of risky samples within existing datasets or inject perturbation into them. Yet in this way the diversity of risky samples is limited by the coverage of existing datasets. To overcome this limitation, recent works adopt diffusion models to produce new risky samples beyond the coverage of existing datasets. However, these methods struggle in the conformity between generated samples and expected categories, which could introduce label noise and severely limit their effectiveness in applications. To address this issue, we propose RiskyDiff that incorporates the embeddings of both texts and images as implicit constraints of category conformity. We also design a conformity score to further explicitly strengthen the category conformity, as well as introduce the mechanisms of embedding screening and risky gradient guidance to boost the risk of generated samples. Extensive experiments reveal that RiskyDiff greatly outperforms existing methods in terms of the degree of risk, generation quality, and conformity with conditioned categories. We also empirically show the generalization ability of the models can be enhanced by augmenting training data with generated samples of high conformity.

Han Yu, Hao Zou, Xingxuan Zhang, Zhengyi Wang, Yue He, Kehan Li, Peng Cui• 2025

Related benchmarks

TaskDatasetResultRank
Image GenerationImageNet
FID10.2
68
Image GenerationCIFAR100
FID32.9
51
Risky Sample TransferabilityImageNet
Error Rate39
30
Image ClassificationPACS ID (train)
Accuracy96.7
24
Image ClassificationPACS OOD (test)
Accuracy82.8
24
Image ClassificationNICO++ (ID)
Accuracy88.2
24
Image ClassificationNICO++ OOD
Accuracy76.2
24
Risky Sample TransferabilityCIFAR-100
Error Rate61
18
Image GenerationPACS
FID46.1
12
Image GenerationNICO++
FID17.3
12
Showing 10 of 16 rows

Other info

Follow for update