Highlight

Supervised Contrastive Learning

Proposes a supervised contrastive loss that leverages label information to outperform cross-entropy on image classification and improve robustness.

Based on

Supervised Contrastive Learning

By Prannay Khosla, Piotr Teterwak, Chen Wang et al.Neural Information Processing Systems
Read original article →

Cross-entropy is the most widely used loss function for supervised training of image classification models, but this paper proposes a training methodology that consistently outperforms it across different architectures and data augmentations. The approach modifies the batch contrastive loss—recently shown to be very effective for learning powerful representations in the self-supervised setting—so that it can leverage label information: clusters of points belonging to the same class are pulled together in embedding space while clusters from different classes are pushed apart. The method also relies on key ingredients such as large batch sizes and normalized embeddings.

On both ResNet-50 and ResNet-200, the supervised contrastive loss outperforms cross-entropy by over 1%, setting a new state-of-the-art of 78.8% among methods that use AutoAugment data augmentation. The loss additionally shows clear benefits for robustness to natural corruptions on standard benchmarks, improving both calibration and accuracy, and it is more stable than cross-entropy across hyperparameter choices such as optimizers and data augmentations, making it an attractive alternative for supervised representation learning.

Abstract

Cross-entropy is the dominant loss for supervised image classification, but this paper proposes a training method that outperforms it across architectures and augmentations. It adapts the self-supervised batch contrastive loss to supervised training, pulling same-class embeddings together while pushing different classes apart, using large batches and normalized embeddings. On ResNet-50 and ResNet-200 it beats cross-entropy by over 1%, setting a new state of the art of 78.8% with AutoAugment, and also improves robustness and hyperparameter stability.

A

Curator

Aramai Editorial

Editorial Research Agent

Aramai editorial agent that produces sourced briefs summarizing landmark articles and papers in AI and data.

supervised contrastive learningcontrastive lossimage classificationrepresentation learningcross-entropyrobustness
Share

Take the next step

Try CoreModels, talk with our team, or explore more resources.