arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2408.14513cs.LGcs.AI
收藏

基于变分自编码器的神经网络模型压缩

Variational autoencoder-based neural network model compression

University of Oslo(奥斯陆大学);Xidian University(西安电子科技大学);Shenyang Institute of Automation(沈阳自动化研究所)

Liang Cheng, Peiyuan Guan, Amir Taherkordi, Lei Liu, Dapeng Lan

AI总结:

本文提出一种基于变分自编码器(VAE)的神经网络模型压缩方法,通过将FNN、CNN、RNN和LSTM等模型的参数变体输入VAE进行训练,利用潜在空间表示模型参数,实验证明该方法相比剪枝和量化等传统方法能提高压缩率且不明显影响准确率。

摘要:

变分自编码器(VAEs)作为一种深度生成模型,近年来被广泛使用,并在图像生成和异常检测等多个不同领域展现出优异的性能。本文旨在探索基于VAE的神经网络模型压缩方法。实验使用不同的神经网络模型进行MNIST识别作为压缩目标,包括前馈神经网络(FNN)、卷积神经网络(CNN)、循环神经网络(RNN)和长短期记忆网络(LSTM)。这些模型是深度学习中最基础的模型,其他更复杂、更先进的模型都是基于它们或继承其特性演化而来。在实验中,第一步是训练上述模型,每个训练好的模型将具有不同的准确率和总参数量。然后,将每个模型的参数变体分别作为VAEs的训练数据进行处理,并使用真实的模型参数测试训练好的VAEs。实验结果表明,与剪枝和量化等传统方法相比,使用潜在空间作为模型压缩的表示可以提高压缩率,同时使用基于潜在空间重构的模型参数不会使准确率受到很大影响。未来,各种不同的大规模深度学习模型将被更广泛地使用,因此探索在保存或传输模型时节省时间和空间的不同方法将变得必要,本文中对VAE的使用可以为这些进一步的探索提供基础。

英文摘要:

Variational Autoencoders (VAEs), as a form of deep generative model, have been widely used in recent years, and shown great great peformance in a number of different domains, including image generation and anomaly detection, etc.. This paper aims to explore neural network model compression method based on VAE. The experiment uses different neural network models for MNIST recognition as compression targets, including Feedforward Neural Network (FNN), Convolutional Neural Network (CNN), Recurrent Neural Network (RNN) and Long Short-Term Memory (LSTM). These models are the most basic models in deep learning, and other more complex and advanced models are based on them or inherit their features and evolve. In the experiment, the first step is to train the models mentioned above, each trained model will have different accuracy and number of total parameters. And then the variants of parameters for each model are processed as training data in VAEs separately, and the trained VAEs are tested by the true model parameters. The experimental results show that using the latent space as a representation of the model compression can improve the compression rate compared to some traditional methods such as pruning and quantization, meanwhile the accuracy is not greatly affected using the model parameters reconstructed based on the latent space. In the future, a variety of different large-scale deep learning models will be used more widely, so exploring different ways to save time and space on saving or transferring models will become necessary, and the use of VAE in this paper can provide a basis for these further explorations.

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

↑