Abstract
Computer vision models often rely heavily on "visual context"—recognizing objects based on their surroundings rather than their intrinsic features. While context can aid in resolving ambiguity, it often leads to "pathological dependencies" where models fail in unusual or sparse environments. This paper introduces a novel framework to quantify these dependencies using automated object removal and adversarial in-painting. Furthermore, it proposes a data augmentation strategy that forces models to focus on the objects themselves, significantly improving robustness in out-of-context scenarios across classification and segmentation tasks.
Introduction
In computer vision, context is typically viewed as a beneficial feature. Knowing that a keyboard is usually found near a monitor helps a model resolve visual noise. However, this paper argues that models often develop an over-reliance on these co-occurring objects. For example, if a model learns that a "sidewalk" is merely "the gray area next to a car," it will fail to identify a sidewalk on a quiet street or, conversely, hallucinate one simply because a car is present. This brittleness poses a significant challenge for real-world deployment where objects frequently appear in atypical settings. The authors seek to quantify exactly how much a "black-box" model relies on these cues and propose methods to break these dependencies without sacrificing overall accuracy.
Methodology
The core of the proposed approach is Object Removal. To measure how much a model depends on Object B to identify Object A, the authors systematically remove Object B from the scene.
Automated Editing and In-painting
Simply masking an object with a black box can introduce digital artifacts that confuse the model. Instead, the authors use ground-truth segmentation masks to identify objects and an adversarial in-painting network to fill the resulting "hole" with a plausible background. This ensures the model reacts to the semantic absence of the object rather than image corruption.
Quantitative Metrics
The paper introduces several metrics to measure context sensitivity:
- $V_{min}$ and $V_{mean}$ (Classification): These measure how often a model assigns higher confidence to an image where the target object is missing but context is present, compared to an image where the object is present but context is removed.
- $AR(c_i, c_j)$ (Segmentation): This measures the fraction of images where removing a context object $j$ significantly alters the segmentation of target object $i$.
Robust Training Strategies
To mitigate context dependency, the authors incorporate edited images into the training process using three main strategies:
- Data-aug-rand: Randomly removing objects during training.
- HardNegative: Specifically removing "easy" context objects to force the model to learn more robust features.
- Negative Loss: Explicitly penalizing the model if it continues to predict a removed object based on remaining context.
Key Insights and Results
Contextual Hallucination
Baseline models frequently suffer from contextual hallucination. As shown in the figure above, removing a car from a street scene can cause a standard model (like Upernet) to stop recognizing the road and start "seeing" a sidewalk where none exists, simply because the surrounding buildings and trees suggest a sidewalk should be there. The proposed method maintains stability in these scenarios.
Performance Gains
- Classification: On the MS COCO dataset, the "Data-aug-const" method reduced $V_{min}$ violations from 34% to 25%.
- Out-of-Context Robustness: On the UnRel dataset, which contains unusual relations (e.g., a car on a roof), the augmented model improved mean Average Precision (mAP) from 0.50 to 0.54.
- Segmentation: For semantic segmentation on ADE20k, the "Hard Negative" strategy improved the mean Intersection-over-Union (mIoU) from 0.377 to 0.385, demonstrating that reducing context reliance can actually improve overall performance.
Discussion and Limitations
While the method significantly improves robustness, it faces certain limitations. The in-painting process struggles with very large objects (e.g., buildings), leading the authors to limit removals to objects occupying less than 30% of the image. Additionally, the current definition of context is restricted to co-occurring objects, ignoring environmental factors like lighting or geographic location. Future work may explore using predicted masks or unsupervised object discovery to reduce the reliance on expensive ground-truth segmentation data.
In conclusion, by forcing models to "look past the car," this research provides a path toward computer vision systems that are not just accurate on standard benchmarks, but truly robust in the diverse and unpredictable real world.
Summary updated