Skip to main content
QUICK REVIEW

[Paper Review] DeMT: Deformable Mixer Transformer for Multi-Task Learning of Dense Prediction

Yangyang Xu, Yibo Yang|arXiv (Cornell University)|Jan 9, 2023
Domain Adaptation and Few-Shot LearningComputer Science6 citations
TL;DR

DeMT proposes a novel hybrid architecture combining deformable convolutional networks and query-based Transformers for multi-task dense prediction, leveraging deformed features as task queries to enhance task-awareness and reduce computation. It achieves state-of-the-art performance on NYUD-v2 and PASCAL-Context with fewer GFLOPs than competing models.

ABSTRACT

Convolution neural networks (CNNs) and Transformers have their own advantages and both have been widely used for dense prediction in multi-task learning (MTL). Most of the current studies on MTL solely rely on CNN or Transformer. In this work, we present a novel MTL model by combining both merits of deformable CNN and query-based Transformer for multi-task learning of dense prediction. Our method, named DeMT, is based on a simple and effective encoder-decoder architecture (i.e., deformable mixer encoder and task-aware transformer decoder). First, the deformable mixer encoder contains two types of operators: the channel-aware mixing operator leveraged to allow communication among different channels ($i.e.,$ efficient channel location mixing), and the spatial-aware deformable operator with deformable convolution applied to efficiently sample more informative spatial locations (i.e., deformed features). Second, the task-aware transformer decoder consists of the task interaction block and task query block. The former is applied to capture task interaction features via self-attention. The latter leverages the deformed features and task-interacted features to generate the corresponding task-specific feature through a query-based Transformer for corresponding task predictions. Extensive experiments on two dense image prediction datasets, NYUD-v2 and PASCAL-Context, demonstrate that our model uses fewer GFLOPs and significantly outperforms current Transformer- and CNN-based competitive models on a variety of metrics. The code are available at https://github.com/yangyangxu0/DeMT .

Motivation & Objective

  • To address the limitations of CNN-based models in global modeling and cross-task interaction, and Transformer-based models in task-aware feature disentanglement and computational cost.
  • To develop a unified framework that effectively combines the local inductive bias of deformable CNNs with the global modeling capability of Transformers.
  • To enable efficient, task-aware feature learning in multi-task dense prediction by introducing a query-based attention mechanism using deformed features.
  • To reduce computational overhead while maintaining or improving performance across multiple dense prediction tasks.

Proposed method

  • The DeMT model uses a deformable mixer encoder that applies channel-aware mixing and spatial-aware deformable convolutions to generate task-specific deformed features.
  • The task-aware transformer decoder employs a task interaction block using multi-head self-attention to model cross-task dependencies from fused features.
  • A task query block uses deformed features as queries and task-interacted features as keys/values to generate task-specific output features via query-based attention.
  • The architecture integrates multi-scale features from the backbone and uses a simple, lightweight design to maintain efficiency.
  • The model is trained end-to-end on multiple dense prediction tasks including semantic segmentation, depth estimation, and saliency prediction.
  • Ablation studies validate the necessity of each component, including the deformable mixer, task interaction, and task query blocks.

Experimental results

Research questions

  • RQ1Can combining deformable CNNs and query-based Transformers improve multi-task dense prediction performance while reducing computational cost?
  • RQ2How does using deformed features as queries in a Transformer decoder enhance task-aware feature learning?
  • RQ3What is the impact of architectural components such as the task interaction block and multi-scale feature aggregation on model performance?
  • RQ4How does DeMT compare to state-of-the-art CNN and Transformer-based MTL models in terms of accuracy and efficiency?

Key findings

  • DeMT achieves state-of-the-art performance on both NYUD-v2 and PASCAL-Context across multiple dense prediction tasks, including semantic segmentation, depth estimation, and human parts segmentation.
  • With Swin-B backbone, DeMT achieves the best performance on all metrics on NYUD-v2, demonstrating strong generalization and scalability.
  • The model uses fewer GFLOPs than competitive Transformer- and CNN-based models while outperforming them on all evaluated metrics.
  • Ablation studies confirm that the task interaction block is most critical for performance, and the depth of the deformable mixer is optimal at d=4, though d=1 is used for efficiency.
  • The use of four-scale features significantly improves performance, indicating the importance of multi-scale representation learning.
  • Qualitative results show DeMT produces higher-quality, more accurate predictions than both the Swin baseline and the ATRC model, especially on SemSeg and Human Parts tasks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.