Robust Context-Aware Object Recognition
Klara Janouskova, Cristian Gavrus, Jiri Matas
TL;DR
This work tackles the instability of visual recognition models caused by over-reliance on background context by proposing RCOR, Robust Context-Aware Object Recognition. RCOR jointly models foreground object features and contextual information by decoupling FG and full representations via class-agnostic localization and then fusing them with a robust, non-parametric rule. The approach yields robustness to background distribution shifts while preserving in-domain accuracy, demonstrated across both supervised models and vision-language models on ImageNet-1k–like benchmarks and several fine-grained datasets. The findings highlight that localization quality is the main limiting factor, suggesting ample room for gains from improved FG localization, and show RCOR’s practical potential for real-world robustness without requiring extensive fine-tuning.
Abstract
In visual recognition, both the object of interest (referred to as foreground, FG, for simplicity) and its surrounding context (background, BG) play an important role. However, standard supervised learning often leads to unintended over-reliance on the BG, known as shortcut learning of spurious correlations, limiting model robustness in real-world deployment settings. In the literature, the problem is mainly addressed by suppressing the BG, sacrificing context information for improved generalization. We propose RCOR -- Robust Context-Aware Object Recognition -- the first approach that jointly achieves robustness and context-awareness without compromising either. RCOR treats localization as an integral part of recognition to decouple object-centric and context-aware modelling, followed by a robust, non-parametric fusion. It improves the performance of both supervised models and VLM on datasets with both in-domain and out-of-domain BG, even without fine-tuning. The results confirm that localization before recognition is now possible even in complex scenes as in ImageNet-1k.
