Abstract
Standard object recognition models often fail when objects are partially obscured, as they rely on specific discriminative features that may be hidden. In this work, we introduce D-Feat, a framework that leverages the generative capabilities of Stable Diffusion (SD) to enhance model robustness against occlusions. By utilizing SD for pixel-level inpainting during training or by fusing context-aware generative features into the classification pipeline, D-Feat achieves significant performance improvements on both simulated and real-world occluded datasets.
Introduction
Deep learning models are notoriously "brittle" when encountering occlusions—scenarios where an object is partially hidden by another element in the scene. While humans can intuitively "hallucinate" the missing parts of an object based on environmental context, AI models typically struggle because they lack a holistic understanding of object geometry. Furthermore, existing research often relies on simplistic simulated occlusions (e.g., black boxes), which fail to capture the complexity of real-world natural occlusions.
Methods: Leveraging Generative Power
The D-Feat pipeline addresses these challenges by employing a frozen Stable Diffusion (SD) model in two distinct ways:
- SD Inpaint (Input-based Augmentation): This approach uses the diffusion model to "fill in" occluded regions during training. By exposing the classifier (e.g., Swin Transformer or ConvNeXt) to these inpainted images, the model learns to recognize objects even when the original visual evidence is incomplete.
- SD Features (Feature-based Augmentation): Instead of modifying pixels, this method extracts intermediate features from the SD model’s internal U-Net. Because diffusion models are trained to reconstruct images from noise, their internal representations possess a deep understanding of global context. These generative features are fused with the standard classifier's features, providing a robust "hint" about the object's identity.
Datasets and Experimental Setup
The study utilizes three primary benchmarks to evaluate robustness:
- PartImageNet: Provides pixel-level segmentations, enabling precise "hiding" of specific object parts during training.
- ImageNet1K Validation: Used for testing with simulated grid-based occlusions.
- D-Feat (New): A curated dataset of 100 classes featuring real-world natural occlusions (e.g., a car behind a fence), providing a more realistic evaluation of model robustness than standard synthetic benchmarks.
Key Results
D-Feat demonstrated superior performance as occlusion difficulty increased:
- Simulated Occlusions: At an extreme 80% occlusion level on ImageNet, a Swin Transformer using SD Features achieved 78.14% top-1 accuracy, significantly outperforming the baseline's 71.87%.
- Real-World Occlusions: On the D-Feat dataset, the ConvNeXt model improved from 82.03% (baseline) to 90.06% when utilizing SD Features.
- Architecture Agnostic: The benefits were consistent across both Transformers and ConvNets, suggesting that the weakness to occlusion is a fundamental feature-level issue rather than an architectural one.
Discussion and Conclusion
While D-Feat offers a powerful solution for occlusion robustness, it introduces computational overhead due to the requirement of running a large U-Net for feature extraction. Additionally, the system may inherit biases from the underlying generative model. Future work will focus on developing more lightweight versions of these diffusion-based features to enable real-time applications, such as autonomous driving, where the ability to "see through" occlusions is critical for safety.
Summary updated