Gated Domain-Invariant Feature Disentanglement for Domain Generalizable Object Detection

Haozhuo Zhang, Huimin Yu, Yuming Yan, Runfa WangarXiv 2022

TL;DR

This paper introduces Gated Domain-Invariant Feature Disentanglement (GDIFD), a novel method for Domain Generalizable Object Detection (DGOD). GDIFD disentangles domain-specific features from domain-invariant features at the channel level using a Channel Gate Module, leading to improved object detection performance on unseen domains.

What Problem Does This Paper Address?

Object detection models trained on one dataset (source domain) often perform poorly when applied to data from a different domain (target domain) due to domain shift. This is a significant challenge in real-world applications where data distributions can vary widely. Domain Generalizable Object Detection (DGOD) aims to train models that can generalize to unseen domains without requiring any data or labels from those target domains during training. Existing methods often struggle to effectively separate domain-specific information from the features crucial for object detection, leading to performance degradation. This paper addresses the challenge of achieving cleaner disentanglement of these feature types to improve generalization.

Methods

The core of this work is the Gated Domain-Invariant Feature Disentanglement (GDIFD) module. GDIFD leverages the insight that domain category can be treated as an attribute of the input data, suggesting that specific feature channels could be dedicated to domain-specific information.

The key components are:

  • Channel Gate Module (CGM): This module learns to output a channel-wise gate signal ($S_{di}$) that is close to either 0 or 1. This signal acts as a mask.
  • Channel-wise Disentanglement: The input feature map ($F_b$) is element-wise multiplied with $S_{di}$ to obtain the domain-invariant representation ($F_{di}$) and with $1 - S_{di}$ to obtain the domain-specific representation ($F_{ds}$). This effectively filters out domain-specific channels.
  • Domain Classification Loss ($L_{D-cls}$): A domain classifier is trained on $F_{ds}$ to predict the domain of origin, encouraging $F_{ds}$ to capture domain-specific information.
  • Gate Loss ($L_{gate}$): This novel loss function encourages the gate signals ($S_{di}$) to be close to 0 or 1, promoting a cleaner binary separation of channels into domain-invariant and domain-specific. This is a key differentiator from standard channel attention mechanisms.
  • Adversarial Domain Classification Loss ($L_{D-adv}$): Similar to existing methods, this loss is applied to $F_{di}$ to further remove any remaining domain-specific information, ensuring $F_{di}$ is truly domain-invariant.

The GDIFD module is integrated into a standard FCOS object detection framework.

Datasets

The experiments were conducted on the following large-scale object detection datasets:

  • BDD100k: A diverse driving dataset.
  • Cityscapes: Urban driving scenes.
  • Foggy Cityscapes: A synthetic foggy version of Cityscapes.
  • KITTI: A dataset for autonomous driving.
  • SIM 10k: A virtual dataset rendered by a gaming engine.

The paper describes two main DGOD settings: one using eight shared categories across BDD100k, Cityscapes, and Foggy Cityscapes, and another using only the "car" category across all five datasets.

Key Insights and Ideas

  • Channel-level disentanglement is sufficient: The authors propose that domain-specific information can be effectively isolated into specific feature channels, simplifying the disentanglement process.
  • Domain category as an explicit attribute: Treating the domain category as an attribute allows for targeted channel masking, rather than relying on more complex feature alignment strategies.
  • Binary gate signals for cleaner separation: The proposed gate loss forces the channel gate signals to be close to 0 or 1, leading to a more distinct separation of domain-invariant and domain-specific features compared to continuous attention weights.
  • Lightweight and effective: GDIFD is presented as a lightweight module that can be easily integrated into existing detectors, offering significant performance gains without the complexity of multi-backbone architectures.

Key Results

  • The proposed GDIFD method achieves state-of-the-art performance on several DGOD benchmarks, outperforming the previous state-of-the-art method DIDN and a strong baseline.
  • For example, in one setting, GDIFD achieved a mAP of 36.8% compared to DIDN's 33.4% and the baseline's 33.9% (using ResNet-50). With ResNet-101, GDIFD achieved 38.3% mAP.
  • GDIFD also demonstrates superiority over other lightweight DRL methods (like those from UDAOD research) when applied to DGOD, which often negatively impact performance.
  • Ablation studies confirm the effectiveness of both the gate loss and the special initialization of the Channel Gate Module.

Limitations and Future Work

  • Domain Generalization vs. Adaptation: While the paper focuses on DGOD, the authors briefly explore its extension to Unsupervised Domain Adaptation (UDAOD) and show promising results, suggesting potential for broader applicability.
  • Future Exploration: The authors state their intention to explore the power of GDIFD on other DG and UDA tasks in the future.
  • Potential for further optimization: While GDIFD is presented as lightweight, further research could explore even more efficient implementations or adaptive strategies for channel selection.

Summary updated

Abstract

For Domain Generalizable Object Detection (DGOD), Disentangled Representation Learning (DRL) helps a lot by explicitly disentangling Domain-Invariant Representations (DIR) from Domain-Specific Representations (DSR). Considering the domain category is an attribute of input data, it should be feasible for networks to fit a specific mapping which projects DSR into feature channels exclusive to domain-specific information, and thus much cleaner disentanglement of DIR from DSR can be achieved simply on channel dimension. Inspired by this idea, we propose a novel DRL method for DGOD, which is termed Gated Domain-Invariant Feature Disentanglement (GDIFD). In GDIFD, a Channel Gate Module (CGM) learns to output channel gate signals close to either 0 or 1, which can mask out the channels exclusive to domain-specific information helpful for domain recognition. With the proposed GDIFD, the backbone in our framework can fit the desired mapping easily, which enables the channel-wise disentanglement. In experiments, we demonstrate that our approach is highly effective and achieves state-of-the-art DGOD performance.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
Cityscapes · B&F to CBaseline-101 + GDIFDmAP50.6%backbone=ResNet-101 · source-domains=BDD100K, Foggy Cityscapes
Source quote
L231: + GDIFD (Ours, Fig.~\ref{fig:exist_disens}(d)) │ \checkmark │ 38.3 │ 50.6 │ 22.9
Reported baseline / comparator measurements (2)
BenchmarkMethodMetricScoreProtocol / Evidence
KITTI · B&C&F&S to KBase-101 baselinemAP78.2%backbone=ResNet-101 · source-domains=BDD100K, Cityscapes, Foggy Cityscapes, SIM10K
Source quote
L199: B\ │ C\ │ F\ │ S to K │ 76.8 │ 77.6 │ 79.4 │ 78.2 │ 80.1
BDD100K · C&F&K&S to BBase-101 baselinemAP55.9%backbone=ResNet-101 · source-domains=Cityscapes, Foggy Cityscapes, KITTI, SIM10K
Source quote
L200: C\ │ F\ │ K\ │ S to B │ 52.3 │ 54.1 │ 55.3 │ 55.9 │ 57.0
BibTeX
@misc{zhang2022gated,
  author = {Haozhuo Zhang and Huimin Yu and Yuming Yan and Runfa Wang},
  title = {{Gated Domain-Invariant Feature Disentanglement for Domain Generalizable Object Detection}},
  year = {2022},
  eprint = {2203.11432},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2203.11432},
}
Figure