TL;DR
Web-scraped computer vision datasets like ImageNet frequently contain offensive, inappropriate, or harmful imagery that manual audits fail to scale and catch. This paper demonstrates that multimodal vision-language models like CLIP already possess implicit knowledge of social and moral norms, which can be steered via soft-prompt tuning using only a small set of annotated images to automatically detect offensive content across large-scale vision benchmarks.
What Problem Does This Paper Address?
Massive computer vision datasets collected by web scraping (e.g., ImageNet) often contain ethically fraught content: privacy-violating faces, pornography, hate symbols, graphic violence, animal cruelty, and misogynistic scenes. While prior work has designed specialized classifiers (such as dedicated pornography detectors or face detectors) or relied on tedious manual audits, these techniques fail to capture the broader spectrum of general offensiveness and do not scale to millions of images.
Standard vision models (like ResNet-50 trained purely on ImageNet) struggle to identify offensive content when labeled training data is scarce. This paper investigates whether large-scale vision-language models pre-trained with natural language supervision already encode implicit representations of offensiveness, and whether they can assist human curators in flagging problematic imagery.
Methods
Instead of training a vision classifier from scratch or fine-tuning heavy vision backbones, the authors harness the pre-trained embedding space of contrastive vision-language models:
- Multimodal Probing (Zero-Shot Baseline): Evaluating cosine similarity between image embeddings $E_{\text{visual}}(x)$ and text prompt embeddings $E_{\text{text}}(z)$ (e.g.,
“This image is about something <label>.”using paired labels like positive/negative, praiseworthy/blameworthy). - Soft-Prompt Tuning: Rather than modifying the model weights ($\theta$ of the visual and text encoders remain frozen), the authors optimize the continuous prompt embeddings directly via gradient descent on cross-entropy loss over a small reference dataset.
- Automated Auditing Pipeline: The tuned prompt classifier scores dataset images to retrieve candidates with high offensiveness scores, enabling a human-in-the-loop review for dataset curation and documentation.
Datasets
- Socio-Moral Image Database (SMID): A psychological stimulus benchmark containing 2,941 images annotated by 2,716 participants across moral/affective dimensions. The authors extract 962 negative (mean rating $< 2.5$) and 712 positive (mean rating $> 3.5$) images to steer and evaluate prompt tuning (using a 90/10 train/test split, 10-fold cross-validated).
- ImageNet-ILSVRC-2012: Evaluated on the 1.2M-image training set and 50,000-image validation set to audit inappropriate content in standard benchmark data.
- WebImageText: The pre-training dataset (~400M image-text pairs) used by OpenAI's CLIP.
Key Insights and Ideas
- Implicit Norms in Multimodal Embeddings: PCA visualizations show that contrastive models trained on natural language (CLIP ViT-B/16) linearly separate moral vs. immoral imagery out of the box, whereas models trained strictly on supervised ImageNet classification (ResNet-50) do not.
- Data Efficiency via Prompt Tuning: Steering CLIP via soft-prompt optimization requires minimal data: using as little as 4% of the SMID training set (~60 labeled images) boosts accuracy above 90%.
- Broadening Content Moderation Beyond Narrow Niches: Previous audits focused heavily on specific, hardcoded categories (e.g., adult content or facial privacy). Multimodal embeddings naturally generalize to identify offending objects (weapons, dead animals), symbols/text (Nazi swastikas, KKK uniforms, slurs, explicit text), and actions (accidents, human/animal torture, domestic abuse).
Key Results
- Classification Performance on SMID:
- ImageNet-1k-trained ResNet-50 (linear probe): 78.36% accuracy, 0.76 F1-score.
- ImageNet-21k-trained ResNet-50 (fine-tuned): 84.99% accuracy, 0.82 F1-score.
- CLIP ResNet-50 (soft-prompt tuning): 90.57% accuracy, 0.88 F1-score.
- CLIP ViT-B/16 (soft-prompt tuning): 96.30% accuracy, 0.95 precision, 0.97 recall, and 0.97 F1-score.
- ImageNet Auditing Findings:
- In ImageNet-2012's validation set, CLIP flags over 1,500 images (out of 50,000) as potentially offensive, compared to just 1 image previously caught by manual human auditing.
- In ImageNet-2012's training set, over 30,000 images were flagged (with 40,501 images flagged when scanning across all categories before threshold shifting).
- Successfully uncovered severely offensive content missed by earlier audits, including graphic slurs written on payphones, swastikas, animal cruelty, and a misogynistic image depicting an abused woman in an abaya.
Limitations and Future Work
- Subjectivity and Cultural Bias: Offensiveness is socially and culturally contingent. The prompt definitions in this study primarily reflect the demographic profile of the 2,716 SMID annotators and the implicit biases embedded in WebImageText.
- Benign vs. Contextual Offense: General object classifiers intentionally include classes such as
guillotine,gasmask, orrevolver. Distinguishing when an object is merely present versus when it depicts a truly harmful, gratuitous action remains tricky for full automation. - Human-in-the-Loop Necessity: Because the deep network functions as a black box, the authors emphasize that this method is intended to assist and pre-filter for human auditors, not to serve as an unmonitored automated deletion tool.
- Future Directions: Incorporating explainable AI (XAI) methods to understand why specific images trigger offensiveness flags, extending to multi-label classification (separating actions vs. symbols vs. objects), and auditing larger datasets such as OpenImages.
Summary updated