Introduction
This paper introduces "Counterfactual Simulation Testing" and a new synthetic dataset to evaluate how modern computer vision models handle naturalistic variations like occlusion, scale, and pose. By comparing state-of-the-art ConvNets (ConvNext) and Vision Transformers (Swin), the authors reveal that while Transformers handle severe occlusions slightly better, modern ConvNets are surprisingly more robust to scale and pose changes. This challenges recent assumptions about the universal superiority of Transformers.
The Evaluation Problem
The computer vision community relies heavily on static test sets like ImageNet to evaluate models. However, aggregate metrics like "Top-1 Accuracy" hide how models perform under specific, naturalistic scene variations—such as changes in lighting, 3D occlusion, object scale, or unusual camera angles. Collecting real-world datasets with fine-grained control over these variables is prohibitively expensive.
Furthermore, recent studies claiming Vision Transformers (ViTs) are more robust than Convolutional Neural Networks (ConvNets) often compare modern ViTs against older ConvNets (like ResNet). This makes it impossible to know if the performance gap is due to the fundamental difference between attention and convolution, or simply because the ConvNets used outdated architectural designs and training recipes. This paper levels the playing field by comparing highly matched, state-of-the-art architectures: ConvNext versus Swin.
Methodology: Counterfactual Simulation Testing
To solve the data scarcity problem, the authors use a 3D simulator (MIT ThreeDWorld) to generate photorealistic scenes with precise control over environmental variables.
To address the "synthetic-to-real domain gap"—where models trained on real photos fail on synthetic images simply because they look different—the authors introduce Counterfactual Simulation Testing. Instead of measuring raw accuracy on the synthetic data, they ask the model counterfactual questions: "If you correctly classified this object in its ideal, canonical pose, would you still classify it correctly if I shrank it by 50%?"
They measure this using a metric called the Proportion of Correct Conserved Predictions (PCCP). By only evaluating images the model already gets right under ideal conditions, they abstract away the baseline domain gap and isolate the model's robustness to the specific variable being manipulated.
The Naturalistic Variation Object Dataset (NVD)
The authors introduce and release the Naturalistic Variation Object Dataset (NVD), comprising 272,000 synthetic images. It features 92 object models (mapped to ImageNet classes) placed in an indoor kitchen scene under 27 different High Dynamic Range Imaging (HDRI) skybox lighting environments.
The dataset is split into five distinct variation categories to test specific robustness: object rotation, 360° panoramic camera rotation, object scale, camera elevation (frontal-to-top views), and 3D occlusion using different distractor objects.
Key Insights and Results
ConvNets Generalize Better to OOD Data
Contrary to recent beliefs that ViTs are inherently better at Out-Of-Distribution (OOD) generalization, ConvNext actually achieved higher mean accuracy on the synthetic NVD dataset than its Swin counterpart.
The Nuance of Occlusion Robustness
Previous work showed older CNNs failing catastrophically under occlusion. The authors show that modern ConvNets (ConvNext) do not suffer this critical failure and are highly resilient. In tests simulating occlusion by dropping image patches, older CNNs (like ResNet50) collapsed to near 0% accuracy after 40% information loss. ConvNext, however, conserved a large part of its accuracy even after 50% information loss, proving that convolutional inductive biases aren't inherently weak to occlusion.
That said, Swin Transformers still maintain a slight edge when occlusion becomes severe.
ConvNets Dominate on Scale and Rare Viewpoints
ConvNext architectures are significantly better at recognizing small objects and handling rare camera angles compared to Swin Transformers:
- Rare Viewpoints: When the camera is moved from a standard 45° elevation to a rare 90° top-down view, the largest ConvNet (ConvNext-L-22k) conserved ~73% of its correct predictions, noticeably outperforming the equivalent Swin model.
- Object Scale: When the object scale multiplier drops below 0.6 (making the object quite small in the frame), ConvNext vastly outperforms Swin in maintaining correct predictions.
The Impact of Scale
For both architectures, robustness to naturalistic variations consistently improves as you scale up the network size (Tiny to Large) and the training data size/variety (ImageNet-1k to ImageNet-22k).
Limitations and Future Work
Because the evaluation relies on simulated data, there is a risk that insights may not perfectly translate to the real world, though the counterfactual methodology heavily mitigates this. Additionally, neural network architectures evolve rapidly; the conclusions drawn here apply specifically to ConvNext and Swin, and may shift as new generations of models are developed. Future work could expand this counterfactual framework to study other architectures, different training paradigms (like self-supervised learning), or a wider variety of simulated environments.
Summary updated