arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2411.03033cs.CVcs.LG

重新思考基于Transformer的语义分割解码器:一种压缩视角

Rethinking Decoders for Transformer-based Semantic Segmentation: A Compression Perspective

School of Artificial Intelligence(人工智能学院);Beijing University of Posts and Telecommunications(北京邮电大学)

Qishuai Wen, Chun-Guang Li

AI总结:

本文从压缩视角重新解释Transformer语义分割解码器,提出白盒注意力解码器DEPICT,在ADE20K上优于Segmenter且更轻量鲁棒。

摘要:

最先进的基于Transformer的语义分割方法通常采用Transformer解码器,这些解码器通过交叉注意力从图像嵌入中提取额外的嵌入,通过自注意力细化其中一种或两种类型的嵌入,并通过点积将图像嵌入投影到额外的嵌入上。尽管这些经验设计取得了显著成功,但仍缺乏理论上的论证或解释,从而阻碍了潜在的原则性改进。在本文中,我们认为语义分割与压缩之间存在基本联系,尤其是Transformer解码器与主成分分析(PCA)之间的联系。从这个视角出发,我们推导出一个白盒的、完全基于注意力的原则性语义分割解码器(DEPICT),其解释如下:1)自注意力算子细化图像嵌入,以构建一个与监督对齐并保留大部分信息的理想主子空间;2)交叉注意力算子旨在寻找细化图像嵌入的低秩近似,该近似预期是主子空间的一组正交基,并对应于预定义的类别;3)点积操作为图像嵌入生成紧凑表示,作为分割掩码。在ADE20K数据集上进行的实验发现,DEPICT始终优于其黑盒对应方法Segmenter,并且它轻量且更鲁棒。

英文摘要:

State-of-the-art methods for Transformer-based semantic segmentation typically adopt Transformer decoders that are used to extract additional embeddings from image embeddings via cross-attention, refine either or both types of embeddings via self-attention, and project image embeddings onto the additional embeddings via dot-product. Despite their remarkable success, these empirical designs still lack theoretical justifications or interpretations, thus hindering potentially principled improvements. In this paper, we argue that there are fundamental connections between semantic segmentation and compression, especially between the Transformer decoders and Principal Component Analysis (PCA). From such a perspective, we derive a white-box, fully attentional DEcoder for PrIncipled semantiC segemenTation (DEPICT), with the interpretations as follows: 1) the self-attention operator refines image embeddings to construct an ideal principal subspace that aligns with the supervision and retains most information; 2) the cross-attention operator seeks to find a low-rank approximation of the refined image embeddings, which is expected to be a set of orthonormal bases of the principal subspace and corresponds to the predefined classes; 3) the dot-product operation yields compact representation for image embeddings as segmentation masks. Experiments conducted on dataset ADE20K find that DEPICT consistently outperforms its black-box counterpart, Segmenter, and it is light weight and more robust.

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

↑