arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2309.13682cs.CVcs.LG
收藏

Causal-DFQ:因果引导的无数据网络量化

Causal-DFQ: Causality Guided Data-free Network Quantization

Illinois Institute of Technology(伊利诺伊理工学院);Cisco Research(思科研究院)

Yuzhang Shang, Bingxin Xu, Gaowen Liu, Ramana Kompella, Yan Yan

AI总结:

针对无数据网络量化缺乏训练数据的问题,本文构建因果图并提出 Causal-DFQ,通过内容—风格解耦生成与干预分布对齐实现量化,实验验证了其有效性。

摘要:

模型量化旨在压缩深度神经网络并加快推理速度,极大促进了笨重模型在移动和边缘设备上的部署。以往量化方法通常假设训练数据可用。然而在实践中,由于隐私和安全原因,这一假设并不总能满足,导致这些方法无法适用于真实场景。因此,无数据网络量化最近在神经网络压缩领域受到广泛关注。因果推理为建模因果关系以消除数据驱动的相关性提供了直观方式,使因果性成为分析无数据问题的重要组成部分。然而,文献中对无数据量化的因果形式化仍不充分。为弥补这一差距,我们构建了一个因果图,用于建模数据生成以及预训练模型与量化模型之间的差异缩减。受因果理解启发,我们提出了因果引导的无数据网络量化方法 Causal-DFQ,通过趋近因果驱动的干预分布之间的均衡来消除对数据的依赖。具体而言,我们设计了一个内容—风格解耦生成器,根据相关因素和不相关因素合成图像;随后提出一种差异缩减损失,以对齐预训练模型和量化模型的干预分布。值得注意的是,我们的工作是将因果性引入无数据量化问题的首次尝试。大量实验证明了 Causal-DFQ 的有效性。代码可在 https://github.com/42Shawn/Causal-DFQ 获取。

英文摘要:

Model quantization, which aims to compress deep neural networks and accelerate inference speed, has greatly facilitated the development of cumbersome models on mobile and edge devices. There is a common assumption in quantization methods from prior works that training data is available. In practice, however, this assumption cannot always be fulfilled due to reasons of privacy and security, rendering these methods inapplicable in real-life situations. Thus, data-free network quantization has recently received significant attention in neural network compression. Causal reasoning provides an intuitive way to model causal relationships to eliminate data-driven correlations, making causality an essential component of analyzing data-free problems. However, causal formulations of data-free quantization are inadequate in the literature. To bridge this gap, we construct a causal graph to model the data generation and discrepancy reduction between the pre-trained and quantized models. Inspired by the causal understanding, we propose the Causality-guided Data-free Network Quantization method, Causal-DFQ, to eliminate the reliance on data via approaching an equilibrium of causality-driven intervened distributions. Specifically, we design a content-style-decoupled generator, synthesizing images conditioned on the relevant and irrelevant factors; then we propose a discrepancy reduction loss to align the intervened distributions of the pre-trained and quantized models. It is worth noting that our work is the first attempt towards introducing causality to data-free quantization problem. Extensive experiments demonstrate the efficacy of Causal-DFQ. The code is available at https://github.com/42Shawn/Causal-DFQ.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑