Supervised Contrastive Learning with Heterogeneous Similarity for Distribution Shifts

Takuro Kutsuna
4/7/2023
cs.LGstat.ML

No confident code implementation found for this paper.

Abstract

Distribution shifts are problems where the distribution of data changes between training and testing, which can significantly degrade the performance of a model deployed in the real world. Recent studies suggest that one reason for the degradation is a type of overfitting, and that proper regularization can mitigate the degradation, especially when using highly representative models such as neural networks. In this paper, we propose a new regularization using the supervised contrastive learning to prevent such overfitting and to train models that do not degrade their performance under the distribution shifts. We extend the cosine similarity in contrastive loss to a more general similarity measure and propose to use different parameters in the measure when comparing a sample to a positive or negative example, which is analytically shown to act as a kind of margin in contrastive loss. Experiments on benchmark datasets that emulate distribution shifts, including subpopulation shift and domain generalization, demonstrate the advantage of the proposed method over existing regularization methods.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{kutsuna2023supervised,
  title  = {Supervised Contrastive Learning with Heterogeneous Similarity for Distribution Shifts},
  author = {Takuro Kutsuna},
  year   = {2023},
  eprint = {2304.03440},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2304.03440v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2304.03440.svg)](https://codeofpaper.com/paper/2304.03440)

Discussion