HorNet:递归门卷积的高效高阶空间交互
HorNet: Efficient High-Order Spatial Interactions with Recursive Gated Convolutions
摘要:
视觉Transformer的最新进展表现出巨大的成功,在各种任务驱动的新的空间建模机制的基础上点积自注意。在本文中,我们表明,视觉Transformer背后的关键成分,即输入自适应,远程和高阶空间交互,也可以有效地实现与基于卷积的框架。我们提出了递归门控卷积($\textit{g}^\textit{n}$ Conv),执行高阶空间相互作用的门控卷积和递归设计。新的操作是高度灵活和可定制的,它与各种卷积变体兼容,并将自注意力中的二阶相互作用扩展到任意阶,而不会引入显著的额外计算。$\textit{g}^\textit{n}$ Conv可以作为一个即插即用模块来改进各种视觉Transformer和基于卷积的模型。基于该操作,我们构建了一个新的通用视觉骨干家族,名为HorNet。对ImageNet分类、COCO目标检测和ADE 20K语义分割的大量实验表明,HorNet在整体架构和训练配置相似的情况下,性能明显优于Swin Transformers和ConvNeXt。HorNet还显示出良好的可扩展性,以更多的训练数据和更大的模型大小。除了在视觉编码器中的有效性外,我们还表明$\textit{g}^\textit{n}$ Conv可以应用于特定任务的解码器,并以更少的计算量持续提高密集预测性能。我们的研究结果表明,$\textit{g}^\textit{n}$ Conv可以成为一个新的视觉建模的基本模块,有效地结合了视觉Transformer和CNN的优点。代码可在https://github.com/raoyongming/HorNet上获得
英文摘要:
Recent progress in vision Transformers exhibits great success in various tasks driven by the new spatial modeling mechanism based on dot-product self-attention. In this paper, we show that the key ingredients behind the vision Transformers, namely input-adaptive, long-range and high-order spatial interactions, can also be efficiently implemented with a convolution-based framework. We present the Recursive Gated Convolution ($\textit{g}^\textit{n}$Conv) that performs high-order spatial interactions with gated convolutions and recursive designs. The new operation is highly flexible and customizable, which is compatible with various variants of convolution and extends the two-order interactions in self-attention to arbitrary orders without introducing significant extra computation. $\textit{g}^\textit{n}$Conv can serve as a plug-and-play module to improve various vision Transformers and convolution-based models. Based on the operation, we construct a new family of generic vision backbones named HorNet. Extensive experiments on ImageNet classification, COCO object detection and ADE20K semantic segmentation show HorNet outperform Swin Transformers and ConvNeXt by a significant margin with similar overall architecture and training configurations. HorNet also shows favorable scalability to more training data and larger model sizes. Apart from the effectiveness in visual encoders, we also show $\textit{g}^\textit{n}$Conv can be applied to task-specific decoders and consistently improve dense prediction performance with less computation. Our results demonstrate that $\textit{g}^\textit{n}$Conv can be a new basic module for visual modeling that effectively combines the merits of both vision Transformers and CNNs. Code is available at https://github.com/raoyongming/HorNet
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。