Task Indicating Transformer for Task-conditional Dense Predictions

Yuxiang Lu, Shalayiding Sirejiding, Bayram Bayramli, Suizhi Huang, Yue Ding, Hongtao Lu · DOI

Introduction

The Task Indicating Transformer (TIT) is a novel framework for multi-task dense prediction that achieves state-of-the-art performance while remaining remarkably parameter-efficient. By introducing a "Mix Task Adapter" and a gated decoder mechanism, TIT allows a single Vision Transformer backbone to switch between tasks (like semantic segmentation and depth estimation) simply by swapping out tiny task-specific "indicator" matrices and vectors.

The Multi-Task Learning Challenge

In computer vision, Multi-Task Learning (MTL) aims to solve several problems at once—such as identifying objects, estimating depth, and finding edges—using a single model. This is traditionally done in two ways:

  1. Multi-branch models: One shared "trunk" with many specialized "heads." These can be bulky and hard to scale.
  2. Task-conditional models: A shared model that changes its behavior based on a task input.

While task-conditional models are more efficient, existing versions rely heavily on Convolutional Neural Networks (CNNs), which struggle to capture long-range global context. Furthermore, these models often fail to effectively fuse features across different scales in the decoding stage. TIT addresses this by bringing the global modeling power of Transformers to multi-task learning without the massive parameter overhead.

Methodology

The TIT framework utilizes a Swin Transformer backbone modified with two key innovations: the Mix Task Adapter (MTA) and the Task Gate Decoder (TGD).

Figure 1: (a) Overall architecture of the Task Indicating Transformer (TIT) and (b) the Transformer block incorporating the Mix Task Adapter.

1. Mix Task Adapter (MTA)

Standard "Adapters" are small bottleneck layers added to Transformers to tune them for new tasks. Usually, a separate adapter is required for every task. TIT optimizes this through matrix decomposition. Instead of a full task-specific matrix, the adapter's projection layers are decomposed into shared components and one tiny Task Indicating Matrix. To switch tasks, the model only swaps this small matrix, keeping the bulk of the parameters shared. This captures both task-specific nuances and universal features while slashing the parameter count.

2. Task Gate Decoder (TGD)

To solve the multi-scale fusion problem, the authors treat the fusion of different feature levels as a gated update process, similar to a Gated Recurrent Unit (GRU).

  • A Task Indicating Vector generates a task-specific embedding.
  • This embedding guides a reset gate (deciding what to forget) and an update gate (deciding what to keep) to adaptively refine features across scales based on the current task.
Figure 2: Detailed view of the (a) Mix Task Adapter and (b) Task Gate Decoder components.

Experimental Results

The model was evaluated on two gold-standard benchmarks for multi-task dense prediction: NYUD-v2 (indoor) and PASCAL-Context (general/outdoor).

TIT consistently outperformed previous state-of-the-art (SOTA) task-conditional methods like ASTMT, RCM, and TSN.

  • NYUD-v2: TIT achieved a performance improvement of 6.37% over the previous best task-conditional model. It approached the performance of a "Single-task" baseline while using only 30.9M parameters (vs 110M).
  • PASCAL-Context: TIT showed a 1.95% improvement over the second-best model.
  • Efficiency: The Mix Task Adapter achieved comparable performance to standard adapters while using 95% fewer parameters for the adapter layers.

Conclusion and Future Work

TIT demonstrates that the global receptive field of Transformers is a massive advantage for dense prediction. By using matrix decomposition and GRU-style gating, the authors show that a very small amount of task-specific "guidance" is enough to repurpose a large, shared Transformer backbone. While TIT is highly efficient during inference, it currently requires a separate forward pass for every task. Future work may explore dynamic balancing of task losses and simultaneous multi-task predictions.

Summary updated

BibTeX
@inproceedings{lu2024task,
  author = {Yuxiang Lu and Shalayiding Sirejiding and Bayram Bayramli and Suizhi Huang and Yue Ding and Hongtao Lu},
  title = {{Task Indicating Transformer for Task-conditional Dense Predictions}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2024},
  doi = {10.1109/icassp48485.2024.10445743},
}
Figure