TL;DR
This paper provides a comprehensive look at how social biases—like sexism and racism—emerge in Vision Transformers (ViTs). The researchers found that while training data is a major factor, model architecture and training objectives play surprisingly large roles: larger models and those trained with discriminative objectives tend to be less biased, and in some cases, different training methods can even produce opposite biases from the same dataset.
What Problem Does This Paper Address?
As self-supervised learning becomes the standard for training massive image models, concerns about "representational harm" are growing. We know these models often encode human-like social biases (e.g., associating women with "home" and men with "industry"), but we don't fully understand why.
Most previous research focused on older architectures like ResNet or specific training data. This paper fills the gap by investigating how the design choices behind Vision Transformers—the current state-of-the-art—influence the emergence and intensity of these biases. Understanding these factors is crucial for engineers and researchers who want to build fairer AI systems without sacrificing performance.
Methods
The authors evaluated bias using the Image Embedding Association Test (iEAT), which measures the differential association between target concepts (like "Male" vs. "Female") and attributes (like "Career" vs. "Family") using cosine similarity in the model's embedding space.
To investigate mitigation, they employed Counterfactual Data Augmentation (CDA). They developed a novel pipeline to generate "unbiased" versions of images:
- Captioning: Use BLIP and CLIP to describe an image.
- Editing: Swap gendered terms in the caption (e.g., "man" to "woman").
- Inpainting: Use CLIPSeg to mask the person in the original image and Stable Diffusion to "repaint" them based on the new caption.
They compared two main types of self-supervised learning (SSL) objectives:
- Generative (Reconstruction-based): Models like MAE and BEiT that learn by predicting missing parts of an image.
- Discriminative (Joint-embedding): Models like DINO and MoCo that learn by ensuring different views of the same image have similar representations.
Datasets
- ImageNet-1K & ImageNet-21k: Used as the primary benchmarks for training and assessing bias.
- Counterfactual ImageNet: A subset of 159,393 images generated by the authors to balance gender representation.
- CIFAR-10: Used for linear evaluation to ensure that debiasing techniques didn't destroy the model's overall representation quality.
Key Insights and Ideas
- Objectives Matter More Than You Think: Models trained on the exact same data can exhibit opposite biases depending on their training objective. For example, ViT-MAE might associate a group with "unpleasantness" while ViT-MoCo shows the inverse.
- The "Reconstruction" Trap: Generative models (like MAE) tend to be more biased. The authors conjecture this is because their goal is to reconstruct the world as it appears in the data, including all its statistical inequities. Discriminative models, which seek "view invariance," focus more on fundamental visual features that are less influenced by social context.
- Scaling as a Shield: As models get larger (e.g., moving from ViT-Base to ViT-Huge), the absolute magnitude of social bias decreases. Larger models may have the capacity to capture more complex semantic information rather than relying on simple, biased correlations.
- Bias Divergence Across Layers: Biases are present even in the earliest layers of a ViT, likely tied to low-level features like skin tone or brightness. However, as the model builds more complex semantic features in later layers, the number of biases in discriminative models drops significantly compared to generative ones.
Key Results
- Bias Magnitude: Scaling models leads to a clear reduction in bias. Figure 4 shows the mean absolute iEAT effect size dropping as model size increases for both iGPT and ViT-MAE.
- CDA Effectiveness: Counterfactual training reduced gender bias in BEiT (from 0.65 to 0.45) and ViT-MoCo (from 1.41 to 1.39). However, it actually increased bias in ViT-MAE (from 0.59 to 0.64), suggesting that data-level mitigation is highly model-specific.
- Discriminative vs. Generative: Across various significance thresholds, discriminative models consistently showed fewer significant social biases than their generative counterparts.
Limitations and Future Work
- Not a Silver Bullet: While CDA and scaling help, they do not eliminate bias. The authors note that some biases are so ingrained in the training data that they persist across all configurations.
- Performance Trade-offs: In some cases (like BEiT), debiasing led to a slight drop in downstream task performance (CIFAR-10 accuracy).
- Scope of Biases: The study focused on 15 specific association tests. There are likely many other social and political biases not captured by this framework.
- Future Directions: The authors suggest that instead of just focusing on data, future work should explore "post-hoc interventions" and more principled architectural choices to eliminate undesirable model behaviors directly.
Summary updated