Curbing Task Interference using Representation Similarity-Guided Multi-Task Feature Sharing

NareshKumar Gurulingan, Elahe Arani, Bahram Zonooz

Abstract

Multi-task learning (MTL) for dense prediction tasks offers a path toward computational efficiency and improved accuracy by sharing representations across related objectives. However, sharing decoders—not just encoders—remains a significant challenge due to "task interference," where conflicting gradients from disparate tasks degrade overall performance and generalization. This paper introduces Progressive Decoder Fusion (PDF), a framework that utilizes representation similarity to intelligently group and fuse task decoders layer-by-layer. By dynamically adapting the sharing structure during training, PDF minimizes interference and maximizes positive transfer, resulting in models that are more accurate, robust to noise, and computationally efficient.

Introduction: The Challenge of Task Interference

In real-time applications such as autonomous driving, Multi-Task Networks (MTNs) are essential for performing simultaneous operations like lane detection, depth estimation, and semantic segmentation. While sharing a backbone encoder is standard practice, forcing tasks to share a decoder often leads to "conflicting information exchange." When tasks are fundamentally different, parameter sharing can hurt generalization and increase vulnerability to adversarial attacks. Previous "offline" methods attempted to group tasks based on initial similarity, but this research demonstrates that task relationships are dynamic and change as fusion occurs. The goal of PDF is to find an optimal sharing configuration that evolves with the model's learning process.

Methodology: Progressive Decoder Fusion (PDF)

Progressive Decoder Fusion (PDF) moves away from static, one-time grouping in favor of an iterative, stage-wise process. By retraining the network after each fusion step, the model can discover new similarities that emerge only after tasks begin to share parameters.

The PDF algorithm progressively fuses decoders at different candidate stages based on task similarity.

The PDF algorithm follows five iterative steps:

  1. Initial Training: The model begins with a shared encoder but independent decoders for every task (e.g., Semantic Segmentation, Edge Detection, Depth Estimation, Surface Normals, and an Autoencoder).
  2. Similarity Measurement: The framework employs Central Kernel Alignment (CKA) to quantify the similarity between the internal representations of different task decoders at a specific stage.
  3. Fusion: The most similar tasks are grouped into a single shared decoder branch for that specific stage.
  4. Retraining: The network is re-initialized and retrained with this updated fused structure.
  5. Iteration: This process is repeated for subsequent decoder stages, progressively refining the architecture.

Key Insights: Dynamic Similarities and Robustness

A primary finding of this study is that task similarities are not fixed. Traditional offline grouping fails because it does not account for how tasks adapt to shared parameters. As shown in similarity matrix comparisons, the representation relationships in later stages look significantly different when previous stages have been fused versus when they are kept separate.

Comparison of task similarity matrices without and with progressive fusion, showing how fusion changes representation relationships.

Furthermore, the inclusion of an Autoencoder task acts as a powerful regularizer. It forces the shared representation to focus on general scene features rather than task-specific noise, which significantly boosts resilience to adversarial attacks. PDF also improves "prediction consistency," ensuring that outputs like detected edges align more accurately with semantic boundaries, indicating a more unified understanding of the scene.

Experimental Results

The researchers evaluated PDF on the Cityscapes (urban driving) and NYUv2 (indoor scenes) benchmarks, testing against both In-Distribution (IID) and Out-of-Distribution (OOD) data containing natural corruptions.

  • Generalization and Robustness: On Cityscapes, PDF achieved a 1.00% relative improvement in mIoU for segmentation and a 1.13% improvement in robustness to digital corruptions over a standard "One-Decoder" baseline. On NYUv2, PDF improved robustness against strong PGD adversarial attacks by 16.16%.
  • Efficiency: By fusing decoders where possible, PDF reduces the computational footprint. On Cityscapes, the PDF-optimized model achieved 25.44 FPS, a notable increase over the 22.31 FPS achieved by a model with fully separate decoders.

Conclusion

Progressive Decoder Fusion effectively curbs task interference by allowing the network architecture to evolve alongside its representations. While the iterative retraining process introduces a higher initial computational cost during the training phase, the resulting models offer superior accuracy, robustness, and inference speed. Future work may explore more training-efficient fusion strategies and the application of progressive fusion to encoder architectures.

Summary updated

BibTeX
@inproceedings{gurulingan2022curbing,
  author = {NareshKumar Gurulingan and Elahe Arani and Bahram Zonooz},
  title = {{Curbing Task Interference using Representation Similarity-Guided Multi-Task Feature Sharing}},
  booktitle = {CoLLAs},
  year = {2022},
  url = {https://openreview.net/forum?id=6yzRz9r4Hi},
}
Figure