This is the repository for the paper Profiling Privacy Preservation Under Gradient Inversion Attacks in Tabular Federated Learning.
This section describes how to install the code and run the experiments used in the paper.
For GPU support, install a CUDA-enabled PyTorch build first. For example:
pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cu128Then install the repository dependencies:
pip install -r requirements.txtFor CPU-only installation, run only:
pip install -r requirements.txtDatasets are not committed to this repository. Download the Adult or California Housing dataset.
cd tabular_giaAdult:
chmod +x download_datasets.sh
./download_datasets.sh dataCalifornia Housing:
python data/download_california_housing.pyMIMIC-IV requires credentialed PhysioNet access. Restricted datasets are not redistributed in this repository.
Make sure the config files in configs/:
base.pydataset/dataset.pyfl/fedsgd.pyfl/fedavg.pygia/gia.pymodel/model.py
Make sure the configs are set to what you want to run and that for instance the data path correctly points to the downloaded dataset(s). The generic sweep experiment uses configs/sweep.yaml.
Run with the current config files:
python main.pyOutputs are written to tabular_gia/results/.
Values for experiment_name can be found in tabular_gia/experiments/registry.py. Configs are hardcoded in each experiment file.
python main.py --experiment [experiment_name]for instance:
python main.py --experiment fedsgdbatchsizesCitation information will be added after publication.
See the manuscript for full authorship.