mlsanityData to 7 Oct 2026

When Pigs Fly: Contextual Reasoning in Synthetic and Natural Scenes

arXiv 2104.02215 ↗First posted 6 Apr 2021cs.CV cs.AIcited by 23

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  3. 2014Microsoft COCO: Common Objects in Contextcited by 17,498
  4. 2015Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networkscited by 9,617
  5. 2020End-to-End Object Detection with Transformerscited by 7,384
  6. 2016Densely Connected Convolutional Networkscited by 6,691
  7. 2016DeepLab: Semantic Image Segmentation with Deep Convolutional Nets, Atrous Convolution, and Fully Connected CRFscited by 3,239
  8. 2018ImageNet-trained CNNs are biased towards texture; increasing shape bias improves accuracy and robustnesscited by 1,430
  9. 2016COCO-Stuff: Thing and Stuff Classes in Contextcited by 858
  10. 2018Recognition in Terra Incognitacited by 655
  11. 2020Simple Copy-Paste is a Strong Data Augmentation Method for Instance Segmentationcited by 595
  12. 2016Interaction Networks for Learning about Objects, Relations and Physicscited by 503
14 more
  1. 2018VirtualHome: Simulating Household Activities via Programscited by 411
  2. 2019Approximating CNNs with Bag-of-local-Features models works surprisingly well on ImageNetcited by 260
  3. 2018Unity: A General Platform for Intelligent Agentscited by 232
  4. 2018Modeling Visual Context is Key to Augmenting Object Detection Datasetscited by 106
  5. 2020Don't Judge an Object by Its Context: Learning to Overcome Contextual Biascited by 91
  6. 2019Learning from Synthetic Animalscited by 65
  7. 2019Physics-Based Rendering for Improving Robustness to Raincited by 49
  8. 2017Weakly-supervised learning of visual relationscited by 36
  9. 2019Putting visual object recognition in contextcited by 33
  10. 2015Structure Inference Machines: Recurrent Neural Networks for Analyzing Relations in Group Activity Recognitioncited by 27
  11. 2017Recurrent computations for visual pattern completioncited by 22
  12. 2015Learning Structured Inference Neural Networks with Label Relationscited by 13
  13. 2017Seeing What Is Not There: Learning Context to Determine Where Objects Are Missingcited by 11
  14. 2018Learning Scene Gist with Convolutional Neural Networks to Improve Object Recognitioncited by 5

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2022: 6; 2023: 4; 2024: 5; 2025: 5; 2026: 3.

23 papers.

Sort:

  1. 2022Harmonizing the object recognition strategies of deep neural networks with humanscited by 59
  2. 2023Context Understanding in Computer Vision: A Surveycited by 23
  3. 2025Seeing Sound, Hearing Sight: Uncovering Modality Bias and Conflict of AI models in Sound Localizationcited by 17
  4. 2023Dissecting Multimodality in VideoQA Transformer Models by Impairing Modality Fusioncited by 8
  5. 2022Efficient Zero-shot Visual Search via Target and Context-aware Transformercited by 7
  6. 2025Common Inpainted Objects In-N-Out of Contextcited by 7
  7. 2023Adaptive Visual Scene Understanding: Incremental Scene Graph Generationcited by 6
  8. 2024Visual Data Diagnosis and Debiasing with Concept Graphscited by 6
  9. 2024Benchmarking Out-of-Distribution Generalization Capabilities of DNN-based Encoding Models for the Ventral Visual Cortexcited by 3
  10. 2022Detecting out-of-context objects using contextual cuescited by 2
  11. 2022Improving generalization by mimicking the human visual dietcited by 2
  12. 2024L-WISE: Boosting Human Visual Category Learning Through Model-Based Image Selection and Enhancementcited by 2
11 more
  1. 2025Learning to See Through a Baby's Eyes: Early Visual Diets Enable Robust Visual Intelligence in Humans and Machinescited by 2
  2. 2022Learning to See the Elephant in the Room: Self-Supervised Context Reasoning in Humans and AIcited by 1
  3. 2023VisAlign: Dataset for Measuring the Degree of Alignment between AI and Humans in Visual Perceptioncited by 1
  4. 2025Common Objects Out of Context (COOCo): Investigating Multimodal Context and Semantic Scene Violations in Referential Communicationcited by 1
  5. 2022Prediction of Scene Plausibilitycited by 0
  6. 2024The Indoor-Training Effect: unexpected gains from distribution shifts in the transition functioncited by 0
  7. 2024Connectivity-Inspired Network for Context-Aware Recognitioncited by 0
  8. 2025Improving Classification of Occluded Objects through Scene Contextcited by 0
  9. 2026Conditional Compatibility Learning for Context-Dependent Anomaly Detectioncited by 0
  10. 2026Learning to Perceive "Where": Spatial Pretext Tasks for Robust Self-Supervised Learningcited by 0
  11. 2026PRISM: Progressive Reasoning through Iterative Slot Memory for Visioncited by 0