Abstract
Visual recognition models are prone to learning spurious correlations induced by a biased training set where certain conditions $B$ (e.g., Indoors) are over-represented in certain classes $Y$ (e.g., Big Dogs). Synthetic data from off-the-shelf large-scale generative models offers a promising direction to mitigate this issue by augmenting underrepresented subgroups in the real dataset. However, by using a mixed distribution of real and synthetic data, we introduce another source of bias due to distributional differences between synthetic and real data (e.g., synthetic artifacts). As we will show, prior work's approach for using synthetic data to resolve the model's bias toward $B$ do not correct the model's bias toward the pair $(B, G)$, where $G$ denotes whether the sample is real or synthetic. Thus, the model could simply learn signals based on the pair $(B, G)$ (e.g., Synthetic Indoors) to make predictions about $Y$ (e.g., Big Dogs). To address this issue, we propose a simple, easy-to-implement, two-step training pipeline that we call From Fake to Real (FFR). The first step of FFR pre-trains a model on balanced synthetic data to learn robust representations across subgroups. In the second step, FFR fine-tunes the model on real data using ERM or common loss-based bias mitigation methods. By training on real and synthetic data separately, FFR does not expose the model to the statistical differences between real and synthetic data and thus avoids the issue of bias toward the pair $(B, G)$. Our experiments show that FFR improves worst group accuracy over the state-of-the-art by up to 20% over three datasets. Code available: https://github.com/mqraitem/From-Fake-to-Real
Introduction: The Challenge of Spurious Correlations
Visual recognition models are notorious for taking shortcuts. If a training set mostly shows "Big Dogs" indoors and "Small Dogs" outdoors, a model might learn to identify a dog's size based on the wallpaper rather than the animal itself. This is a spurious correlation.
To fix this, researchers often use generative AI (like Stable Diffusion) to create "missing" data—for example, synthetic images of big dogs outdoors. However, this paper identifies a critical flaw: synthetic images have distinct statistical "fingerprints" or artifacts. When real and synthetic data are mixed together, the model doesn't just learn the task; it learns to correlate the source of the data (Real vs. Synthetic) with the labels. The authors prove mathematically that simply mixing these datasets makes it impossible to guarantee a bias-free model.
The From Fake to Real (FFR) Framework
To address the "real-synthetic" bias, the authors propose a simple but effective two-stage pipeline called From Fake to Real (FFR). The core innovation is the temporal separation of data sources during training.
- Stage 1: Pretraining on Balanced Synthetic Data. The model is trained exclusively on a dataset generated by Stable Diffusion. This dataset is perfectly balanced across all subgroups (e.g., equal numbers of Men/Women and Smiling/Not Smiling). Because there is no "real" data in this stage, the model cannot learn to distinguish between real and fake; it is forced to learn robust features from the synthetic images.
- Stage 2: Fine-tuning on Real Data. The pretrained model is then fine-tuned on the original, biased real-world dataset. This stage can use standard Empirical Risk Minimization (ERM) or specialized bias-mitigation techniques like GroupDRO.
By never showing the model real and synthetic data at the same time, FFR prevents the model from exploiting the statistical differences between the two distributions.
Experimental Validation
The researchers evaluated FFR across three major benchmarks, manually varying the "bias ratio" from moderate (90%) to severe (99.9%):
- CelebA-HQ: Target attribute "Smiling" with "Gender" as the bias variable.
- UTK-Face: Target attribute "Age" with "Gender" as the bias variable.
- SpuCo Animals: A challenging dataset featuring four classes (Big Dogs, Small Dogs, Landbirds, Waterbirds) biased by their backgrounds (Indoors, Outdoors, Land, Water).
Key Results and Insights
- Worst Group Accuracy (WGA) Gains: FFR improved WGA by up to 20% over state-of-the-art methods. On the SpuCo Animals dataset, FFR achieved a WGA of 72.6%, compared to just 38.5% for standard training and 54.0% for the best previous synthetic augmentation method.
- Saliency and Feature Alignment: Using RISE saliency maps, the authors showed that models trained with FFR focus on the actual object (e.g., the dog's face), while prior methods often got distracted by background elements or synthetic artifacts. t-SNE visualizations further confirmed that FFR projects real and synthetic images into the same feature space, whereas prior methods cluster them separately.
- Robustness to Severe Bias: While traditional methods see their performance tank as the dataset becomes more biased (e.g., 99.9% bias), FFR remains remarkably stable.
- Synergy with Loss-Based Methods: FFR acts as a "force multiplier." When combined with existing bias-mitigation tools like GroupDRO or Resampling, it further boosts their effectiveness by providing a cleaner, more robust starting point.
Limitations and Future Work
The authors acknowledge several areas for future improvement. FFR relies on the generative model's ability to follow prompts accurately; if a model struggles with "compositionality," the pretraining stage becomes less effective. Furthermore, if the generative model itself is biased, the "balanced" synthetic set might not be truly neutral. Finally, the two-stage training process is naturally more resource-intensive than a single pass. Future work focusing on "fairer" and more controllable generative models will directly benefit the FFR pipeline.
Summary updated