Introduction
Transfer learning is a cornerstone of modern deep learning, enabling the training of complex models on small target datasets by leveraging knowledge from large-scale source datasets like ImageNet. However, when the target data is extremely limited, standard fine-tuning often leads to severe overfitting. Existing regularization methods, such as L2-SP or DELTA, attempt to mitigate this by constraining the target model to remain close to the source model. This can lead to "negative transfer" if the source and target domains are significantly different.
Sample-based Regularization (SBR)
To address these limitations, the authors propose Sample-based Regularization (SBR). Unlike previous methods that anchor the model to a source reference, SBR focuses on the intrinsic relationships within the target data itself.
Core Components
- SBR Loss: This loss function encourages feature representations of samples from the same class to be similar. By maximizing intra-class similarity, the model learns a more robust and transferable feature space. Crucially, it does not explicitly push different classes apart, leaving that task to the standard cross-entropy loss ($L_{cls}$).
- Gradient Reduction Layer: A novel "gradient-reduce layer" is inserted between the feature extractor and the classifier. It scales down the gradients from the classification loss by a factor $\alpha$ before they reach the feature extractor. This prevents the network from prematurely over-fitting to the sparse labels of the small target dataset, forcing it to rely more on the structural regularization provided by the SBR loss.
- Computational Efficiency: The SBR loss is mathematically simplified from $O(N^2)$ pairwise calculations to an $O(N)$ form that computes distances to class means within a mini-batch, making it highly efficient for training.
Experimental Setup
The effectiveness of SBR was evaluated across various fine-grained classification tasks using two distinct source models: ImageNet-1k (object-centric) and Places365 (scene-centric).
The target datasets included CUB-200-2011, FGVC Aircraft, Stanford Cars, Stanford Dogs, and Oxford Flowers. To simulate extreme data scarcity, the researchers tested performance using subsets of the training data (15%, 30%, 50%, and 100%).
Key Results and Insights
SBR consistently outperforms state-of-the-art methods like L2-SP, DELTA, and BSS. The performance gap is most pronounced in low-data regimes. For instance, on the CUB-200 dataset with only 15% of the training data, SBR achieved a 13.69% accuracy improvement over the baseline, whereas previous methods showed negligible gains.
The success of SBR stems from several key insights:
- Independence from Source Models: By treating the source model only as an initialization point rather than a permanent constraint, SBR avoids negative transfer.
- Robust Feature Clustering: t-SNE visualizations confirm that SBR leads to tighter, more distinct clusters in the feature space for test data, which directly translates to better generalization.
- Balanced Learning: The gradient reduction layer ensures that the feature extractor evolves "slowly" and meaningfully, guided by the data's internal structure rather than just label memorization.
Conclusion
Sample-based Regularization represents a significant shift in transfer learning strategy. By prioritizing intra-class sample relationships over source-model mimicry, it provides a robust solution for deep learning in data-starved environments. Future work may explore its application in semi-supervised learning or training from scratch.
Summary updated