Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/Sherrylone/m-mix

SIGKDD 2022 paper
https://github.com/Sherrylone/m-mix

Last synced: 3 months ago
JSON representation

SIGKDD 2022 paper

Awesome Lists containing this project

README

        

# 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](https://sherrylone.github.io/assets/KDD22_M-Mix.pdf)"

![M-Mix](./framework.png)

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.