Self-Contrastive Learning: Single-viewed Supervised Contrastive Framework using Sub-network

Sangmin Bae, Sungnyun Kim, Jongwoo Ko, Gihun Lee, Seungjong Noh +1 more
6/29/2021
19 citations
cs.LGcs.AI
contrastive-ssl

Official code: raymin0223/self-contrastive-learning (21 stars, Python, MIT, PyTorch, last commit 2023-10-28).

Abstract

Contrastive loss has significantly improved performance in supervised classification tasks by using a multi-viewed framework that leverages augmentation and label information. The augmentation enables contrast with another view of a single image but enlarges training time and memory usage.

Show full abstract

To exploit the strength of multi-views while avoiding the high computation cost, we introduce a multi-exit architecture that outputs multiple features of a single image in a single-viewed framework. To this end, we propose Self-Contrastive (SelfCon) learning, which self-contrasts within multiple outputs from the different levels of a single network. The multi-exit architecture efficiently replaces multi-augmented images and leverages various information from different layers of a network. We demonstrate that SelfCon learning improves the classification performance of the encoder network, and empirically analyze its advantages in terms of the single-view and the sub-network. Furthermore, we provide theoretical evidence of the performance increase based on the mutual information bound. For ImageNet classification on ResNet-50, SelfCon improves accuracy by +0.6% with 59% memory and 48% time of Supervised Contrastive learning, and a simple ensemble of multi-exit outputs boosts performance up to +1.5%. Our code is available at https://github.com/raymin0223/self-contrastive-learning.

View on arXivView PDF

Code Implementations(1)

PyTorchMIT

Self-Contrastive Learning: Single-viewed Supervised Contrastive Framework using Sub-network (AAAI 2023)

211Python, ShellNov 23, 20223 years agoMIT
contrastive-learningmulti-exit-architecturespytorchsingle-viewed-contrastivesupervised-contrastive-learning

Similar Papers

Cite this paper

@article{bae2021selfcontrastive,
  title  = {Self-Contrastive Learning: Single-viewed Supervised Contrastive Framework using Sub-network},
  author = {Sangmin Bae and Sungnyun Kim and Jongwoo Ko and Gihun Lee and Seungjong Noh and Se-Young Yun},
  year   = {2021},
  eprint = {2106.15499},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.15499}
}

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/2106.15499.svg)](https://codeofpaper.com/paper/2106.15499)

Discussion