[Paper Review] Rethinking Supervised Pre-training for Better Downstream Transferring
This paper proposes LOOK (Leave-One-Out K-Nearest-Neighbor), a novel supervised pre-training method that improves downstream transferability by preserving intra-class semantic diversity. Instead of forcing all images of the same class into a single cluster, LOOK uses a kNN-based loss that requires each image to share its class label with most of its k nearest neighbors, enabling multi-modal class distributions and better representation of visual variations, resulting in state-of-the-art performance across multiple downstream tasks including classification, detection, and segmentation.
The pretrain-finetune paradigm has shown outstanding performance on many applications of deep learning, where a model is pre-trained on a upstream large dataset (e.g. ImageNet), and is then fine-tuned to different downstream tasks. Though for most cases, the pre-training stage is conducted based on supervised methods, recent works on self-supervised pre-training have shown powerful transferability and even outperform supervised pre-training on multiple downstream tasks. It thus remains an open question how to better generalize supervised pre-training model to downstream tasks. In this paper, we argue that the worse transferability of existing supervised pre-training methods arise from the negligence of valuable intra-class semantic difference. This is because these methods tend to push images from the same class close to each other despite of the large diversity in their visual contents, a problem to which referred as "overfit of upstream tasks". To alleviate this problem, we propose a new supervised pre-training method based on Leave-One-Out K-Nearest-Neighbor, or LOOK for short. It relieves the problem of overfitting upstream tasks by only requiring each image to share its class label with most of its k nearest neighbors, thus allowing each class to exhibit a multi-mode distribution and consequentially preserving part of intra-class difference for better transferring to downstream tasks. We developed efficient implementation of the proposed method that scales well to large datasets. Experimental studies on multiple downstream tasks show that LOOK outperforms other state-of-the-art methods for supervised and self-supervised pre-training.
Motivation & Objective
- To address the poor transferability of existing supervised pre-training methods, which overfit to upstream tasks by collapsing intra-class variations into single clusters.
- To improve downstream performance by preserving semantic differences within classes, especially for fine-grained or diverse visual categories.
- To develop a scalable, efficient implementation of a kNN-based loss that maintains high performance on large-scale datasets.
- To demonstrate that relaxed classification constraints—requiring only majority agreement among k nearest neighbors—lead to better generalization than strict cross-entropy or contrastive learning.
Proposed method
- Replace the final classifier head in a deep neural network with a weighted kNN classifier to allow flexible, local decision boundaries.
- Use a leave-one-out kNN classification error as the loss function, where each sample is evaluated on whether its class matches the majority class of its k nearest neighbors.
- Train the model end-to-end using this loss, which encourages the feature space to preserve intra-class diversity by allowing multi-modal distributions.
- Introduce an improved two-augmented-view version of LOOK to enhance locality sensitivity and improve performance on detection and segmentation tasks.
- Implement an efficient, differentiable kNN approximation to scale the method to large-scale datasets like ImageNet and COCO.
- Apply temperature decay during training to stabilize the positive sample selection and improve optimization stability.
Experimental results
Research questions
- RQ1Can relaxing the classification constraint in supervised pre-training improve downstream transferability by preserving intra-class semantic diversity?
- RQ2Does a kNN-based loss that only requires agreement with the majority of k nearest neighbors lead to better feature representations than standard cross-entropy or contrastive learning?
- RQ3How does the proposed LOOK method compare to state-of-the-art supervised and self-supervised pre-training methods across diverse downstream tasks?
- RQ4To what extent does the kNN-based approach preserve high-level semantic features while avoiding overfitting to visual background or spurious correlations?
Key findings
- LOOK outperforms standard cross-entropy and supervised contrastive learning on ImageNet linear probing, achieving higher top-1 accuracy across multiple backbone architectures.
- On COCO object detection and instance segmentation benchmarks, the two-augmented-view version of LOOK achieves competitive or superior performance compared to self-supervised methods like MoCo-v2 and BYOL.
- Visualization of attention maps shows that LOOK focuses on more semantic details beyond the core object, unlike SupCon, which neglects non-label-related but semantically relevant elements.
- The attention maps of MoCo-v2 are more uniformly distributed across the image, which benefits localization tasks, while LOOK strikes a balance by preserving both global and local semantics.
- The method demonstrates robustness to hyperparameter choices, particularly temperature decay, due to stable positive sample selection via kNN filtering.
- Empirical results confirm that preserving intra-class variation through kNN-based supervision leads to better generalization, especially on fine-grained classification and complex scene understanding tasks.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.