mlsanityData to 7 Oct 2026

Towards Visual Syntactical Understanding

arXiv 2401.17497 ↗First posted 30 Jan 2024cs.CVcited by 0

Not on the map. Why?

Abstract (arXiv)

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.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 26 of its 52 references that are in the map. First posted on arXiv 30 Jan 2024.

Builds on

26 of 52 references.

References · 26

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  4. 2015Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networkscited by 9,617
  5. 2021Masked Autoencoders Are Scalable Vision Learnerscited by 7,339
  6. 2014Fully Convolutional Networks for Semantic Segmentationcited by 4,845
  7. 2021BEiT: BERT Pre-Training of Image Transformerscited by 2,360
  8. 2018A Simple Unified Framework for Detecting Out-of-Distribution Samples and Adversarial Attackscited by 1,472
  9. 2019StarGAN v2: Diverse Image Synthesis for Multiple Domainscited by 1,095
  10. 2017Unsupervised Anomaly Detection with Generative Adversarial Networks to Guide Marker Discoverycited by 566
  11. 2021ClipCap: CLIP Prefix for Image Captioningcited by 557
  12. 2019BLiMP: The Benchmark of Linguistic Minimal Pairs for Englishcited by 553
14 more
  1. 2017Scene Graph Generation by Iterative Message Passingcited by 462
  2. 2019What do you learn from context? Probing for sentence structure in contextualized word representationscited by 436
  3. 2018GANomaly: Semi-Supervised Anomaly Detection via Adversarial Trainingcited by 409
  4. 2018Deep Anomaly Detection Using Geometric Transformationscited by 269
  5. 2023SimpleNet: A Simple Network for Image Anomaly Detection and Localizationcited by 256
  6. 2018Targeted Syntactic Evaluation of Language Modelscited by 239
  7. 2021Rethinking and Improving Relative Position Encoding for Vision Transformercited by 206
  8. 2018Dissecting Contextual Word Embeddings: Architecture and Representationcited by 146
  9. 2016Deep Structured Energy Based Models for Anomaly Detectioncited by 113
  10. 2018Anomaly Detection with Generative Adversarial Networks for Multivariate Time Seriescited by 55
  11. 2021Refining Targeted Syntactic Evaluation of Language Modelscited by 41
  12. 2019Probabilistic Modeling of Deep Features for Out-of-Distribution and Adversarial Detectioncited by 39
  13. 2020Do Neural Language Models Show Preferences for Syntactic Formalisms?cited by 30
  14. 2021Neurosymbolic Systems of Perception & Cognition: The Role of Attentioncited by 4

Built on by

Not cited yet.