arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2401.17497cs.CV
收藏

迈向视觉句法理解

Towards Visual Syntactical Understanding

Elmore Family School of Electrical and Computer Engineering, Purdue University(普渡大学埃尔莫尔家族电气与计算机工程学院)

Sayeed Shafayet Chowdhury, Soumyadeep Chandra, Kaushik Roy

AI总结:

该研究针对深度神经网络难以区分图像句法异常的问题,提出了一种借鉴BERT掩码自编码思路的无监督三阶段视觉句法理解框架,在多个数据集上取得了较高准确率且具备良好泛化能力。

摘要:

句法通常在语言学领域中被研究,指的是句子中单词的排列方式。类似地,一幅图像可以被视为一个视觉“句子”,图像的语义组成部分则充当“单词”。虽然人类天生具备视觉句法理解能力,但探索深度神经网络(DNN)是否拥有这种推理能力是一个有趣的课题。为此,我们修改自然图像的句法(例如交换人脸的眼睛和鼻子),将这类图像称为“错误”图像,以此研究DNN对这种句法异常的敏感性。通过实验,我们发现了DNN一个值得关注的特性:仅在句法正确的图像上训练时,当前最先进的卷积神经网络以及视觉Transformer都无法区分句法正确和错误的图像。为解决这一问题并让DNN实现视觉句法理解,我们提出了一个三阶段框架:(i)检测图像中的“单词”(或子特征);(ii)使用自编码器对检测到的单词进行顺序掩码和重建;(iii)在每个位置比较原始部分和重建部分,以判断句法正确性。重建模块采用类似BERT的图像掩码自编码方式训练,其动机是借鉴语言模型的训练思路以更好地捕捉句法。需要注意的是,我们提出的方法是无监督的,因为错误图像仅在测试阶段使用,训练过程中从未使用正确与错误的标签。我们在CelebA和AFHQ数据集上进行了实验,分别获得了92.10%和90.89%的分类准确率。值得注意的是,该方法能很好地泛化到与CelebA和AFHQ有共同类别的ImageNet样本上,且无需在这些样本上进行显式训练。

英文摘要:

Syntax is usually studied in the realm of linguistics and refers to the arrangement of words in a sentence. Similarly, an image can be considered as a visual 'sentence', with the semantic parts of the image acting as 'words'. While visual syntactic understanding occurs naturally to humans, it is interesting to explore whether deep neural networks (DNNs) are equipped with such reasoning. To that end, we alter the syntax of natural images (e.g. swapping the eye and nose of a face), referred to as 'incorrect' images, to investigate the sensitivity of DNNs to such syntactic anomaly. Through our experiments, we discover an intriguing property of DNNs where we observe that state-of-the-art convolutional neural networks, as well as vision transformers, fail to discriminate between syntactically correct and incorrect images when trained on only correct ones. To counter this issue and enable visual syntactic understanding with DNNs, we propose a three-stage framework- (i) the 'words' (or the sub-features) in the image are detected, (ii) the detected words are sequentially masked and reconstructed using an autoencoder, (iii) the original and reconstructed parts are compared at each location to determine syntactic correctness. The reconstruction module is trained with BERT-like masked autoencoding for images, with the motivation to leverage language model inspired training to better capture the syntax. Note, our proposed approach is unsupervised in the sense that the incorrect images are only used during testing and the correct versus incorrect labels are never used for training. We perform experiments on CelebA, and AFHQ datasets and obtain classification accuracy of 92.10%, and 90.89%, respectively. Notably, the approach generalizes well to ImageNet samples which share common classes with CelebA and AFHQ without explicitly training on them.

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

↑