Abstract
ReplaceBlock is a novel regularization technique for Convolutional Neural Networks (CNNs) that simulates natural occlusion by replacing highly discriminative parts of an object with background information from the same image. By moving beyond simple "zero-masking" (like Dropout or DropBlock), it forces models to learn the full extent of a target object, leading to significant accuracy gains in image classification and fine-grained recognition.
Introduction
Deep Convolutional Neural Networks (CNNs) are prone to overfitting due to their high parameter counts. Traditional regularization methods like Dropout often fail in convolutional layers because spatial correlations allow the network to infer missing information from adjacent pixels. While structured dropout methods like DropBlock or Cutout attempt to address this by erasing contiguous regions, they typically replace pixels with zeros (black boxes). This does not reflect real-world occlusion, where objects are typically obscured by other background elements rather than void-like masks. Furthermore, these methods often drop regions randomly, potentially missing the most discriminative features the model over-relies on.
Methodology
ReplaceBlock introduces a more realistic "occluded" training signal by utilizing the image's own background. The method follows a strategic pipeline:
- Target Identification: Using Class Activation Mapping (CAM), the model identifies the most discriminative regions of the target object.
- Background Extraction: A mask is applied to hide the target object, creating a background-only image.
- Feature Generation: This background image is processed through the network's initial layers to generate a background feature map.
- Strategic Replacement: Instead of zero-masking, ReplaceBlock pastes a block from the background feature map over a discriminative region in the original feature map.
- Random Shuffling: To prevent overfitting to specific spatial background patterns, the background feature map is randomly shuffled before replacement.
By replacing "easy" features with actual background noise, the model is forced to utilize remaining, less obvious parts of the object for classification.
Experimental Results
The researchers evaluated ReplaceBlock across four benchmarks: Mini-ImageNet, Caltech-256, CUB-2011 (birds), and Cars-196. ReplaceBlock consistently outperformed baseline ResNet-50 and state-of-the-art regularization methods.
- Mini-ImageNet: Achieved 83.03% top-1 accuracy (vs. 80.13% baseline).
- Fine-Grained Tasks: On CUB-2011, it reached 82.25%, surpassing CutMix (81.27%) and DropBlock (81.41%).
Qualitative analysis via CAM heatmaps showed that ReplaceBlock leads to more comprehensive object localization, as the model learns to recognize the entire object (e.g., neck, body, and tail of a bird) rather than just the most distinct feature (e.g., the beak).
Discussion and Limitations
The core insight of ReplaceBlock is that background information serves as a superior regularizer compared to "nothingness." However, the method introduces some computational overhead due to the additional forward pass required for the background feature map. Additionally, the current masking process leaves "black holes" where the object was; while inpainting was considered, it proved too computationally expensive for practical training. Future work will focus on optimizing background processing and exploring efficient inpainting techniques to further enhance the realism of training samples.
Summary updated