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

可伸缩图像分类的硬注意力算法

Hard-Attention for Scalable Image Classification

New York University(纽约大学);AGH University of Science and Technology(AGH科技大学)

Athanasios Papadopoulos, Paweł Korus, Nasir Memon

摘要:

我们能否利用高分辨率的信息,而不需要不可持续的二次复杂性来输入规模?我们提出了一种新的多尺度硬注意力架构--Traffic Network(TNet),它以自上而下的方式遍历图像尺度空间,只访问沿途信息量最大的图像区域。TNet通过改变参与图像位置的数量,在准确性和复杂性之间提供了可调节的权衡。我们将我们的模型与ImageNet上的硬注意力基线进行比较,以更少的资源(FLOPs,处理时间和内存)实现更高的准确性。我们进一步在fMoW数据集上测试我们的模型,在该数据集上,我们处理大小高达$896 \times 896$ px的卫星图像,与在相同分辨率下操作的基线相比,处理速度高达$2.5$ x,同时也实现了更高的准确度。TNet是模块化的,这意味着大多数分类模型都可以作为特征提取的骨干,使报告的性能增益与现有优化深度模型提供的优势正交。最后,硬注意力保证了我们模型预测的可解释性,除了推理之外没有任何额外的成本。代码可在$\href{https://github.com/Tpap/TNet}{github.com/Tpap/TNet}$获得。

英文摘要:

Can we leverage high-resolution information without the unsustainable quadratic complexity to input scale? We propose Traversal Network (TNet), a novel multi-scale hard-attention architecture, which traverses image scale-space in a top-down fashion, visiting only the most informative image regions along the way. TNet offers an adjustable trade-off between accuracy and complexity, by changing the number of attended image locations. We compare our model against hard-attention baselines on ImageNet, achieving higher accuracy with less resources (FLOPs, processing time and memory). We further test our model on fMoW dataset, where we process satellite images of size up to $896 \times 896$ px, getting up to $2.5$x faster processing compared to baselines operating on the same resolution, while achieving higher accuracy as well. TNet is modular, meaning that most classification models could be adopted as its backbone for feature extraction, making the reported performance gains orthogonal to benefits offered by existing optimized deep models. Finally, hard-attention guarantees a degree of interpretability to our model's predictions, without any extra cost beyond inference. Code is available at $\href{https://github.com/Tpap/TNet}{github.com/Tpap/TNet}$.

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

↑