mlsanityData to 14 Oct 2026

Finding Differences Between Transformers and ConvNets Using Counterfactual Simulation Testing

arXiv 2211.16499 ↗First posted 29 Nov 2022cs.CV cs.AI cs.LGcited by 6

Not on the map. Why?

Abstract (arXiv)

Modern deep neural networks tend to be evaluated on static test sets. One shortcoming of this is the fact that these deep neural networks cannot be easily evaluated for robustness issues with respect to specific scene variations. For example, it is hard to study the robustness of these networks to variations of object scale, object pose, scene lighting and 3D occlusions. The main reason is that collecting real datasets with fine-grained naturalistic variations of sufficient scale can be extremely time-consuming and expensive. In this work, we present Counterfactual Simulation Testing, a counterfactual framework that allows us to study the robustness of neural networks with respect to some of these naturalistic variations by building realistic synthetic scenes that allow us to ask counterfactual questions to the models, ultimately providing answers to questions such as "Would your classification still be correct if the object were viewed from the top?" or "Would your classification still be correct if the object were partially occluded by another object?". Our method allows for a fair comparison of the robustness of recently released, state-of-the-art Convolutional Neural Networks and Vision Transformers, with respect to these naturalistic variations. We find evidence that ConvNext is more robust to pose and scale variations than Swin, that ConvNext generalizes better to our simulated domain and that Swin handles partial occlusion better than ConvNext. We also find that robustness for all networks improves with network scale and with data scale and variety. We release the Naturalistic Variation Object Dataset (NVD), a large simulated dataset of 272k images of everyday objects with naturalistic variations such as object pose, scale, viewpoint, lighting and occlusions. Project page: https://counterfactualsimulation.github.io

Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Builds on 56 of its 80 references that are in the map. First posted on arXiv 29 Nov 2022.

Builds on

56 of 80 references.

References · 56

  1. 2015Deep Residual Learning for Image Recognitioncited by 52,096
  2. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  3. 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,364
  4. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
  5. 2016Densely Connected Convolutional Networkscited by 6,720
  6. 2019EfficientNet: Rethinking Model Scaling for Convolutional Neural Networkscited by 6,442
  7. 2020Training data-efficient image transformers & distillation through attentioncited by 4,586
  8. 2022A ConvNet for the 2020scited by 3,579
  9. 2015Domain-Adversarial Training of Neural Networkscited by 3,044
  10. 2019Benchmarking Neural Network Robustness to Common Corruptions and Perturbationscited by 2,877
  11. 2017CARLA: An Open Urban Driving Simulatorcited by 2,449
  12. 2021BEiT: BERT Pre-Training of Image Transformerscited by 2,375
38 more
  1. 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,962
  2. 2016CLEVR: A Diagnostic Dataset for Compositional Language and Elementary Visual Reasoningcited by 1,457
  3. 2018ImageNet-trained CNNs are biased towards texture; increasing shape bias improves accuracy and robustnesscited by 1,432
  4. 2019Natural Adversarial Examplescited by 1,408
  5. 2018Moment Matching for Multi-Source Domain Adaptationcited by 1,331
  6. 2017Adversarial Discriminative Domain Adaptationcited by 1,311
  7. 2021Swin Transformer V2: Scaling Up Capacity and Resolutioncited by 1,228
  8. 2021Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNetcited by 1,101
  9. 2017CyCADA: Cycle-Consistent Adversarial Domain Adaptationcited by 1,082
  10. 2015A Large Dataset to Train Convolutional Networks for Disparity, Optical Flow, and Scene Flow Estimationcited by 881
  11. 2016Playing for Data: Ground Truth from Computer Gamescited by 818
  12. 2017Counterfactual Fairnesscited by 804
  13. 2018Learning Dexterous In-Hand Manipulationcited by 687
  14. 2021Do Vision Transformers See Like Convolutional Neural Networks?cited by 675
  15. 2018Disentangling by Factorisingcited by 616
  16. 2018Learning to Adapt Structured Output Space for Semantic Segmentationcited by 584
  17. 2021Intriguing Properties of Vision Transformerscited by 446
  18. 2016Virtual Worlds as Proxy for Multi-Object Tracking Analysiscited by 341
  19. 2019Counterfactual Visual Explanationscited by 313
  20. 2020ThreeDWorld: A Platform for Interactive Multi-Modal Physical Simulationcited by 250
  21. 2021Vision Transformers are Robust Learnerscited by 207
  22. 2021Are Transformers More Robust Than CNNs?cited by 187
  23. 2018Path-Specific Counterfactual Fairnesscited by 181
  24. 2022DaViT: Dual Attention Vision Transformerscited by 175
  25. 2018Strike (with) a Pose: Neural Networks Are Easily Fooled by Strange Poses of Familiar Objectscited by 143
  26. 2019Meta-Sim: Learning to Generate Synthetic Datasetscited by 128
  27. 2017No More Discrimination: Cross City Adaptation of Road Scene Segmenterscited by 111
  28. 2019On the Transfer of Inductive Bias from Simulation to the Real World: a New Disentanglement Datasetcited by 100
  29. 2019Image Counterfactual Sensitivity Analysis for Detecting Unintended Biascited by 74
  30. 2018Synthesizing Programs for Images using Reinforced Adversarial Learningcited by 72
  31. 2021Adversarial Robustness Comparison of Vision Transformer and MLP-Mixer to CNNscited by 57
  32. 2020Compositional Convolutional Neural Networks: A Deep Architecture with Innate Robustness to Partial Occlusioncited by 47
  33. 2018Learning To Simulatecited by 44
  34. 2021Reveal of Vision Transformers Robustness against Adversarial Attackscited by 43
  35. 2020Gender Slopes: Counterfactual Fairness for Computer Vision Models by Attribute Manipulationcited by 37
  36. 2019Synthetic Examples Improve Generalization for Rare Classescited by 35
  37. 2021ConvNets vs. Transformers: Whose Visual Representations are More Transferable?cited by 35
  38. 2017Empirically Analyzing the Effect of Dataset Biases on Deep Face Recognition Systemscited by 28

50 most cited of 56 All 56 (JSON)

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2023: 2; 2024: 0; 2025: 2; 2026: 2.

6 papers.