Multi-task Learning for Real-time Autonomous Driving Leveraging Task-adaptive Attention Generator

Wonhyeok Choi, Mingyu Shin, Hyukzae Lee, Jaehoon Cho, Jaehyeon Park, Sunghoon Im

Abstract

Efficient perception is a cornerstone of autonomous vehicle (AV) safety, requiring the simultaneous execution of multiple computer vision tasks. While Multi-Task Learning (MTL) offers a computationally efficient framework by sharing a common backbone, it often suffers from "negative transfer," where competing task objectives degrade overall performance. This paper introduces a novel MTL network designed for real-time performance, featuring an enhanced two-pathway backbone and a Task-adaptive Attention Generator (TAG). By dynamically filtering shared features for task-specific needs, the proposed model achieves state-of-the-art results on the Cityscapes-3D benchmark, maintaining a high inference speed of 30.2 FPS and effectively overcoming the performance trade-offs typical of multi-task architectures.

Introduction

Autonomous vehicles must process complex visual data in milliseconds to make critical driving decisions. This necessitates solving three primary challenges simultaneously: 3D object detection (locating obstacles in 3D space), semantic segmentation (identifying road boundaries and surfaces), and depth estimation (calculating distances to objects).

Traditionally, these tasks are handled by separate networks or a shared Multi-Task Learning (MTL) backbone. While MTL is more efficient, it frequently encounters "negative transfer." Because a task like semantic segmentation requires broad contextual information while 3D detection requires fine-grained spatial details, the shared parameters often fail to satisfy both, leading to a performance drop compared to specialized single-task models. This research addresses this bottleneck by introducing an architecture that balances shared feature extraction with task-specific adaptation.

Methodology

The researchers propose two primary architectural innovations to optimize the balance between efficiency and accuracy.

1. Enhanced Two-Pathway Backbone

Drawing inspiration from high-performance real-time segmentation networks, the model utilizes a two-pathway architecture. One path focuses on high-resolution spatial details (capturing edges and small objects), while the other extracts low-resolution semantic context (the "big picture"). To better support 3D object detection—which is particularly sensitive to object scale—the authors integrated hierarchical aggregation layers. These layers progressively merge features across scales, ensuring the backbone provides a robust foundation for diverse task requirements.

2. Task-adaptive Attention Generator (TAG)

The TAG module is the core innovation designed to mitigate negative transfer. Rather than passing identical features to every task head, the TAG module acts as a dynamic filter that "re-tunes" features for each specific task. It employs two distinct mechanisms:

  • Task-specific Channel Attention: This identifies and prioritizes the feature channels most relevant to a specific task (e.g., emphasizing depth-related features for the depth estimation head).
  • Task-generic Spatial Attention: This highlights the most important spatial regions within the image, ensuring the model focuses on relevant areas like the roadway or nearby obstacles.

By applying these attention maps through simple mathematical operations, the model achieves the flexibility of separate sub-networks without the associated computational overhead.

Experimental Setup and Results

Datasets

The model was evaluated using the Cityscapes-3D dataset, a rigorous benchmark for urban environment perception. Unlike standard datasets, Cityscapes-3D includes 3D bounding box annotations (including pitch and roll), making it ideal for testing monocular 3D detection alongside segmentation and depth estimation. The backbone was pre-trained on ImageNet to ensure a strong baseline for feature extraction.

Performance and Efficiency

The proposed model demonstrated significant improvements over established baselines such as DDRNet and PIDNet:

  • Accuracy Gains: The multi-task model achieved a +4.98% relative gain over its single-task counterparts, suggesting that the TAG module allows tasks to provide helpful "hints" to one another rather than interfering.
  • Real-time Speed: The system achieved 30.2 FPS on an NVIDIA Titan RTX, comfortably meeting the real-time requirements for deployment in autonomous systems.
  • Computational Efficiency: Compared to the high-performing DDRNet-39, the proposed model reduced inference time by 32.8% while simultaneously improving accuracy across all three tasks (3D Detection Score, mIoU, and RMSE).

Discussion and Future Work

The success of the TAG module indicates that the "tug-of-war" in multi-task learning can be resolved through intelligent feature adaptation rather than simply increasing model size. By treating 3D detection as the "anchor" task and designing the backbone to support its multi-scale needs, the researchers achieved a highly efficient "best of both worlds" scenario.

However, several avenues for future research remain. While the model performs well on high-end GPUs, testing on embedded automotive hardware (such as NVIDIA Orin) is necessary for true vehicle integration. Additionally, expanding the model to include more tasks—such as lane detection or motion prediction—and testing against more diverse environmental conditions (night, rain, or highway driving) will be essential to prove its robustness in real-world edge cases.

Summary updated

Abstract

Real-time processing is crucial in autonomous driving systems due to the imperative of instantaneous decision-making and rapid response. In real-world scenarios, autonomous vehicles are continuously tasked with interpreting their surroundings, analyzing intricate sensor data, and making decisions within split seconds to ensure safety through numerous computer vision tasks. In this paper, we present a new real-time multi-task network adept at three vital autonomous driving tasks: monocular 3D object detection, semantic segmentation, and dense depth estimation. To counter the challenge of negative transfer — the prevalent issue in multi-task learning — we introduce a task-adaptive attention generator. This generator is designed to automatically discern interrelations across the three tasks and arrange the task-sharing pattern, all while leveraging the efficiency of the hard-parameter sharing approach. To the best of our knowledge, the proposed model is pioneering in its capability to concurrently handle multiple tasks, notably 3D object detection, while maintaining real-time processing speeds. Our rigorously optimized network, when tested on the Cityscapes-3D datasets, consistently outperforms various base-line models. Moreover, an in-depth ablation study substantiates the efficacy of the methodologies integrated into our framework.
BibTeX
@inproceedings{choi2024multi,
  author = {Wonhyeok Choi and Mingyu Shin and Hyukzae Lee and Jaehoon Cho and Jaehyeon Park and Sunghoon Im},
  title = {{Multi-task Learning for Real-time Autonomous Driving Leveraging Task-adaptive Attention Generator}},
  booktitle = {IEEE International Conference on Robotics and Automation},
  year = {2024},
  url = {https://openreview.net/forum?id=Kq7vIPGPd6},
}
Figure