Home

Awesome

Sanity Checks for Lottery Tickets: Does Your Winning Ticket Really Win the Jackpot?

Sample code use for NeurIPS 2021 paper: Sanity Checks for Lottery Tickets: Does Your Winning Ticket Really Win the Jackpot?

CIFAR-10 and CIFAR-100

Requirements

python >= 3.6

PyTorch >= 1.6

TorchVision >= 0.7

Other required dependency: numpy, pyyaml, matplotlib, tensorboardX, opencv-python , sklearn, scikit-image.

Main pipeline

We prune globally. The layers that are considered "global" is defined in the corresponding .yaml files. Once we prune globally, the sparsity ratio in the .yaml file will be override by the global sparsity. There are five necessary settings for the LTH experimens (using resnet-20 as example):

ImageNet-1k

Requirements

For easy implementation, we suggest to use nvidia-docker with CUDA-11 for the training environments. We have pre-built the ready-to-run nvidia-docker image here.

Main pipeline

Similar with CIFAR experiments, there are five necessary settings for the LTH experimens (using resnet-50 as example):

Citation

if you find this repo is helpful, please cite

@article{ma2021sanity,
  title={Sanity Checks for Lottery Tickets: Does Your Winning Ticket Really Win the Jackpot?},
  author={Ma, Xiaolong and Yuan, Geng and Shen, Xuan and Chen, Tianlong and Chen, Xuxi and Chen, Xiaohan and Liu, Ning and Qin, Minghai and Liu, Sijia and Wang, Zhangyang and others},
  journal={Advances in Neural Information Processing Systems},
  volume={34},
  year={2021}
}