arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2307.12612cs.CVcs.AI
收藏

少即是多:面向高效DETR的聚焦注意力机制

Less is More: Focus Attention for Efficient DETR

Huazhong University of Science and Technology(华中科技大学);Huawei Noah’s Ark Lab(华为诺亚方舟实验室)

Dehua Zheng, Wenhui Dong, Hailin Hu, Xinghao Chen, Yunhe Wang

AI总结:

针对类DETR模型编码器计算冗余问题,提出聚焦注意力的Focus-DETR,通过双重注意力与token评分机制筛选有效查询,在相当复杂度下实现COCO数据集上检测精度的显著提升。

摘要:

类DETR模型已显著提升检测器性能,甚至超越了传统卷积模型。然而传统编码器结构中所有token被无差别同等对待,带来了冗余的计算负担。近期的稀疏化策略利用有信息的token子集,通过稀疏编码器降低注意力复杂度同时维持性能,但这类方法往往依赖不可靠的模型统计量。此外,单纯减少token数量会在很大程度上损害检测性能,限制了这些稀疏模型的应用。我们提出Focus-DETR,将注意力聚焦于更具信息量的token,以在计算效率和模型精度间取得更好的权衡。具体而言,我们用双重注意力重构编码器,其中包含一种token评分机制,该机制同时考虑来自多尺度特征图的目标的定位与类别语义信息。我们基于评分高效舍弃背景查询,并增强细粒度目标查询的语义交互。在相同设置下,与现有最优的稀疏类DETR检测器相比,我们的Focus-DETR复杂度相当,同时在COCO数据集上取得50.4AP(提升2.2)的结果。代码可在https://github.com/huawei-noah/noah-research/tree/master/Focus-DETR和https://gitee.com/mindspore/models/tree/master/research/cv/Focus-DETR获取。

英文摘要:

DETR-like models have significantly boosted the performance of detectors and even outperformed classical convolutional models. However, all tokens are treated equally without discrimination brings a redundant computational burden in the traditional encoder structure. The recent sparsification strategies exploit a subset of informative tokens to reduce attention complexity maintaining performance through the sparse encoder. But these methods tend to rely on unreliable model statistics. Moreover, simply reducing the token population hinders the detection performance to a large extent, limiting the application of these sparse models. We propose Focus-DETR, which focuses attention on more informative tokens for a better trade-off between computation efficiency and model accuracy. Specifically, we reconstruct the encoder with dual attention, which includes a token scoring mechanism that considers both localization and category semantic information of the objects from multi-scale feature maps. We efficiently abandon the background queries and enhance the semantic interaction of the fine-grained object queries based on the scores. Compared with the state-of-the-art sparse DETR-like detectors under the same setting, our Focus-DETR gets comparable complexity while achieving 50.4AP (+2.2) on COCO. The code is available at https://github.com/huawei-noah/noah-research/tree/master/Focus-DETR and https://gitee.com/mindspore/models/tree/master/research/cv/Focus-DETR.

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

↑