winnerziqi / MACL

This repo is the code of paper "Model-Aware Contrastive Learning: Towards Escaping Dilemmas of InfoNCE".

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MACL: Model-Aware Contrastive Learning: Towards Escaping Dilemmas of InfoNCE

Todo list:

  • Release core code of MACL.
  • Pre-training code of MACL.
  • Pre-trained models.

Model Performance

Top1 linear evaluation accuracies on ImageNet1K:

Batch size 128 256 512 1024 2048
SimCLR 60.6 61.9 64.0 65.3 66.1
w/ MACL 61.6 64.3 65.2 66.5 66.9

Sentence embedding performance on STS tasks:

STS Tasks STS12 STS13 STS14 STS15 STS16 STSB SICKR Avg.
SimCSE-BERT 68.40 82.41 74.38 80.91 78.56 76.85 72.23 76.25
SimCSE-BERT+MACL 67.16 82.78 74.41 82.52 79.07 77.69 73.00 76.66
SimCSE-RoBERT 70.16 81.77 73.24 81.36 80.65 80.22 68.56 76.57
SimCSE-RoBERT+MACL 70.76 81.43 74.29 82.92 81.86 81.17 70.70 77.59

Graph representation learning performance:

Dataset NCI1 PROTEINS MUTAG RDT-B DD IMDB-B
GraphCL 77.87 74.39 86.80 89.53 78.62 71.14
w/ MACL 78.41 74.47 89.04 90.59 78.80 71.42

Acknowledgement

Many thanks to the nice work of MMSelfsup. Our codes and configs follow MOCO and SimCLR.

About

This repo is the code of paper "Model-Aware Contrastive Learning: Towards Escaping Dilemmas of InfoNCE".


Languages

Language:Python 100.0%