arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2508.04422cs.CV
收藏

多任务Transformer模型的高效任务间注意力机制

Efficient Inter-Task Attention for Multitask Transformer Models

APTIV;University of Wuppertal(乌珀塔尔大学)

Christian Bohn, Thomas Kurbiel, Klaus Friedrichs, Hasan Tercan, Tobias Meisen

AI总结:

针对多任务Transformer中注意力矩阵随任务数二次增长导致计算瓶颈的问题,提出可变形任务间自注意力,在NYUD-v2和PASCAL-Context上实现FLOPs和延迟降低一个数量级,并提升任务质量达7.4%。

摘要:

在计算机视觉及更广泛的深度学习领域中,Transformer架构已被公认为许多应用的最先进技术。然而,在多任务学习中,与单任务模型相比,可能需要更多的查询,其多头注意力机制常常接近实际硬件限制下计算可行的极限。这是因为注意力矩阵的大小随任务数量呈二次方增长(假设所有任务的查询数量大致相等)。作为解决方案,我们提出了新颖的可变形多任务模型任务间自注意力机制,该机制能够更高效地跨不同任务的特征图聚合信息。在NYUD-v2和PASCAL-Context数据集上的实验中,我们展示了FLOPs数量和推理延迟均降低了一个数量级。同时,我们还在各个任务的预测质量指标上实现了高达7.4%的显著提升。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑