Semi-supervised Multi-task Learning for Semantics and Depth

Yufeng Wang, Yi-Hsuan Tsai, Wei-Chih Hung, Wenrui Ding, Shuo Liu, Ming-Hsuan Yang

TL;DR

Multi-task learning (MTL) usually requires a single dataset where every image has a full set of labels—a rare luxury in the real world. This paper introduces SemiMTL, a framework that uses adversarial learning to train a single model across multiple datasets with partial annotations, effectively "filling in the blanks" for missing labels while navigating the tricky domain gaps between different data sources.

What Problem Does This Paper Address?

Multi-task learning is the "Swiss Army Knife" of computer vision; by training a model to perform related tasks (like identifying objects and estimating their distance) simultaneously, the model learns more robust, generalized features.

However, there’s a major bottleneck: data fragmentation. Semantic segmentation requires pixel-perfect category labels, while depth estimation requires LiDAR or stereo data. It is rare to find a single dataset that contains both for every image. Usually, we have Dataset A (with segmentation labels) and Dataset B (with depth labels).

Simply training on both sequentially often leads to "catastrophic forgetting" or bias toward one dataset. Furthermore, different datasets have a domain gap—images from a sunny city in Germany look different from synthetic images or aerial photos of a different town. Standard MTL methods struggle to learn effectively when the supervisory signals are disjointed and the data distributions don't match.

Methods

The authors propose Semi-supervised Multi-Task Learning (SemiMTL). The architecture consists of a shared encoder (ResNet101) and task-specific decoders. To handle the missing labels, they turn to adversarial learning.

  1. Adversarial Semi-supervision: For a dataset lacking a specific label (e.g., Dataset A lacks depth), the model still generates a prediction. A discriminator then looks at this prediction and compares it to the ground-truth distribution from the dataset that does have the labels (Dataset B). This forces the model to produce "plausible" outputs for the missing tasks, effectively providing a semi-supervised training signal.
  2. Domain-Aware Discriminator: This is the "secret sauce." Instead of a simple binary discriminator (real vs. fake), they use a multi-way classifier. It distinguishes between ground-truth labels, predictions from Dataset A, and predictions from Dataset B. This allows the model to explicitly account for domain differences rather than just trying to blur them together.
  3. Alignment Strategies: The authors tested three "Modes" of alignment. Their default (Mode 2) aligns the prediction distribution of the unlabeled dataset directly with the ground-truth distribution of the labeled dataset, which proved most effective for dense prediction tasks.

Datasets

The researchers evaluated SemiMTL across three distinct scenarios:

  • Across Cities: Using Cityscapes (real-world street views) and a specialized Cityscapes-depth set.
  • Across Datasets (Remote Sensing): Using the ISPRS Potsdam and Vaihingen datasets, which consist of aerial imagery with segmentation and height maps.
  • Across Domains (Real vs. Synthetic): Using Cityscapes (real) and Synscapes (photorealistic synthetic data).

Key Insights and Ideas

  • The "Aha!" Moment on Output Space: The authors realized that while input images from different datasets look very different, their output spaces (the structure of a segmentation map or a depth map) share a lot of geometric and spatial logic. Adversarial learning exploits this "structured output space" to guide the model when labels are missing.
  • High-Level Helps Low-Level: A fascinating finding was that high-level semantic segmentation tasks provide a stronger boost to low-level depth estimation than vice versa. Knowing what an object is (a car vs. a tree) provides a massive hint about its likely distance and shape.
  • Domain Awareness Matters: Standard domain adaptation often fails in MTL because it ignores that "Dataset A's version of a car" and "Dataset B's version of a car" are both valid but slightly different. By making the discriminator "domain-aware," the model learns to generalize without losing the specific nuances of each dataset.

Key Results

SemiMTL consistently outperformed "Joint Task Learning" (JTL), which is the standard baseline for training on multiple datasets.

  • Street View: On Cityscapes, SemiMTL achieved an 11.5% performance gain over single-task baselines, significantly outperforming JTL (+9.4%).
  • Remote Sensing: The results were even more dramatic here. On the Vaihingen dataset, SemiMTL saw a +29.2% MTL gain, nearly doubling the effectiveness of the semi-supervised signal compared to standard adversarial methods.
  • Qualitative Improvements: Visually, the model produced much sharper object boundaries in depth maps and more consistent category labels in segmentation maps, especially in the "unsupervised" regions where it had never seen a ground-truth label for that specific dataset.

Limitations and Future Work

While SemiMTL is powerful, it currently focuses on two tasks: semantics and depth. The authors note that as you add more tasks, the adversarial training might become increasingly difficult to stabilize.

Future Directions: * Scaling the framework to handle a larger variety of tasks (e.g., optical flow, surface normals). * Exploring how to integrate "weak" supervision (like image-level tags) alongside the dense pixel-wise adversarial signals. * Reducing the computational overhead of running multiple discriminators during the training phase.

Summary updated

BibTeX
@inproceedings{wang2022semi,
  author = {Yufeng Wang and Yi-Hsuan Tsai and Wei-Chih Hung and Wenrui Ding and Shuo Liu and Ming-Hsuan Yang},
  title = {{Semi-supervised Multi-task Learning for Semantics and Depth}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2022},
  doi = {10.1109/wacv51458.2022.00272},
}
Figure