CoDEPS: Online Continual Learning for Depth Estimation and Panoptic Segmentation

Niclas Vödisch, Kürsat Petek, Wolfram Burgard, Abhinav ValadaarXiv 2023 · DOI

TL;DR

CoDEPS is the first framework for online continual learning that jointly handles monocular depth estimation and panoptic segmentation. By combining a fixed-size experience replay buffer with a novel cross-domain mixing strategy, it allows robots to adapt to new environments in real-time without "forgetting" their initial training or overfitting to their current surroundings.

What Problem Does This Paper Address?

When a robot—like an autonomous car—moves from a sunny city to a rainy suburb, its perception systems often struggle. This "domain gap" occurs because deep learning models are typically sensitive to changes in lighting, weather, and camera parameters.

While Unsupervised Domain Adaptation (UDA) aims to bridge this gap, most existing methods work offline, requiring massive amounts of data from the new environment beforehand. In the real world, robots need to learn online as they move. However, online learning faces two major hurdles:

  1. Catastrophic Forgetting: As the model learns the new environment, it quickly loses the ability to perform well in the old one.
  2. Overfitting: Because a camera stream provides highly correlated, sequential images, a naive model will overfit to the specific street it is currently on, failing to generalize to the rest of the new city.

Methods

CoDEPS (Continual Depth and Panoptic Segmentation) uses a multi-task architecture with a shared ResNet-101 encoder and specific heads for depth, semantic segmentation, and instance segmentation.

Overview of the CoDEPS architecture and online adaptation loop.

The core of the approach lies in how it manages data and updates weights:

  • Experience Replay with Smart Sampling: To stay within the hardware limits of a robot, CoDEPS uses a fixed-size buffer. It populates the source buffer using "Rare Class Sampling" to ensure the model doesn't forget infrequent but critical objects (like pedestrians). The target buffer is updated based on image diversity; a new image is only saved if it is visually distinct (low cosine similarity) from what's already stored.
  • Cross-Domain Mixing: Since target data lacks labels, CoDEPS generates "pseudo-labels." As shown in Figure 3, it performs style transfer to match the target's appearance to the source, applies geometric transformations to account for different camera lenses, and then mixes patches of target data into source images.
  • Stable Updates: The system uses an Exponential Moving Average (EMA) model to generate stable pseudo-labels, preventing the "class collapse" often seen when models train on their own noisy predictions.
The three-step cross-domain mixing strategy for generating pseudo-labels.

Datasets

The authors evaluated CoDEPS across three major autonomous driving datasets to simulate real-world domain shifts:

  • Cityscapes: Used as the primary source domain for pre-training.
  • KITTI-360: A target domain used to test adaptation to new urban environments.
  • SemKITTI-DVPS: A second target domain used to test multi-domain "continual" adaptation (e.g., Source $\rightarrow$ Target A $\rightarrow$ Target B).

Key Insights and Ideas

  • Diversity Over Recency: In online learning, the most recent data isn't always the best. By using cosine similarity to filter the replay buffer, CoDEPS ensures the model sees a representative variety of the environment rather than just the last 30 seconds of a drive.
  • Geometry Matters: Most domain adaptation methods ignore camera intrinsics. CoDEPS explicitly transforms images to account for different fields of view and resolutions, which is crucial for tasks like depth estimation where geometry is everything.
  • Task Synergy: While the paper focuses on joint learning, they observed that the instance segmentation head remains relatively stable across domains, while the semantic head requires the most adaptation. Freezing the instance head during online updates helps maintain overall stability.

Key Results

CoDEPS demonstrated significant improvements over "source-only" models and existing UDA baselines like GUDA and DACS.

  • Adaptation Performance: On the KITTI-360 dataset, CoDEPS improved the Mean Intersection over Union (mIoU) for segmentation and significantly reduced depth estimation errors (RMSE) compared to models that didn't adapt.
  • Mitigating Forgetting: While naive online adaptation caused performance on the original Cityscapes data to plummet, CoDEPS maintained high accuracy on the source domain (Protocol 3 in their tests).
  • Forward Transfer: In multi-domain scenarios, adapting to one environment actually helped the model learn the next environment faster, a phenomenon known as positive forward transfer.
Qualitative results showing how CoDEPS improves segmentation of sidewalks and terrain over time.

Limitations and Future Work

The authors acknowledge that while CoDEPS is efficient enough to run on a single GPU, the computational overhead of maintaining an EMA model and a replay buffer is non-trivial for low-power embedded systems.

Future work aims to explore cross-task synergies—using the relationship between depth and semantics even more deeply to improve pseudo-labeling—and investigating the use of pretext tasks (like self-supervised rotation prediction) to further enhance domain robustness without needing any labels at all.

Summary updated

BibTeX
@misc{vodisch2023codeps,
  author = {Niclas Vödisch and Kürsat Petek and Wolfram Burgard and Abhinav Valada},
  title = {{CoDEPS: Online Continual Learning for Depth Estimation and Panoptic Segmentation}},
  year = {2023},
  eprint = {2303.10147},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2303.10147},
}
Figure