Skip to main content
QUICK REVIEW

[Paper Review] MIC: Masked Image Consistency for Context-Enhanced Domain Adaptation

Lukas Hoyer, Dengxin Dai|arXiv (Cornell University)|Dec 2, 2022
Domain Adaptation and Few-Shot LearningComputer Science9 citations
TL;DR

This paper proposes Masked Image Consistency (MIC), a plug-in module for unsupervised domain adaptation (UDA) that improves robustness by enforcing consistency between predictions of masked target images and pseudo-labels from unmasked images. By leveraging context to infer masked regions, MIC achieves state-of-the-art performance, including 75.9 mIoU on GTA→Cityscapes and 92.8% accuracy on VisDA-2017, with consistent gains across classification, segmentation, and detection tasks.

ABSTRACT

In unsupervised domain adaptation (UDA), a model trained on source data (e.g. synthetic) is adapted to target data (e.g. real-world) without access to target annotation. Most previous UDA methods struggle with classes that have a similar visual appearance on the target domain as no ground truth is available to learn the slight appearance differences. To address this problem, we propose a Masked Image Consistency (MIC) module to enhance UDA by learning spatial context relations of the target domain as additional clues for robust visual recognition. MIC enforces the consistency between predictions of masked target images, where random patches are withheld, and pseudo-labels that are generated based on the complete image by an exponential moving average teacher. To minimize the consistency loss, the network has to learn to infer the predictions of the masked regions from their context. Due to its simple and universal concept, MIC can be integrated into various UDA methods across different visual recognition tasks such as image classification, semantic segmentation, and object detection. MIC significantly improves the state-of-the-art performance across the different recognition tasks for synthetic-to-real, day-to-nighttime, and clear-to-adverse-weather UDA. For instance, MIC achieves an unprecedented UDA performance of 75.9 mIoU and 92.8% on GTA-to-Cityscapes and VisDA-2017, respectively, which corresponds to an improvement of +2.1 and +3.0 percent points over the previous state of the art. The implementation is available at https://github.com/lhoyer/MIC.

Motivation & Objective

  • Address the challenge of class confusion in unsupervised domain adaptation (UDA) where visually similar classes (e.g., road/sidewalk) are misclassified due to lack of ground truth on the target domain.
  • Improve visual recognition robustness by explicitly learning spatial context relations in the target domain, which prior UDA methods fail to exploit effectively.
  • Develop a simple, universal module that can be seamlessly integrated into various UDA frameworks across multiple recognition tasks (classification, segmentation, detection).
  • Achieve consistent performance gains on diverse domain gaps, including synthetic-to-real, clear-to-adverse-weather, and day-to-night adaptation.
  • Enable models to better reason holistically about image semantics by leveraging contextual cues such as curbs or surrounding objects, even when local appearance is ambiguous.

Proposed method

  • Introduce a Masked Image Consistency (MIC) module that masks random patches in target images during training to force the student network to infer the semantics of masked regions using contextual information.
  • Generate pseudo-labels for the complete unmasked target images using an exponential moving average (EMA) teacher model, which provides robust, context-aware supervision.
  • Minimize a consistency loss between the student’s predictions on the masked image and the pseudo-labels from the unmasked image, encouraging the student to learn contextual dependencies.
  • Apply MIC as a plug-in to existing UDA methods, including those based on adversarial training, entropy minimization, and self-training, across different architectures (CNNs and Transformers).
  • Train the student network to generalize across diverse target domain conditions by randomly masking different regions over training, ensuring robustness to various context configurations.
  • Use the EMA teacher to stabilize pseudo-label generation, improving the reliability of supervision during the self-training process.

Experimental results

Research questions

  • RQ1Can enforcing consistency between predictions on masked target images and pseudo-labels from unmasked images improve domain adaptation performance?
  • RQ2To what extent can learning spatial context relations reduce misclassification of visually similar classes (e.g., road vs. sidewalk) in the absence of target annotations?
  • RQ3How effective is MIC as a plug-in module across different UDA frameworks, recognition tasks, and domain gaps?
  • RQ4Does MIC improve generalization on challenging target domain conditions such as adverse weather or low-light environments?
  • RQ5What are the failure modes of MIC, and how do they relate to context dependency assumptions and out-of-distribution object arrangements?

Key findings

  • MIC achieves a new state-of-the-art performance of 75.9 mIoU on the GTA→Cityscapes semantic segmentation benchmark, representing a +2.1 percentage point improvement over the previous SOTA.
  • On the VisDA-2017 image classification benchmark, MIC achieves 92.8% top-1 accuracy, a +3.0 percentage point gain over the prior state of the art.
  • MIC improves performance by +4.3 percentage points on the CS→DarkZurich benchmark, demonstrating strong generalization to adverse-weather adaptation.
  • In object detection on Foggy Cityscapes, MIC(SADA) detects previously missed instances of bus, truck, rider, and motorcycle, showing enhanced robustness in low-visibility conditions.
  • Qualitative analysis confirms that MIC segments ambiguous regions (e.g., sidewalks, fences, partially occluded vehicles) more completely and consistently than prior methods, especially when context cues like curbs or bicycles are present.
  • Despite improvements, MIC still struggles with rare object appearances, merging road-sidewalk regions, and motion blur, indicating limitations in handling extreme or out-of-context scenarios.

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.