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

HyenaPixel:基于卷积的全局图像上下文建模

HyenaPixel: Global Image Context with Convolutions

University of Applied Sciences Bonn-Rhein-Sieg, Germany(波恩-莱茵-锡格应用科学大学);University of Bonn, Computer Science Institute VI, Center for Robotics, Germany(波恩大学计算机科学研究所第六研究所,机器人中心);Lamarr Institute for Machine Learning(拉玛尔机器学习研究所)

Julian Spravil, Sebastian Houben, Sven Behnke

AI总结:

针对注意力机制二次复杂度难以适配高分辨率视觉任务的问题,本文扩展卷积类注意力替代方案Hyena提出HyenaPixel,以次二次复杂度实现大有效感受野,在ImageNet-1k及下游任务上取得优异性能。

摘要:

在计算机视觉领域,更大的有效感受野(ERF)通常对应更优的模型性能。注意力机制原生支持全局上下文建模,但其二次复杂度限制了它在受益于高分辨率输入的任务中的适用性。本研究将基于卷积的注意力替代方案Hyena从因果序列场景扩展至双向数据与二维图像空间。我们将Hyena的卷积核尺寸扩展至超过特征图大小,最大可达191×191,在保持像素维度上次二次复杂度的同时最大化有效感受野。我们将提出的二维Hyena(即HyenaPixel)与双向Hyena集成到MetaFormer框架中。在图像分类任务上,不使用额外训练数据的前提下,HyenaPixel与双向Hyena在ImageNet-1k数据集上分别取得了84.9%和85.2%的top-1准确率,性能优于其他卷积网络与大核卷积网络。将HyenaPixel与注意力机制结合可进一步提升准确率。我们将双向Hyena的成功归因于其无需固定邻域定义即可学习依赖数据的像素几何排列方式。下游任务实验结果表明,配备大滤波器、采用固定邻域的HyenaPixel可实现更优的定位性能。

英文摘要:

In computer vision, a larger effective receptive field (ERF) is associated with better performance. While attention natively supports global context, its quadratic complexity limits its applicability to tasks that benefit from high-resolution input. In this work, we extend Hyena, a convolution-based attention replacement, from causal sequences to bidirectional data and two-dimensional image space. We scale Hyena's convolution kernels beyond the feature map size, up to 191$\times$191, to maximize ERF while maintaining sub-quadratic complexity in the number of pixels. We integrate our two-dimensional Hyena, HyenaPixel, and bidirectional Hyena into the MetaFormer framework. For image categorization, HyenaPixel and bidirectional Hyena achieve a competitive ImageNet-1k top-1 accuracy of 84.9% and 85.2%, respectively, with no additional training data, while outperforming other convolutional and large-kernel networks. Combining HyenaPixel with attention further improves accuracy. We attribute the success of bidirectional Hyena to learning the data-dependent geometric arrangement of pixels without a fixed neighborhood definition. Experimental results on downstream tasks suggest that HyenaPixel with large filters and a fixed neighborhood leads to better localization performance.

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

↑