Abstract
Dense prediction tasks in computer vision, such as semantic segmentation and depth estimation, are inherently correlated. While Multi-Task Learning (MTL) aims to exploit these relationships, existing approaches often suffer from rigid architectures and localized information sharing. This paper introduces the Adaptive Task-Relational Context (ATRC) module, a novel framework that leverages attention mechanisms and neural architecture search (NAS) to dynamically determine optimal cross-task communication. By treating task interaction as a relational context problem, ATRC achieves state-of-the-art performance on major benchmarks like NYUD-v2 and PASCAL-Context while significantly reducing parameter overhead.
1. Introduction
In computer vision, "dense prediction" refers to tasks that require pixel-level labeling, such as identifying object categories (semantic segmentation), estimating distance (depth estimation), or determining surface orientations (surface normals). While these tasks are typically treated as independent problems, they share significant underlying structure. For instance, the boundaries of an object in a segmentation map often coincide with sharp changes in depth or surface normals.
Multi-Task Learning (MTL) seeks to improve the performance and efficiency of these models by learning multiple tasks simultaneously. However, effectively sharing information between tasks remains a challenge. Previous "multi-modal distillation" methods were often limited by local constraints—passing information only between identical pixel coordinates—and rigid architectures that applied the same sharing logic to every task pair regardless of their unique relationships.
2. The Adaptive Task-Relational Context (ATRC) Module
The core contribution of this research is the ATRC module, which redefines task interaction through the lens of "relational context." Instead of simple pixel-to-pixel mapping, the module utilizes scaled dot-product attention to allow a target task to selectively "attend" to relevant features in a source task.
2.1 Candidate Context Types
To accommodate the diverse ways tasks might interact, the researchers defined five distinct candidate context types for information sharing:
- Global Context: Allows every pixel in the target task to attend to every pixel in the source task, capturing long-range dependencies.
- Local Context: Restricts attention to immediate spatial neighbors, focusing on fine-grained local details.
- Target-Label (T-label) Context: Groups features based on regions defined by the target task's predicted labels (e.g., aggregating depth information across all pixels identified as "car").
- Source-Label (S-label) Context: Groups features based on regions defined by the source task's labels.
- None: Provides an option to sever the connection entirely, preventing "task interference" where a noisy or unrelated task might degrade the performance of another.
2.2 Differentiable Neural Architecture Search
Rather than manually tuning the connections between every task pair, the authors employed Differentiable Neural Architecture Search (NAS). The model begins with a "supergraph" containing all possible connection types. Using a gradient-based method (Gumbel-Softmax), the network is pruned during training to converge on the most efficient and effective configuration for a specific dataset.
3. Experimental Evaluation
The ATRC framework was evaluated on two gold-standard benchmarks for multi-task dense prediction:
- NYUD-v2: Consisting of 1,449 indoor images with labels for semantic segmentation, depth, surface normals, and boundary detection.
- PASCAL-Context: A diverse dataset of approximately 10,000 images used for segmentation, part segmentation, saliency, normals, and boundaries.
3.1 Key Insights
The NAS results revealed that there is no "one-size-fits-all" strategy for task interaction. For example, depth estimation was found to rely heavily on semantic segmentation features, whereas boundary detection often performed better with minimal cross-task interference (selecting the "None" option). Furthermore, the "Label Context" types (T-label and S-label) proved highly effective, demonstrating that reasoning about object-level relationships is superior to raw pixel-level distillation.
4. Results and Discussion
ATRC established new state-of-the-art results on both NYUD-v2 and PASCAL-Context, outperforming previous leading methods such as MTI-Net and PAD-Net. Notably, the module is highly efficient; on the NYUD-v2 benchmark, ATRC achieved superior accuracy while utilizing 22% fewer parameters than MTI-Net. Additionally, the module is backbone-agnostic, allowing it to be integrated into standard architectures like HRNet or ResNet with minimal modification.
4.1 Limitations
Despite its success, the authors noted that boundary detection saw the least improvement from multi-task distillation, likely due to the significant discrepancy between boundary loss functions and other dense prediction objectives. Additionally, the differentiable NAS process required specific entropy regularization strategies to maintain stability and ensure convergence on a clear architecture.
5. Conclusion
The ATRC module represents a significant step forward in multi-task dense prediction by replacing rigid, hand-crafted sharing mechanisms with an adaptive, attention-based framework. By automatically discovering the optimal relational context for each task pair, the model achieves a better balance between performance and computational cost. Future work may explore dynamic context selection, where the network architecture adapts in real-time based on the specific content of the input image.
Summary updated