Abstract
Multi-task learning (MTL) for dense prediction aims to simultaneously perform tasks such as semantic segmentation, depth estimation, and boundary detection. Existing methods often struggle to balance local efficiency with global context modeling. We present DeMT (Deformable Mixer Transformer), a hybrid architecture that leverages deformable CNNs for local feature extraction and Transformers for global task interaction. By employing task-specific "deformed features" as queries in the decoder, DeMT achieves state-of-the-art results on major benchmarks while maintaining lower computational costs than pure Transformer models.
Introduction
Dense prediction tasks in computer vision require both precise local details and broad global context. Traditional CNN-based models excel at local feature extraction but lack the capacity for global modeling and cross-task interaction. Conversely, Transformer-based models provide excellent global modeling but are computationally expensive and often fail to effectively disentangle task-specific features from a shared representation. DeMT addresses these challenges by combining the strengths of both architectures into an efficient, task-aware framework.
Methodology
The DeMT architecture follows a non-shared encoder-decoder procedure designed to optimize task-specific feature extraction and cross-task communication.
Deformable Mixer Encoder
The encoder utilizes a Deformable Mixer for each task, replacing standard shared backbones. It consists of:
- Channel-aware mixing: Employs 1x1 convolutions to facilitate communication across feature channels.
- Spatial-aware deformable operator: Uses deformable convolutions to adaptively sample informative spatial locations. This process generates deformed features tailored to the specific requirements of each task.
Task-aware Transformer Decoder
The decoder manages task interactions and final predictions through two specialized components:
- Task Interaction Block: Concatenates deformed features from all tasks and applies self-attention to capture cross-task dependencies.
- Task Query Block: This is the core innovation of the paper. It uses the task-specific deformed features as queries and the task-interacted features as keys and values. This setup allows the model to selectively integrate global information into task-specific representations, effectively disentangling the shared feature pool.
Experiments and Results
DeMT was evaluated on the NYUD-v2 and PASCAL-Context benchmarks. NYUD-v2 involves four indoor scene tasks, while PASCAL-Context includes five tasks, including human parts segmentation and saliency estimation.
Quantitative Performance
DeMT consistently outperforms both CNN-based (e.g., ATRC) and Transformer-based (e.g., MQTransformer) competitors across various backbones, including HRNet and Swin Transformers.
On the NYUD-v2 dataset with a Swin-T backbone, DeMT achieved a 3.36% average per-task performance improvement ($\Delta_m$) over single-task baselines. This significantly exceeds the 0.31% improvement seen with MQTransformer. Furthermore, DeMT demonstrates superior efficiency; with a Swin-T backbone, it requires 100.7 GFLOPs compared to MQTransformer's 106.02 GFLOPs, while achieving higher accuracy in semantic segmentation (46.36 vs 43.61 IoU).
Qualitative Results
Qualitative analysis reveals that DeMT produces sharper boundaries and more accurate masks for human parts and saliency compared to previous methods. Using a Swin-B backbone on PASCAL-Context, the model reached a new benchmark of 75.33 IoU for semantic segmentation.
Conclusion
DeMT introduces a novel hybrid approach to multi-task dense prediction. By using spatially adapted deformed features as Transformer queries, the model achieves high task-awareness and efficient global modeling. While future work may explore more sophisticated feature aggregation (e.g., FPN) and flexible attention mechanisms, DeMT currently sets a strong new standard for performance and efficiency in multi-task learning.
Summary updated