Sherrylone / M-Mix

SIGKDD 2022 paper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

M-Mix: Generating Hard Negatives via Multi-sample Mixing for Contrastive Learning

Code of SIGKDD 22 paper "M-Mix: Generating Hard Negatives via Multi-sample Mixing for Contrastive Learning"

M-Mix

This paper proposes to mix multiple samples in one mini-batch to generate hard negative pairs.

To pre-train the encoder on CIFAR-10 and CIFAR-100, run:

python main.py --dataset cifar10 (cifar100) --threshold 0.9

The config --threshold 0.9 is used for selecting negative samples to mix.

For graph and node classification. Run:

python main.py

You should download the dataset by yourself.

About

SIGKDD 2022 paper


Languages

Language:Python 99.6%Language:Shell 0.4%