Skip to main content
QUICK REVIEW

[Paper Review] Object-aware Contrastive Learning for Debiased Scene Representation

Sangwoo Mo, Hyunwoo Kang|arXiv (Cornell University)|Jul 30, 2021
Domain Adaptation and Few-Shot LearningComputer Science79 references16 citations
TL;DR

This paper proposes an object-aware contrastive learning framework that reduces scene bias in self-supervised representation learning by leveraging contrastive class activation maps (ContraCAM) for unsupervised object localization and introducing two novel data augmentations—object-aware random crop and background mixup. The method improves generalization on multi-object, background-shifted, and distribution-shifted benchmarks, achieving state-of-the-art performance on COCO, Background Challenge, and ImageNet-Sketch with significant accuracy gains.

ABSTRACT

Contrastive self-supervised learning has shown impressive results in learning visual representations from unlabeled images by enforcing invariance against different data augmentations. However, the learned representations are often contextually biased to the spurious scene correlations of different objects or object and background, which may harm their generalization on the downstream tasks. To tackle the issue, we develop a novel object-aware contrastive learning framework that first (a) localizes objects in a self-supervised manner and then (b) debias scene correlations via appropriate data augmentations considering the inferred object locations. For (a), we propose the contrastive class activation map (ContraCAM), which finds the most discriminative regions (e.g., objects) in the image compared to the other images using the contrastively trained models. We further improve the ContraCAM to detect multiple objects and entire shapes via an iterative refinement procedure. For (b), we introduce two data augmentations based on ContraCAM, object-aware random crop and background mixup, which reduce contextual and background biases during contrastive self-supervised learning, respectively. Our experiments demonstrate the effectiveness of our representation learning framework, particularly when trained under multi-object images or evaluated under the background (and distribution) shifted images.

Motivation & Objective

  • To address the issue of contextual and background bias in contrastive self-supervised representation learning, where models learn spurious correlations between objects and scenes.
  • To develop a self-supervised method for object localization without bounding box annotations, enabling bias mitigation during pretraining.
  • To improve generalization under distribution shifts, particularly for shape-biased and corrupted image distributions.
  • To enhance performance on downstream tasks such as classification and detection in multi-object and out-of-distribution settings.

Proposed method

  • Proposes ContraCAM, a contrastive self-supervised method that identifies discriminative image regions by contrasting features across different images, enabling object localization without annotations.
  • Introduces an iterative refinement procedure to extend ContraCAM for detecting multiple objects and complete shapes.
  • Designs object-aware random crop, which crops patches centered on detected objects to reduce contextual bias from mixed object-background patches.
  • Introduces background mixup, a data augmentation that mixes backgrounds from different images based on ContraCAM masks to reduce background bias.
  • Uses ContraCAM-generated masks to create effective negative samples by masking detected objects during contrastive learning.
  • Applies the framework to both MoCov2 and BYOL, demonstrating compatibility and performance gains across multiple contrastive learning schemes.

Experimental results

Research questions

  • RQ1Can self-supervised object localization via contrastive feature comparison effectively reduce scene bias in contrastive representation learning?
  • RQ2How do object-aware random crop and background mixup augmentations improve generalization under background and distribution shifts?
  • RQ3To what extent can ContraCAM localize multiple objects and entire shapes without supervision, and how does this affect representation quality?
  • RQ4Does the proposed method improve downstream performance on multi-object and out-of-distribution datasets compared to standard contrastive learning?
  • RQ5Can the framework generalize across different contrastive learning architectures like MoCov2 and BYOL?

Key findings

  • On the COCO dataset, the proposed method improves linear evaluation accuracy by 7.8% over MoCov2 and 4.5% over BYOL, demonstrating strong performance on multi-object scenes.
  • On the Background Challenge dataset, the model achieves 65.55% top-1 accuracy with MoCov2 and 64.59% with BYOL—significantly outperforming vanilla baselines and reducing background-driven misclassification.
  • On ImageNet-Sketch (shape-biased shift), the method achieves 62.25% accuracy with MoCov2 and 64.59% with BYOL, showing robustness to shape-based distribution shifts.
  • On ObjectNet-9 (distribution shift), BG-Mixup (CAM) achieves 29.28% accuracy with MoCov2 and 31.38% with BYOL, outperforming standard augmentations and showing strong generalization.
  • On SI-Score-9 (background shift), BG-Mixup (CAM) achieves 63.50% with MoCov2 and 62.77% with BYOL, indicating effective mitigation of background bias.
  • ContraCAM achieves localization performance comparable to supervised CAM and state-of-the-art unsupervised methods, despite being self-supervised and simple.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.