When Pigs Fly: Contextual Reasoning in Synthetic and Natural Scenes
Not on the map. Why?
Abstract (arXiv)
Context is of fundamental importance to both human and machine vision; e.g., an object in the air is more likely to be an airplane than a pig. The rich notion of context incorporates several aspects including physics rules, statistical co-occurrences, and relative object sizes, among others. While previous work has focused on crowd-sourced out-of-context photographs from the web to study scene context, controlling the nature and extent of contextual violations has been a daunting task. Here we introduce a diverse, synthetic Out-of-Context Dataset (OCD) with fine-grained control over scene context. By leveraging a 3D simulation engine, we systematically control the gravity, object co-occurrences and relative sizes across 36 object categories in a virtual household environment. We conducted a series of experiments to gain insights into the impact of contextual cues on both human and machine vision using OCD. We conducted psychophysics experiments to establish a human benchmark for out-of-context recognition, and then compared it with state-of-the-art computer vision models to quantify the gap between the two. We propose a context-aware recognition transformer model, fusing object and contextual information via multi-head attention. Our model captures useful information for contextual reasoning, enabling human-level performance and better robustness in out-of-context conditions compared to baseline models across OCD and other out-of-context datasets. All source code and data are publicly available at https://github.com/kreimanlab/WhenPigsFlyContext
Key facts. Cited by 23 papers in the map (data through 7 Oct 2026). Builds on 26 of its 43 references that are in the map. First posted on arXiv 6 Apr 2021.
Builds on
26 of 43 references.
References · 26
- 2017Attention Is All You Needcited by 59,932
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2014Microsoft COCO: Common Objects in Contextcited by 17,498
- 2015Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networkscited by 9,617
- 2020End-to-End Object Detection with Transformerscited by 7,384
- 2016Densely Connected Convolutional Networkscited by 6,691
- 2016DeepLab: Semantic Image Segmentation with Deep Convolutional Nets, Atrous Convolution, and Fully Connected CRFscited by 3,239
- 2018ImageNet-trained CNNs are biased towards texture; increasing shape bias improves accuracy and robustnesscited by 1,430
- 2016COCO-Stuff: Thing and Stuff Classes in Contextcited by 858
- 2018Recognition in Terra Incognitacited by 655
- 2020Simple Copy-Paste is a Strong Data Augmentation Method for Instance Segmentationcited by 595
- 2016Interaction Networks for Learning about Objects, Relations and Physicscited by 503
14 more
- 2018VirtualHome: Simulating Household Activities via Programscited by 411
- 2019Approximating CNNs with Bag-of-local-Features models works surprisingly well on ImageNetcited by 260
- 2018Unity: A General Platform for Intelligent Agentscited by 232
- 2018Modeling Visual Context is Key to Augmenting Object Detection Datasetscited by 106
- 2020Don't Judge an Object by Its Context: Learning to Overcome Contextual Biascited by 91
- 2019Learning from Synthetic Animalscited by 65
- 2019Physics-Based Rendering for Improving Robustness to Raincited by 49
- 2017Weakly-supervised learning of visual relationscited by 36
- 2019Putting visual object recognition in contextcited by 33
- 2015Structure Inference Machines: Recurrent Neural Networks for Analyzing Relations in Group Activity Recognitioncited by 27
- 2017Recurrent computations for visual pattern completioncited by 22
- 2015Learning Structured Inference Neural Networks with Label Relationscited by 13
- 2017Seeing What Is Not There: Learning Context to Determine Where Objects Are Missingcited by 11
- 2018Learning Scene Gist with Convolutional Neural Networks to Improve Object Recognitioncited by 5
Built on by
Citing papers per year: 2022: 6; 2023: 4; 2024: 5; 2025: 5; 2026: 3.
23 papers.
Sort:
- 2022Harmonizing the object recognition strategies of deep neural networks with humanscited by 59
- 2023Context Understanding in Computer Vision: A Surveycited by 23
- 2025Seeing Sound, Hearing Sight: Uncovering Modality Bias and Conflict of AI models in Sound Localizationcited by 17
- 2023Dissecting Multimodality in VideoQA Transformer Models by Impairing Modality Fusioncited by 8
- 2022Efficient Zero-shot Visual Search via Target and Context-aware Transformercited by 7
- 2025Common Inpainted Objects In-N-Out of Contextcited by 7
- 2023Adaptive Visual Scene Understanding: Incremental Scene Graph Generationcited by 6
- 2024Visual Data Diagnosis and Debiasing with Concept Graphscited by 6
- 2024Benchmarking Out-of-Distribution Generalization Capabilities of DNN-based Encoding Models for the Ventral Visual Cortexcited by 3
- 2022Detecting out-of-context objects using contextual cuescited by 2
- 2022Improving generalization by mimicking the human visual dietcited by 2
- 2024L-WISE: Boosting Human Visual Category Learning Through Model-Based Image Selection and Enhancementcited by 2
11 more
- 2025Learning to See Through a Baby's Eyes: Early Visual Diets Enable Robust Visual Intelligence in Humans and Machinescited by 2
- 2022Learning to See the Elephant in the Room: Self-Supervised Context Reasoning in Humans and AIcited by 1
- 2023VisAlign: Dataset for Measuring the Degree of Alignment between AI and Humans in Visual Perceptioncited by 1
- 2025Common Objects Out of Context (COOCo): Investigating Multimodal Context and Semantic Scene Violations in Referential Communicationcited by 1
- 2022Prediction of Scene Plausibilitycited by 0
- 2024The Indoor-Training Effect: unexpected gains from distribution shifts in the transition functioncited by 0
- 2024Connectivity-Inspired Network for Context-Aware Recognitioncited by 0
- 2025Improving Classification of Occluded Objects through Scene Contextcited by 0
- 2026Conditional Compatibility Learning for Context-Dependent Anomaly Detectioncited by 0
- 2026Learning to Perceive "Where": Spatial Pretext Tasks for Robust Self-Supervised Learningcited by 0
- 2026PRISM: Progressive Reasoning through Iterative Slot Memory for Visioncited by 0
- 2026PRISM: Progressive Reasoning through Iterative Slot Memory for Vision29 May 2026
- 2026Learning to Perceive "Where": Spatial Pretext Tasks for Robust Self-Supervised Learning11 May 2026
- 2026Conditional Compatibility Learning for Context-Dependent Anomaly Detection30 Jan 2026
- 2025Learning to See Through a Baby's Eyes: Early Visual Diets Enable Robust Visual Intelligence in Humans and Machines18 Nov 2025
- 2025Improving Classification of Occluded Objects through Scene Context30 Oct 2025
- 2025Common Objects Out of Context (COOCo): Investigating Multimodal Context and Semantic Scene Violations in Referential Communication27 Jun 2025
- 2025Common Inpainted Objects In-N-Out of Context31 May 2025
- 2025Seeing Sound, Hearing Sight: Uncovering Modality Bias and Conflict of AI models in Sound Localization16 May 2025
- 2024L-WISE: Boosting Human Visual Category Learning Through Model-Based Image Selection and Enhancement12 Dec 2024
- 2024Visual Data Diagnosis and Debiasing with Concept Graphs26 Sep 2024
- 2024Connectivity-Inspired Network for Context-Aware Recognition6 Sep 2024
- 2024Benchmarking Out-of-Distribution Generalization Capabilities of DNN-based Encoding Models for the Ventral Visual Cortex16 Jun 2024
11 more
- 2024The Indoor-Training Effect: unexpected gains from distribution shifts in the transition function29 Jan 2024
- 2023Adaptive Visual Scene Understanding: Incremental Scene Graph Generation2 Oct 2023
- 2023VisAlign: Dataset for Measuring the Degree of Alignment between AI and Humans in Visual Perception3 Aug 2023
- 2023Dissecting Multimodality in VideoQA Transformer Models by Impairing Modality Fusion15 Jun 2023
- 2023Context Understanding in Computer Vision: A Survey10 Feb 2023
- 2022Prediction of Scene Plausibility2 Dec 2022
- 2022Efficient Zero-shot Visual Search via Target and Context-aware Transformer24 Nov 2022
- 2022Learning to See the Elephant in the Room: Self-Supervised Context Reasoning in Humans and AI23 Nov 2022
- 2022Harmonizing the object recognition strategies of deep neural networks with humans8 Nov 2022
- 2022Improving generalization by mimicking the human visual diet15 Jun 2022
- 2022Detecting out-of-context objects using contextual cues11 Feb 2022
- 2022Harmonizing the object recognition strategies of deep neural networks with humanscited by 59
- 2023Context Understanding in Computer Vision: A Surveycited by 23
- 2025Seeing Sound, Hearing Sight: Uncovering Modality Bias and Conflict of AI models in Sound Localizationcited by 17
- 2023Dissecting Multimodality in VideoQA Transformer Models by Impairing Modality Fusioncited by 8
- 2022Efficient Zero-shot Visual Search via Target and Context-aware Transformercited by 7
- 2025Common Inpainted Objects In-N-Out of Contextcited by 7
- 2023Adaptive Visual Scene Understanding: Incremental Scene Graph Generationcited by 6
- 2024Visual Data Diagnosis and Debiasing with Concept Graphscited by 6
- 2024Benchmarking Out-of-Distribution Generalization Capabilities of DNN-based Encoding Models for the Ventral Visual Cortexcited by 3
- 2022Detecting out-of-context objects using contextual cuescited by 2
- 2022Improving generalization by mimicking the human visual dietcited by 2
- 2024L-WISE: Boosting Human Visual Category Learning Through Model-Based Image Selection and Enhancementcited by 2
12 most cited of 23 All 23 (JSON)
- 2026PRISM: Progressive Reasoning through Iterative Slot Memory for Vision29 May 2026
- 2026Learning to Perceive "Where": Spatial Pretext Tasks for Robust Self-Supervised Learning11 May 2026
- 2026Conditional Compatibility Learning for Context-Dependent Anomaly Detection30 Jan 2026
- 2025Learning to See Through a Baby's Eyes: Early Visual Diets Enable Robust Visual Intelligence in Humans and Machines18 Nov 2025
- 2025Improving Classification of Occluded Objects through Scene Context30 Oct 2025
- 2025Common Objects Out of Context (COOCo): Investigating Multimodal Context and Semantic Scene Violations in Referential Communication27 Jun 2025
- 2025Common Inpainted Objects In-N-Out of Context31 May 2025
- 2025Seeing Sound, Hearing Sight: Uncovering Modality Bias and Conflict of AI models in Sound Localization16 May 2025
- 2024L-WISE: Boosting Human Visual Category Learning Through Model-Based Image Selection and Enhancement12 Dec 2024
- 2024Visual Data Diagnosis and Debiasing with Concept Graphs26 Sep 2024
- 2024Connectivity-Inspired Network for Context-Aware Recognition6 Sep 2024
- 2024Benchmarking Out-of-Distribution Generalization Capabilities of DNN-based Encoding Models for the Ventral Visual Cortex16 Jun 2024
12 newest of 23 All 23 (JSON)