Quantization is a widely used compression method that effectively reduces redundancies in over-parameterized neural networks. However, existing quantization techniques for deep neural networks often lack a comprehensive error analysis due to the presence of non-convex loss functions and nonlinear activations. In this paper, we propose a fast stochastic algorithm for quantizing the weights of fully trained neural networks. Our approach leverages a greedy path-following mechanism in combination with a stochastic quantizer. Its computational complexity scales only linearly with the number of weights in the network, thereby enabling the efficient quantization of large networks. Importantly, we establish, for the first time, full-network error bounds, under an infinite alphabet condition and minimal assumptions on the weights and input data. As an application of this result, we prove that when quantizing a multi-layer network having Gaussian weights, the relative square quantization error exhibits a linear decay as the degree of over-parametrization increases. Furthermore, we demonstrate that it is possible to achieve error bounds equivalent to those obtained in the infinite alphabet case, using on the order of a mere $\log\log N$ bits per weight, where $N$ represents the largest number of neurons in a layer.
A Discussion on Parallelization Schemes for Stochastic Vector Quantization Algorithms
Telecom ParisTech(巴黎高等电信学院);Université Pierre et Marie Curie(皮埃尔和玛丽·居里大学(巴黎第六大学));Lokad(洛卡德公司);Université Paris I Panthéon-Sorbonne(巴黎第一大学(先贤祠-索邦大学))
本文研究了随机矢量量化算法的并行化方案,以利用分布式资源获得时间加速。我们发现,最直观的并行化方案并没有导致更好的性能比顺序算法。因此,另一个分布式计划,获得预期的加速。然后,它被改进,以适应分布式体系结构的通信速度慢,机器间的同步成本太高。该计划进行了测试,模拟分布式架构,并为最后一个,与Microsoft Windows Azure平台获得加速到32个虚拟机。
SDQ: Stochastic Differentiable Quantization with Mixed Precision
Hong Kong University of Science and Technology(香港科技大学);Mohamed bin Zayed University of Artificial Intelligence(穆罕默德·本·扎耶德人工智能大学);Jockey Club Institute for Advanced Study, HKUST(香港科技大学赛马会高等研究院);Reality Labs, Meta Inc(Meta公司现实实验室);ACCESS - AI Chip Center for Emerging Smart Systems(新兴智能系统AI芯片中心(ACCESS));Carnegie Mellon University(卡内基梅隆大学)
Diffusion Models as Stochastic Quantization in Lattice Field Theory
RIKEN(理化学研究所);Shanghai Research Center for Theoretical Nuclear Physics(上海理论核物理研究中心);Fudan University(复旦大学);Frankfurt Institute for Advanced Studies(法兰克福高级研究所);Swansea University(斯旺西大学);European Centre for Theoretical Studies in Nuclear Physics and Related Areas (ECT*)(欧洲核物理及相关领域理论研究中心);Fondazione Bruno Kessler(布鲁诺·凯塞勒基金会);School of Science and Engineering, The Chinese University of Hong Kong, Shenzhen (CUHK-Shenzhen)(香港中文大学(深圳)理工学院)
Improving the Robustness of Quantized Deep Neural Networks to White-Box Attacks using Stochastic Quantization and Information-Theoretic Ensemble Training
Center for Vision Technologies(视觉技术中心);SRI International(SRI国际)