Robust Object Detection via Instance-Level Temporal Cycle Confusion

Xin Wang, Thomas E. Huang, Benlin Liu, Fisher Yu, Xiaolong Wang, Joseph E. Gonzalez, Trevor Darrell

Abstract

Object detection models often suffer significant performance degradation when deployed in environments that differ from their training data, such as varying weather conditions or lighting shifts. This paper introduces CycConf (Instance-Level Temporal Cycle Confusion), a novel self-supervised auxiliary task designed to enhance the inherent robustness of object detectors. By forcing a model to match the most dissimilar objects across video frames and then cycle back to the original instance, CycConf acts as a maximum entropy regularizer. This approach encourages the network to learn deep, invariant structural representations rather than relying on superficial visual textures. Our results demonstrate that training with CycConf significantly boosts out-of-distribution (OOD) generalization, outperforming several state-of-the-art unsupervised domain adaptation (UDA) methods without requiring access to target domain data during training.

Introduction

Modern object detectors, while highly accurate on their training distributions, are notoriously brittle under "domain shifts"—changes in environmental factors like weather, lighting, or camera perspective. Traditionally, Unsupervised Domain Adaptation (UDA) has been used to bridge this gap by aligning feature spaces between a labeled source domain and an unlabeled target domain. However, UDA is limited by the requirement of target-domain data during the training phase, which is often unavailable in real-world scenarios like autonomous driving.

This research explores how to make object detectors inherently more robust to unseen OOD shifts. The authors propose that auxiliary self-supervised tasks can serve as a powerful regularizer, forcing the model to learn more generalizable features that persist across different domains.

Methodology

The core contribution of this work is the integration of a standard object detector (e.g., Faster R-CNN) with a novel instance-level self-supervised task called Temporal Cycle Confusion (CycConf). The architecture utilizes a shared backbone to extract features, which are then processed by a Region Proposal Network (RPN) and an ROI Align layer.

The CycConf architecture integrates a self-supervised cycle confusion block alongside the standard box predictor to regularize the feature representation.

As shown in the architecture diagram, the instance features from two adjacent video frames ($t_0$ and $t_1$) are passed into the Cycle Confusion module. This module operates in parallel with the standard Box Predictor, providing a secondary training signal that emphasizes structural invariance.

The Cycle Confusion Mechanism

Unlike standard temporal cycle consistency, which seeks to match identical objects across frames (often used in tracking), CycConf intentionally introduces "confusion." The task is structured in two steps:

  1. Forward Pass (Maximum Confusion): For a given object proposal in Frame $t_0$, the network is tasked with finding the most different object in Frame $t_1$ based on $L_2$ distance in the feature space.
  2. Backward Pass (Cycle to Self): The network must then take that mismatched object from Frame $t_1$ and successfully match it back to the original object in Frame $t_0$.
Visual representation of the CycConf task: an object in $t_0$ is matched to a dissimilar object in $t_1$ (red arrow) and must then cycle back to itself (yellow arrow).

By forcing the network to navigate through mismatched instances, CycConf prevents the model from relying on easy, superficial similarities. This process flattens the matching probability distribution, effectively maximizing entropy and forcing the detector to look past transient textures to identify the latent, invariant structures of objects.

Experimental Results

The authors evaluated CycConf across several challenging benchmarks involving both video and static image datasets:

  • OOD Generalization in Video: On the BDD100K Day $\rightarrow$ Night shift, CycConf improved the Faster R-CNN baseline's AP50 from 31.35 to 33.58. In more extreme shifts, such as Waymo Front Left $\rightarrow$ BDD100K Night, it achieved a gain of over 6 points (19.62 to 26.01), significantly outperforming standard cycle consistency.
  • Unsupervised Domain Adaptation: In synthetic-to-real and weather adaptation tasks (e.g., Cityscapes $\rightarrow$ Foggy Cityscapes), the addition of simple auxiliary tasks like image rotation prediction improved the baseline mAP by 19 absolute points (18.8 to 37.8), beating complex state-of-the-art UDA methods while being more computationally efficient.

Conclusion

This work demonstrates that "confusion" can be more beneficial than "consistency" for training robust object detectors. By incorporating CycConf as an auxiliary task, models are forced to learn structural representations that are resilient to domain shifts. While the method shows some limitations with rare, long-tail classes, it establishes a new, efficient direction for improving the reliability of computer vision systems in unpredictable real-world environments.

Summary updated

BibTeX
@inproceedings{wang2021robust,
  author = {Xin Wang and Thomas E. Huang and Benlin Liu and Fisher Yu and Xiaolong Wang and Joseph E. Gonzalez and Trevor Darrell},
  title = {{Robust Object Detection via Instance-Level Temporal Cycle Confusion}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2021},
  doi = {10.1109/iccv48922.2021.00901},
}
Figure