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

基于层注意的跨层回溯检索

Cross-Layer Retrospective Retrieving via Layer Attention

The University of Hong Kong(香港大学);Zhejiang University(浙江大学);Huawei Noah’s Ark Lab(华为诺亚方舟实验室)

Yanwen Fang, Yuxi Cai, Jintai Chen, Jingyu Zhao, Guangjian Tian, Guodong Li

摘要:

越来越多的证据表明,加强层间交互可以增强深层神经网络的表征能力,而自我注意则擅长通过检索查询激活的信息来学习相互依赖性。出于这一动机,我们设计了一个跨层的注意力机制,称为多头递归层注意力(MRLA),发送当前层的查询表示所有以前的层检索查询相关的信息,从不同层次的感受野。一个轻量级版本的MRLA也提出了减少二次计算成本。所提出的层注意力机制可以丰富许多最先进的视觉网络的表示能力,包括CNN和视觉Transformer。它的有效性已被广泛评估的图像分类,目标检测和实例分割任务,其中可以持续观察到的改进。例如,我们的MRLA可以在ResNet-50上提高1.6%的Top-1精度,而仅引入0.16M参数和0.07B FLOP。令人惊讶的是,它可以在密集预测任务中提高3-4%的框AP和掩码AP的性能。我们的代码可在https://github.com/joyfang1106/MRLA上获得。

英文摘要:

More and more evidence has shown that strengthening layer interactions can enhance the representation power of a deep neural network, while self-attention excels at learning interdependencies by retrieving query-activated information. Motivated by this, we devise a cross-layer attention mechanism, called multi-head recurrent layer attention (MRLA), that sends a query representation of the current layer to all previous layers to retrieve query-related information from different levels of receptive fields. A light-weighted version of MRLA is also proposed to reduce the quadratic computation cost. The proposed layer attention mechanism can enrich the representation power of many state-of-the-art vision networks, including CNNs and vision transformers. Its effectiveness has been extensively evaluated in image classification, object detection and instance segmentation tasks, where improvements can be consistently observed. For example, our MRLA can improve 1.6% Top-1 accuracy on ResNet-50, while only introducing 0.16M parameters and 0.07B FLOPs. Surprisingly, it can boost the performances by a large margin of 3-4% box AP and mask AP in dense prediction tasks. Our code is available at https://github.com/joyfang1106/MRLA.

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

↑