Efficient Inter-Task Attention for Multitask Transformer Models

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Bohn, Christian, Kurbiel, Thomas, Friedrichs, Klaus, Tercan, Hasan, Meisen, Tobias
Format: Preprint
Publié: 2025
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866916884033568768
author Bohn, Christian
Kurbiel, Thomas
Friedrichs, Klaus
Tercan, Hasan
Meisen, Tobias
author_facet Bohn, Christian
Kurbiel, Thomas
Friedrichs, Klaus
Tercan, Hasan
Meisen, Tobias
contents In both Computer Vision and the wider Deep Learning field, the Transformer architecture is well-established as state-of-the-art for many applications. For Multitask Learning, however, where there may be many more queries necessary compared to single-task models, its Multi-Head-Attention often approaches the limits of what is computationally feasible considering practical hardware limitations. This is due to the fact that the size of the attention matrix scales quadratically with the number of tasks (assuming roughly equal numbers of queries for all tasks). As a solution, we propose our novel Deformable Inter-Task Self-Attention for Multitask models that enables the much more efficient aggregation of information across the feature maps from different tasks. In our experiments on the NYUD-v2 and PASCAL-Context datasets, we demonstrate an order-of-magnitude reduction in both FLOPs count and inference latency. At the same time, we also achieve substantial improvements by up to 7.4% in the individual tasks' prediction quality metrics.
format Preprint
id arxiv_https___arxiv_org_abs_2508_04422
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Efficient Inter-Task Attention for Multitask Transformer Models
Bohn, Christian
Kurbiel, Thomas
Friedrichs, Klaus
Tercan, Hasan
Meisen, Tobias
Computer Vision and Pattern Recognition
In both Computer Vision and the wider Deep Learning field, the Transformer architecture is well-established as state-of-the-art for many applications. For Multitask Learning, however, where there may be many more queries necessary compared to single-task models, its Multi-Head-Attention often approaches the limits of what is computationally feasible considering practical hardware limitations. This is due to the fact that the size of the attention matrix scales quadratically with the number of tasks (assuming roughly equal numbers of queries for all tasks). As a solution, we propose our novel Deformable Inter-Task Self-Attention for Multitask models that enables the much more efficient aggregation of information across the feature maps from different tasks. In our experiments on the NYUD-v2 and PASCAL-Context datasets, we demonstrate an order-of-magnitude reduction in both FLOPs count and inference latency. At the same time, we also achieve substantial improvements by up to 7.4% in the individual tasks' prediction quality metrics.
title Efficient Inter-Task Attention for Multitask Transformer Models
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2508.04422