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

Transformer编码器中的渐进式令牌长度缩放用于高效通用分割

Progressive Token Length Scaling in Transformer Encoders for Efficient Universal Segmentation

NEC Laboratories(NEC实验室);University of California, San Diego(加利福尼亚大学圣迭戈分校);Amazon AGI(亚马逊AGI);Atmanity Inc.(Atmanity公司)

Abhishek Aich, Yumin Suh, Samuel Schulter, Manmohan Chandraker

AI总结:

提出PRO-SCALE策略,通过随编码器层渐进缩放令牌长度,在Mask2Former中减少约52%编码器计算量且性能不降,适用于通用分割并具扩展潜力。

摘要:

通用分割的强大架构依赖于Transformer,这些Transformer编码多尺度图像特征并将对象查询解码为掩码预测。由于效率是扩展此类模型的首要任务,我们观察到最先进的方法Mask2Former在Transformer编码器上使用了其50%的计算量。这是因为在每个编码器层中保留了所有骨干特征尺度的全长度令牌级表示。基于这一观察,我们提出了一种名为渐进式令牌长度缩放的高效Transformer编码器策略(PRO-SCALE),该策略可以插入到Mask2Former分割架构中,以显著降低计算成本。PRO-SCALE的基本原理是:随着编码器层的增加,逐步缩放令牌的长度。这使得PRO-SCALE能够在性能损失最小的情况下大幅减少计算量(在COCO数据集上,编码器GFLOPs减少约52%,总体GFLOPs减少约27%,且性能无下降)。在公共基准上进行的实验表明,PRO-SCALE在架构配置上具有灵活性,并展现出扩展到分割任务之外以涵盖目标检测的潜力。代码:https://github.com/abhishekaich27/proscale-pytorch

英文摘要:

A powerful architecture for universal segmentation relies on transformers that encode multi-scale image features and decode object queries into mask predictions. With efficiency being a high priority for scaling such models, we observed that the state-of-the-art method Mask2Former uses 50% of its compute only on the transformer encoder. This is due to the retention of a full-length token-level representation of all backbone feature scales at each encoder layer. With this observation, we propose a strategy termed PROgressive Token Length SCALing for Efficient transformer encoders (PRO-SCALE) that can be plugged-in to the Mask2Former segmentation architecture to significantly reduce the computational cost. The underlying principle of PRO-SCALE is: progressively scale the length of the tokens with the layers of the encoder. This allows PRO-SCALE to reduce computations by a large margin with minimal sacrifice in performance (~52% encoder and ~27% overall GFLOPs reduction with no drop in performance on COCO dataset). Experiments conducted on public benchmarks demonstrates PRO-SCALE's flexibility in architectural configurations, and exhibits potential for extension beyond the settings of segmentation tasks to encompass object detection. Code here: https://github.com/abhishekaich27/proscale-pytorch

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

↑