Abstract
Contrastive self-supervised learning (CSL) has emerged as a powerful paradigm for pre-training visual representations. However, the standard practice of fine-tuning these models using cross-entropy (CE) loss often fails to fully exploit the learned feature space, leading to suboptimal performance and "sharp" decision boundaries. We introduce Core-tuning (Contrast-regularized tuning), a novel fine-tuning framework that incorporates supervised contrastive regularization and a hardness-directed mixup strategy. By tightening intra-class features and smoothing decision boundaries, Core-tuning significantly improves generalization, data efficiency, and robustness across a wide range of downstream tasks.
Introduction
In modern computer vision, the standard workflow involves pre-training a model on large unlabeled datasets using CSL and subsequently fine-tuning it on specific labeled tasks. While CSL models learn to distribute features uniformly across a hypersphere to maximize instance discriminability, standard fine-tuning with Cross-Entropy (CE) loss often neglects the intra-class structure. CE loss is effective at separating different classes but less efficient at pulling members of the same class together, a phenomenon known as "intra-class scattering." This can result in brittle decision boundaries that overfit training data and struggle with domain shifts or adversarial perturbations.
Core-tuning Methodology
To address these limitations, Core-tuning introduces three primary components into the fine-tuning stage:
- Supervised Contrastive Regularization: The framework adds a supervised contrastive loss to the standard CE objective. This explicitly encourages the model to cluster features of the same class more tightly while maintaining separation between different classes.
- Hardness-Directed Mixup for Pair Mining: The effectiveness of contrastive learning depends heavily on the quality of training pairs. Core-tuning utilizes a novel mining strategy to generate hard positives (distant samples of the same class) and hard negatives (nearby samples of different classes) through convex combinations (mixup) in the feature space.
- Smooth Classifier Learning: By training the classifier on these synthesized mixed-up features, the model learns a smoother decision boundary that is pushed further away from the training points, enhancing generalization.
Additionally, a Focal Contrastive Loss is employed to prioritize informative hard pairs over easy ones that the model has already mastered, ensuring efficient gradient updates throughout training.
Experimental Evaluation
Core-tuning was evaluated across nine diverse image classification benchmarks, including ImageNet20, CIFAR, and specialized datasets like Oxford-IIIT Pets and FGVC Aircraft.
Key Results
As shown in the table below, Core-tuning consistently outperforms standard cross-entropy tuning (CE-tuning) and other state-of-the-art transfer learning methods such as L2-SP, DELTA, and Bi-tuning. On a MoCo-v2 pre-trained ResNet-50, Core-tuning achieved an average top-1 accuracy of 90.47%, a significant improvement over the 87.76% achieved by standard fine-tuning.
Beyond raw accuracy, the method demonstrated remarkable data efficiency. When trained on only 10% of ImageNet20 labels, Core-tuning outperformed the baseline by 25% (78.64% vs 52.97%). It also showed superior performance in Domain Generalization (e.g., +7.5% on the PACS dataset) and Adversarial Robustness, confirming that a more compact and smooth feature space is inherently more resilient.
Conclusion
Core-tuning bridges the gap between contrastive pre-training and supervised fine-tuning. By leveraging the mathematical synergy between contrastive and cross-entropy objectives, it creates more compact feature clusters and robust decision boundaries. The method is universal, showing gains across various pre-training algorithms (MoCo, SimCLR, SwAV) and architectures (ResNet, ViT), making it a powerful tool for practical transfer learning applications.
Summary updated