Abstract
Deep learning models often face a fundamental trade-off between generalization on clean data and robustness against adversarial perturbations. While Dropout is a staple for regularizing fully connected layers, its effectiveness in Convolutional Neural Networks (CNNs) is limited by the high spatial correlation of image features. This paper introduces Local Feature Masking (LFM), a novel regularization strategy that employs "triple randomness"—at the sample, channel, and spatial levels—to mask rectangular regions in shallow feature maps. By forcing the network to learn from incomplete semantic information, LFM encourages the development of more elastic and redundant feature representations. Experimental results on Person Re-identification (ReID) benchmarks demonstrate that LFM significantly improves both standard accuracy and adversarial resilience compared to traditional Dropout and baseline models.
Introduction
In the pursuit of high-performance computer vision models, researchers frequently encounter a "tug-of-war" between generalization and adversarial robustness. Generalization refers to a model's ability to perform well on unseen, clean data, while adversarial robustness is the capacity to resist small, malicious perturbations designed to deceive the network.
Standard regularization techniques like Dropout often fail in the context of CNNs. Because adjacent pixels in an image are highly correlated, dropping a single neuron allows the network to easily infer the missing information from its neighbors, rendering the regularization ineffective. While input-level masking (e.g., Cutout) addresses this to some extent, it applies a static mask across all feature channels. LFM addresses these limitations by targeting the internal feature representations of CNNs to break complex co-adaptive behaviors between neurons.
Methodology: Local Feature Masking (LFM)
LFM is strategically inserted into the shallow layers of a network, typically following the first convolution block (e.g., conv1 in a ResNet-50 architecture). This placement is critical; by masking early in the pipeline, the network's deeper layers are forced to learn how to compensate for missing low-level information.
The core of LFM is its Triple Randomness mechanism:
- Sample Randomness: For every training batch, a specific image undergoes masking only with a predefined probability ($p$).
- Channel Randomness: If an image is selected for masking, the algorithm randomly selects a subset of feature channels ($N$) to modify, leaving the remaining channels intact.
- Spatial Randomness: For each selected channel, a random rectangular region is generated with varying positions, sizes, and aspect ratios. This region is then filled with a random pixel value.
Unlike standard Dropout, which zeros out individual neurons, LFM removes entire "semantic chunks." This forces the unmasked channels to "work harder" to reconstruct the lost information, effectively training an "ensemble" of multiple independent sub-networks within a single model.
Experimental Setup and Results
The researchers evaluated LFM using two primary benchmarks for Person Re-identification (ReID): Market-1501 and DukeMTMC-reID. These datasets are particularly suitable for testing robustness due to their inherent variations in lighting, pose, and frequent occlusions.
Generalization Performance
On the Market-1501 dataset, LFM demonstrated clear improvements over the baseline ResNet-50 model:
- Rank-1 Accuracy: Improved from 88.1% to 88.7%.
- Mean Average Precision (mAP): Increased from 71.4% to 72.4%.
- When combined with standard optimization "tricks" like re-ranking, the model achieved a Rank-1 accuracy of 91.3%.
Adversarial Robustness
The most significant gains were observed in adversarial scenarios. Under a "DMR" black-box adversarial attack, the accuracy of a standard ResNet plummeted to 29.2%. However, the model equipped with LFM maintained an accuracy of 34.5%, significantly outperforming the 29.7% achieved by standard Dropout. This suggests that LFM helps the network ignore local perturbations by preventing over-reliance on specific local features (such as a specific button or logo on a garment).
Parameter Optimization
Ablation studies revealed that the optimal configuration for LFM involved masking 32 channels (exactly half of the initial 64 in the first block) with a masking probability of 15%.
Discussion and Conclusion
LFM represents a robust alternative to Dropout for convolutional architectures. By breaking the redundancy of shallow feature maps, it forces the network to develop a more flexible feature extractor. Furthermore, LFM is highly complementary; it can be used alongside input-level masking (Cutout) and deep-layer regularization (Dropout) to provide a multi-layered defense against overfitting.
Future work may involve automating hyperparameter tuning through evolutionary computation and testing LFM on broader tasks such as ImageNet classification or COCO object detection to further validate its general utility across diverse computer vision domains.
Summary updated