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

图像分类任务中的归纳偏差研究

Studying inductive biases in image classification task

DENSO CORPORATION(电装公司)

Nana Arizumi

摘要:

近年来,自注意结构在计算机视觉领域得到了广泛的应用。它们具有局部独立的滤波器,可以使用大的内核,这与以前流行的卷积神经网络(CNN)相矛盾。CNN的成功归因于位置和空间不变性的硬编码归纳偏差。然而,最近的研究表明,CNN中的归纳偏差限制性太强。另一方面,对于局部SA网络,类似于dependency(DW)卷积的相对位置编码是必要的,这表明SA结构不是完全空间变化的。因此,我们想确定哪一部分的归纳偏见有助于当地SA结构的成功。为此,我们引入了上下文感知分解注意力(CADA),它将注意力映射分解为多个可训练的基本内核,并使用上下文感知(CA)参数将它们累积起来。这样,我们就可以识别CNN和SA网络之间的联系。我们使用应用于ImageNet分类任务的ResNet50进行了消融研究。与CNN相比,DW卷积可以具有较大的局部性,而不会增加计算成本,但精度会随着较大的内核而饱和。CADA遵循了这种地方性的特点。我们表明,上下文意识是至关重要的属性,但是,大的本地信息是没有必要构建CA参数。尽管没有空间不变性会使训练变得困难,但更宽松的空间不变性比严格的空间不变性提供了更好的准确性。此外,通过相对位置编码的额外的强空间不变性是优选的。我们将这些实验扩展到用于下采样的滤波器,并表明局部偏差对于下采样更关键,但可以使用放松的空间不变性来消除强局部偏差。

英文摘要:

Recently, self-attention (SA) structures became popular in computer vision fields. They have locally independent filters and can use large kernels, which contradicts the previously popular convolutional neural networks (CNNs). CNNs success was attributed to the hard-coded inductive biases of locality and spatial invariance. However, recent studies have shown that inductive biases in CNNs are too restrictive. On the other hand, the relative position encodings, similar to depthwise (DW) convolution, are necessary for the local SA networks, which indicates that the SA structures are not entirely spatially variant. Hence, we would like to determine which part of inductive biases contributes to the success of the local SA structures. To do so, we introduced context-aware decomposed attention (CADA), which decomposes attention maps into multiple trainable base kernels and accumulates them using context-aware (CA) parameters. This way, we could identify the link between the CNNs and SA networks. We conducted ablation studies using the ResNet50 applied to the ImageNet classification task. DW convolution could have a large locality without increasing computational costs compared to CNNs, but the accuracy saturates with larger kernels. CADA follows this characteristic of locality. We showed that context awareness was the crucial property; however, large local information was not necessary to construct CA parameters. Even though no spatial invariance makes training difficult, more relaxed spatial invariance gave better accuracy than strict spatial invariance. Also, additional strong spatial invariance through relative position encoding was preferable. We extended these experiments to filters for downsampling and showed that locality bias is more critical for downsampling but can remove the strong locality bias using relaxed spatial invariance.

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

↑