Multi-task Learning with 3D-Aware Regularization

Wei-Hong Li, Steven McDonagh, Ales Leonardis, Hakan Bilen

Deep neural networks have become the standard solution for designing models that can perform multiple dense computer vision tasks simultaneously—such as depth estimation, semantic segmentation, and boundary detection. This approach, known as Multi-task Learning (MTL), is highly efficient. However, because these models typically share an unstructured, high-dimensional feature space, they often learn "noisy" or physically impossible correlations between tasks. This susceptibility to overfitting ultimately hurts their ability to generalize.

To address this, researchers have introduced a novel 3D-aware regularizer. This plug-and-play module forces shared features to conform to a structured 3D geometry during training, significantly boosting performance across various tasks without adding a single millisecond to inference time.

The Challenge of Unstructured Feature Spaces

In standard MTL, an encoder extracts features from an image, which are then processed by task-specific decoders. Because these shared features are essentially unstructured blobs of high-dimensional data, the model might learn spurious relationships—for instance, linking a specific color to a depth value based purely on training set biases.

The core challenge is finding a way to bake physical common sense (like the fact that the visual world is three-dimensional) into the model's shared representation without making the network too slow or complex for practical deployment.

Comparison of standard NeRFs and the proposed 3D-aware MTL architecture.

A 3D-Aware "Free Lunch"

The proposed solution is a 3D-aware regularizer that acts as a geometric coach during the training phase. The pipeline operates as follows:

  1. The Base Model: A standard shared encoder (such as a CNN or Transformer) extracts features from a 2D image. These features are routed to standard task-specific decoders to produce the primary outputs.
  2. The Regularizer Branch: Simultaneously, those same extracted features are fed into a specialized "tri-plane" encoder. This module projects the features onto three orthogonal 2D planes ($x-y$, $x-z$, $y-z$), constructing a structured 3D representation of the scene.
  3. Neural Task Fields & Rendering: Similar to Neural Radiance Fields (NeRFs), the model queries 3D points along camera rays. Lightweight Multi-Layer Perceptrons (MLPs) predict task-specific values (like segmentation logits or depth) for those points in 3D space. These predictions are then collapsed back into 2D images using differentiable volume rendering.
  4. Zero Inference Cost: The network is optimized to minimize the loss for both the main 2D decoders and the rendered 3D regularizer outputs. The critical advantage is that once training is complete, the entire regularizer branch is discarded. The main encoder has been trained to produce geometrically consistent features, but the final deployed model remains as fast and lightweight as a standard MTL network.
Detailed view of the tri-plane feature extraction and volume rendering process used in the regularizer.

Key Insights and Performance

The fundamental "aha moment" of this research is that the physical 3D world serves as a universal language for almost all vision tasks. By forcing features through a 3D bottleneck, the model naturally filters out correlations that lack geometric sense. For example, the model implicitly learns that object boundaries in a segmentation map should align with sudden jumps in a depth map.

Furthermore, this approach is architecture agnostic. It can be plugged into classic CNN backbones (like HRNet) or modern Transformers (like ViT), improving both. Remarkably, it achieves this 3D understanding from single-view images, making it highly practical for standard datasets that lack multi-view captures.

State-of-the-Art Results

The researchers evaluated their method on two major dense prediction benchmarks:

  • NYUv2: When applied to the Transformer-based "InvPT" baseline, the regularizer improved semantic segmentation from 53.56 to 54.87 mIoU and reduced depth estimation error (RMSE) from 0.5183 to 0.5006.
  • PASCAL-Context: The method achieved significant gains across multiple complex tasks, notably securing a +1.51 mIoU boost in Part Segmentation.

Because the regularizer is strictly a training-time addition, the model achieves these state-of-the-art results with 0% additional computational cost during deployment.

Limitations and Future Directions

While highly effective, the approach has a few limitations. 3D modeling, even with efficient tri-plane representations, is memory-intensive, which restricts the resolution of the 3D features the regularizer can process. Additionally, the current model assumes relatively simple surfaces and may struggle with highly specular (shiny) materials or extremely fine 3D details.

Future work could explore adaptive loss balancing—allowing the model to dynamically decide which task to prioritize during training rather than using fixed weights. There is also exciting potential for semi-supervised learning, where the regularizer could leverage video frames with partial labels (e.g., only depth is known) and use 3D consistency to "fill in the blanks" for missing tasks like segmentation.

Summary updated

BibTeX
@inproceedings{li2024multi,
  author = {Wei-Hong Li and Steven McDonagh and Ales Leonardis and Hakan Bilen},
  title = {{Multi-task Learning with 3D-Aware Regularization}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=TwBY17Hgiy},
}
Figure