Abstract
Privacy considerations and bias in datasets are quickly becoming high-priority issues that the computer vision community needs to face. So far, little attention has been given to practical solutions that do not involve the collection of new datasets. In this work, we show that for object detection on COCO, both anonymizing the dataset by blurring faces, as well as swapping faces in a balanced manner along the gender and skin tone dimension, can retain object detection performances while preserving privacy and partially balancing bias.
Introduction
The computer vision community faces two growing crises: privacy and bias. Most large-scale datasets are scraped from the web without explicit consent, often containing personally identifiable information (PII) like faces, which risks violating regulations like GDPR. Simultaneously, these datasets are frequently biased, underrepresenting women and people with darker skin tones, leading to models that perform poorly or offensively on marginalized groups.
While collecting new, perfectly balanced, and consented datasets is the "gold standard," it is prohibitively expensive. This research investigates whether we can "fix" existing datasets by modifying them—specifically by blurring or swapping faces—without destroying the model's ability to detect objects in the real world.
Methodology
The researchers explored two primary data augmentation strategies to modify the MS-COCO 2017 dataset:
- Face Blurring (Baseline): Faces were detected using the MTCNN detector. An elliptical Gaussian blur was applied, and pixel intensities were randomly shifted to scramble skin tones while maintaining the general shape of the head.
- GAN-based Face Swapping: To go beyond simple obfuscation, a pipeline was developed using StarGAN. Reference faces were sampled from the UTKFace dataset with specific gender and race distributions (White, Black, Asian, Indian, and Others).
The process involved detecting and cropping faces, using StarGAN to transfer the "style" (expression) of the original face onto the "attributes" (gender, race) of a reference face, and then aligning, segmenting, and pasting the synthetic face back into the original COCO image. Finally, Faster-RCNN models were trained on these modified datasets.
Key Insights and Results
Performance Stability
The most significant finding is that object detectors do not require clear human faces to identify a "person." The mean Average Precision (mAP) remained remarkably stable across all experiments. The default model trained on raw data achieved 37.9 mAP, while the model trained on balanced gender and race swaps achieved 38.0 mAP. This suggests that privacy-preserving training doesn't come at the cost of utility.
Privacy and Bias Mitigation
While the authors attempted to use the Image Embedding Association Test (iEAT) to measure bias, the results were inconsistent. However, the "Black Female" swapped model showed a 20% decrease in bias against the "Arab-Muslim" category in iEAT tests.
Crucially, the study found that "privacy is more than skin deep." Even when faces were completely blurred, a simple linear classifier could still decode a person's gender from the model's internal features with ~85% accuracy. This "leakage" suggests that cues like hair length and body type are strong signals that simple face-obfuscation doesn't hide.
Conclusion and Future Work
This work demonstrates that we can train high-performing object detectors without using real, identifiable human faces. Models trained on modified data performed just as well on original, unedited images as models trained on raw data.
However, the authors acknowledge that face-swapping doesn't solve the privacy problem entirely because of leakage from non-facial cues. Future work could involve modifying entire bodies or hair. Additionally, for true privacy preservation, the underlying backbone (like ResNet50) should be pre-trained on modified data from the start to ensure no PII is ever encoded in the model's weights.
Summary updated