Abstract
Multi-task dense prediction requires balancing global contextual reasoning with local spatial precision. We present DeGMix (Deformable and Gating Mixer), a novel encoder-decoder framework that leverages deformable convolutions as an efficient alternative to standard self-attention. By incorporating a task-aware gating mechanism and content-driven queries, DeGMix achieves state-of-the-art performance on major benchmarks like NYUD-v2 and PASCAL-Context while maintaining significantly lower computational complexity than existing Transformer-based models.
Introduction
Dense prediction tasks—such as semantic segmentation, depth estimation, and surface normal prediction—require per-pixel labeling. Multi-Task Learning (MTL) aims to improve efficiency and performance by solving these tasks within a single architecture. However, traditional approaches face a significant architectural challenge: CNNs capture local patterns well but lack global reach, while Transformers provide global modeling at high computational costs. Furthermore, "task interference" often occurs when shared features fail to satisfy the distinct requirements of different tasks, leading to performance degradation.
Methods
The DeGMix architecture addresses these challenges through three core innovations:
- Deformable Mixer Encoder: Instead of computationally expensive $O(N^2)$ self-attention, the encoder utilizes channel-aware mixing (1x1 convolutions) and spatial-aware deformable convolutions. This allows the model to dynamically sample informative pixels across the image, providing global context with the efficiency of a convolutional operator.
- Task-aware Gating Transformer Decoder: This module handles task-specific outputs. It employs a Task Interaction Block to model inter-task relationships and a Task Query Gating Block. Unlike standard Transformers that use static learned tokens, DeGMix uses "deformed features" from the encoder as queries, ensuring the decoder is highly sensitive to specific image content.
- Shared Spatial Gating (SSG): Integrated into both the encoder and decoder, SSG acts as a dynamic filter. It ensures that only task-relevant information propagates through the network, effectively disentangling features and reducing noise.
Key Results
DeGMix was evaluated on the NYUD-v2, PASCAL-Context, and Cityscapes benchmarks, demonstrating superior performance across multiple metrics.
- State-of-the-Art Performance: On NYUD-v2 with a Swin-L backbone, DeGMix reached 57.55 mIoU in semantic segmentation, a +5.2 mIoU improvement over the previous state-of-the-art method, InvPT++.
- Extreme Efficiency: The model is remarkably parameter-efficient. As shown in Figure 1, DeGMix achieves higher accuracy than competitive models while utilizing up to 4.3x fewer parameters. On PASCAL-Context, it achieved higher accuracy than fully fine-tuned MTL models while reducing trainable parameters by 9.39x.
- Qualitative Superiority: Visual results indicate that DeGMix produces significantly sharper boundaries and better object consistency across tasks, such as perfectly aligned edges between segmentation and depth maps.
Conclusion
DeGMix demonstrates that combining deformable convolutions with content-driven gating provides a powerful and efficient framework for multi-task dense prediction. By replacing standard attention with more flexible sampling and implementing task-specific gating, the model overcomes common bottlenecks in global modeling and task interference. Future research may explore scaling these gated approaches to universal vision models with dozens of simultaneous tasks.
Summary updated