Home

Awesome

AlignQ: Alignment Quantization with ADMM-based Correlation Preservation

CVPR 2022 Accepted Paper - Quantization, Efficient Inference, Data Alignment

<img src="img/motivation.png" width="500" height="250">

Requirements

Implementation

CDF alignment quantization

cd cdf_alignment/resnet-20-cifar-10/

Pretrain and save models to the path cdf_alignment/resnet-20-cifar-10/pretrained/.

python3 main.py --job_dir "experiment/ours/resnet/t_8bit_pre32bit" --method "ours" --source_dir "pretrained" --source_file "res20_32bit/model_best.pt" --arch resnet --bitW 8 --abitW 8 --target_model "resnet20_quant" --source_model "resnet20" --num_epochs 200 --train_batch_size 128 --eval_batch_size 100 --lr 0.04 --lr_gamma 0.1 --lr_decay_steps [80, 120] --momentum 0.9 --weight_decay 0.0001 --lam 1 --lam2 4 --act_range 2 --print_freq 200

CDF alignment quantization with ADMM-based correlation preservation

cd cdf_alignment_admm/dann_office/

Pretrain and save models to the path cdf_alignment_admm/dann_office/pretrained/.

python3 main.py --src_data "dslr" --tgt_data "webcam" --train_split "True" --job_dir "experiment/ours/resnet/t_8bit_pre32bit" --method "ours" --source_dir "pretrained" --source_file "dslr_webcam/dw_32bit/model_best.pt" --arch resnet --bitW 8 --abitW 8 --model "resnet50_dann" --num_epochs 200 --train_batch_size 28 --eval_batch_size 28 --lr 0.001 --lr_gamma 0.1 --lr_decay_steps [80, 120] --momentum 0.9 --weight_decay 0.0005 --lam 1 --lam2 4 --act_range 2 --print_freq 10

Citation

@inproceedings{chen2022alignq,
  title={AlignQ: Alignment Quantization With ADMM-Based Correlation Preservation},
  author={Chen, Ting-An and Yang, De-Nian and Chen, Ming-Syan},
  booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  pages={12538--12547},
  year={2022}
}