The code for our AAAI'22 paper "Incentivizing Collaboration in Machine Learning via Synthetic Data Rewards" which received an Oral presentation (4.26% acceptance rate).
- Linux machine (experiments were run on Ubuntu 18.04.5 LTS and Ubuntu 20.04.2 LTS)
- NVIDIA GPU with CUDA 11.0 (experiments were run with NVIDIA GeForce GTX 1080 Ti and NVIDIA TITAN V)
- Anaconda (alternatively, you may install the packages in
environment.yml
manually)
In the main CGM
directory,
- Run the following script to download the datasets.
bash download.sh
- Run the following command to install the required Python packages into a new environment named CGM using Anaconda.
conda env create -f environment.yml
In the main CGM
directory,
- Change current environment to the CGM environment.
conda activate CGM
- Run the desired experiment. Valid values for
dataset
are{creditratings, creditcard, mnist, cifar}
, valid values forsplit
are{equaldisjoint, unequal}
, and valid values forinv_temp
are any non-negative real number.
python cgm.py with ${dataset} split=${split} inv_temp=${inv_temp}
# Example: to run the experiment on the creditcard dataset with the equal disjoint split and inv_temp = 1
python cgm.py with creditcard split=equaldisjoint inv_temp=1
- To replicate the correlation metrics in the paper for any dataset and split, run the following Python script to compute and display the metrics after all experiments with
inv_temp = {1, 2, 4, 8}
have completed.
python metrics.py wih ${dataset}
- To replicate the downstream supervised learning experiments in the paper for any dataset and split, run the following Python script to compute and display the metrics after all experiments with
inv_temp = {1, 2, 4, 8}
have completed.
python supervised.py wih ${dataset}
This code is released under the MIT License.
If you find our paper relevant or use our code in your research, please consider citing our paper:
@InProceedings{tay2021,
title={Incentivizing collaboration in machine learning via synthetic data rewards},
author={Sebastian Shenghong Tay, Xinyi Xu, Chuan Sheng Foo, Bryan Kian Hsiang Low},
booktitle={Proc. AAAI},
year={2022}
}