Skip to main content
QUICK REVIEW

[Paper Review] Contrastive Syn-to-Real Generalization

Wuyang Chen, Zhiding Yu|arXiv (Cornell University)|Apr 6, 2021
Advanced Vision and ImagingComputer Science35 references18 citations
TL;DR

This paper proposes Contrastive Syn-to-Real Generalization (CSG), a framework that improves zero-shot generalization of models trained on synthetic data by promoting diversity in learned feature embeddings through contrastive learning and attention-guided pooling. CSG achieves state-of-the-art performance on VisDA-17 (64.05% top-1 accuracy) and significant gains on GTA5→Cityscapes semantic segmentation, outperforming prior methods without target domain data.

ABSTRACT

Training on synthetic data can be beneficial for label or data-scarce scenarios. However, synthetically trained models often suffer from poor generalization in real domains due to domain gaps. In this work, we make a key observation that the diversity of the learned feature embeddings plays an important role in the generalization performance. To this end, we propose contrastive synthetic-to-real generalization (CSG), a novel framework that leverages the pre-trained ImageNet knowledge to prevent overfitting to the synthetic domain, while promoting the diversity of feature embeddings as an inductive bias to improve generalization. In addition, we enhance the proposed CSG framework with attentional pooling (A-pool) to let the model focus on semantically important regions and further improve its generalization. We demonstrate the effectiveness of CSG on various synthetic training tasks, exhibiting state-of-the-art performance on zero-shot domain generalization.

Motivation & Objective

  • To address the poor generalization of synthetically trained models on real-world data due to domain gaps and collapsed feature representations.
  • To investigate whether promoting diversity in learned feature embeddings improves zero-shot synthetic-to-real generalization.
  • To develop a method that leverages ImageNet pre-training as an inductive bias to prevent overfitting to synthetic data while enhancing representation diversity.
  • To improve generalization through attention-guided feature pooling that emphasizes semantically relevant regions.
  • To achieve state-of-the-art performance on synthetic training benchmarks without access to real target domain data.

Proposed method

  • Proposes a contrastive learning objective that encourages diversity in feature embeddings by maximizing the separation between different instances on a hypersphere.
  • Integrates ImageNet pre-trained features as a regularizer to prevent overfitting to synthetic data, using a distillation-like loss to align representations.
  • Employs multi-scale contrastive learning to capture hierarchical feature representations across different receptive fields.
  • Introduces attentional pooling (A-pool) that dynamically weights features based on attention maps, focusing on semantically important regions.
  • Uses hyperspherical energy (Es) as a metric to quantify feature diversity, with lower values indicating higher diversity.
  • Trains models on synthetic data only, with evaluation on real target domains like VisDA-17 and Cityscapes, simulating zero-shot generalization.

Experimental results

Research questions

  • RQ1Does promoting diversity in learned feature embeddings improve generalization performance for models trained on synthetic data?
  • RQ2Can contrastive learning with ImageNet pre-training serve as an effective inductive bias to prevent overfitting to synthetic domains?
  • RQ3How does attention-guided pooling affect feature representation quality and generalization in synthetic-to-real transfer?
  • RQ4To what extent does the proposed CSG framework outperform existing domain generalization methods on zero-shot benchmarks?
  • RQ5What is the relationship between feature diversity (measured by hyperspherical energy) and downstream generalization accuracy?

Key findings

  • The CSG framework achieves 64.05% top-1 accuracy on VisDA-17, a significant improvement over the prior state-of-the-art of 61.1%.
  • On the GTA5→Cityscapes semantic segmentation benchmark, CSG achieves competitive performance with the largest relative improvement among methods, demonstrating strong zero-shot generalization.
  • Feature diversity, measured by hyperspherical energy (Es), is strongly correlated with generalization performance: models trained on real data have lower Es (0.3355) than those on synthetic data (0.4408), and CSG reduces Es to 0.3355, indicating improved diversity.
  • The attentional pooling (A-pool) module enhances feature quality by focusing on semantically relevant regions, leading to visually superior segmentation predictions on Cityscapes.
  • Visualizations show that CSG produces more coherent and accurate segmentation maps compared to the baseline, with fewer misclassifications on real-world images.
  • The ablation study confirms that both contrastive learning and attentional pooling contribute to performance gains, with the combination yielding the best results.

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.