DKM: Differentiable k-Means Clustering Layer for Neural Network Compression
Minsik Cho, Keivan Alizadeh-Vahid, Saurabh Adya, Mohammad Rastegari
摘要
Deep neural network (DNN) model compression for efficient on-device inference is becoming increasingly important to reduce memory requirements and keep user data on-device. To this end, we propose a novel differentiable k-means clustering layer (DKM) and its application to train-time weight clustering-based DNN model compression. DKM casts k-means clustering as an attention problem and enables joint optimization of the DNN parameters and clustering centroids. Unlike prior works that rely on additional regularizers and parameters, DKM-based compression keeps the original loss function and model architecture fixed. We evaluated DKM-based compression on various DNN models for computer vision and natural language processing (NLP) tasks. Our results demonstrate that DKM delivers superior compression and accuracy trade-off on ImageNet1k and GLUE benchmarks. For example, DKM-based compression can offer 74.5% top-1 ImageNet1k accuracy on ResNet50 DNN model with 3.3MB model size (29.4x model compression factor). For MobileNet-v1, which is a challenging DNN to compress, DKM delivers 63.9% top-1 ImageNet1k accuracy with 0.72 MB model size (22.4x model compression factor). This result is 6.8% higher top-1accuracy and 33% relatively smaller model size than the current state-of-the-art DNN compression algorithms. Additionally, DKM enables compression of DistilBERT model by 11.8x with minimal (1.1%) accuracy loss on GLUE NLP benchmarks.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 6 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- PDP: Parameter-free Differentiable Pruning is All You Need 引用了 Additive Powers-of-Two Quantization: An Efficient Non-uniform Discretization for Neural Networks
- Stable and low-precision training for large-scale vision-language models 引用了 Training with Quantization Noise for Extreme Model Compression
- VPTQ: Extreme Low-bit Vector Post-Training Quantization for Large Language Models 引用了 Training with Quantization Noise for Extreme Model Compression
- VPTQ: Extreme Low-bit Vector Post-Training Quantization for Large Language Models 引用了 HAWQ-V2: Hessian Aware trace-Weighted Quantization of Neural Networks
- Revisiting the Parameter Efficiency of Adapters from the Perspective of Precision Redundancy 引用了 Up or Down? Adaptive Rounding for Post-Training Quantization
引用它的顶会 Paper6
- Stable and low-precision training for large-scale vision-language modelsMitchell Wortsman, Tim Dettmers, Luke Zettlemoyer, Ari Morcos 等NeurIPS 2023 · 101 次引用
- Revisiting the Parameter Efficiency of Adapters from the Perspective of Precision RedundancyShibo Jie, Haoqing Wang, Zhi-Hong DengICCV 2023 · 50 次引用
- Recycling Model Updates in Federated Learning: Are Gradient Subspaces Low-Rank?Sheikh Shams Azam, Seyyedali Hosseinalipour, Qiang Qiu, Christopher G. BrintonICLR 2022 · 27 次引用
- PDP: Parameter-free Differentiable Pruning is All You NeedMinsik Cho, Saurabh Adya, Devang NaikNeurIPS 2023 · 24 次引用
- VPTQ: Extreme Low-bit Vector Post-Training Quantization for Large Language ModelsYifei Liu, Jicheng Wen, Yang Wang, Shengyu Ye 等EMNLP 2024 · 10 次引用
它引用的 Paper11
- Up or Down? Adaptive Rounding for Post-Training QuantizationMarkus Nagel, Rana Ali Amjad, Mart van Baalen, Christos Louizos 等ICML 2020 · 816 次引用
- MobileBERT: a Compact Task-Agnostic BERT for Resource-Limited DevicesZhiqing Sun, Hongkun Yu, Xiaodan Song, Renjie Liu 等ACL 2020 · 660 次引用
- HAWQ-V2: Hessian Aware trace-Weighted Quantization of Neural NetworksZhen Dong, Zhewei Yao, Daiyaan Arfeen, Amir Gholami 等NeurIPS 2020 · 434 次引用
- Additive Powers-of-Two Quantization: An Efficient Non-uniform Discretization for Neural NetworksYuhang Li, Xin Dong, Wei WangICLR 2020 · 315 次引用
- Training with Quantization Noise for Extreme Model CompressionPierre Stock, Angela Fan, Benjamin Graham, Edouard Grave 等ICLR 2021 · 262 次引用
相关 Paper
- OPQ: Compressing Deep Neural Networks with One-shot Pruning-QuantizationPeng Hu, Xi Peng, Hongyuan Zhu, Mohamed M. Sabry Aly 等AAAI 2021 · 79 次引用
- DRONE: Data-aware Low-rank Compression for Large NLP ModelsPatrick H. Chen, Hsiang-Fu Yu, Inderjit S. Dhillon, Cho-Jui HsiehNeurIPS 2021 · 109 次引用
- Deep Learning meets Projective ClusteringAlaa Maalouf, Harry Lang, Daniela Rus, Dan FeldmanICLR 2021 · 11 次引用
- Automatic Neural Network Compression by Sparsity-Quantization Joint Learning: A Constrained Optimization-Based ApproachHaichuan Yang, Shupeng Gui, Yuhao Zhu, Ji LiuCVPR 2020
- PatterNet: explore and exploit filter patterns for efficient deep neural networksBehnam Khaleghi, Uday Mallappa, Duygu Yaldiz, Haichao Yang 等DAC 2022 · 5 次引用
