arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.06058cs.LGcs.AI
收藏

使用指数级更少变分参数的张量网络压缩神经网络

Compressing Neural Networks Using Tensor Networks with Exponentially Fewer Variational Parameters

Department of Physics, Capital Normal University(物理系,首都师范大学)

Yong Qing, Ke Li, Peng-Fei Zhou, Shi-Ju Ran

AI总结:

本文提出一种通用压缩方案,将神经网络参数编码为深度自动可微分张量网络(ADTN),以指数级更少的参数实现高效压缩,并在多个网络和数据集上验证了其优越性,如VGG-16参数从10^7降至424,准确率提升。

摘要:

为具有挑战性的机器学习任务设计的神经网络(NN)通常是一种包含大量变分参数的高度非线性映射。如果神经网络的高复杂度不受限制或约束,可能会不可预测地导致严重问题,包括过拟合、泛化能力丧失以及难以承受的硬件成本。在这项工作中,我们提出了一种通用压缩方案,该方案通过将神经网络(无论其具体类型,如线性层、卷积层等)编码为包含指数级更少自由参数的深度自动可微分张量网络(ADTN),显著减少了神经网络的变分参数。我们方案优越的压缩性能在多个广泛认可的神经网络(FC-2、LeNet-5、AlexNet、ZFNet和VGG-16)和数据集(MNIST、CIFAR-10和CIFAR-100)上得到了验证。例如,我们将VGG-16中两个约含10^7个参数的线性层压缩为仅含424个参数的两个ADTN,将CIFAR-10上的测试准确率从90.17%提高到91.74%。我们认为,与现有主要基于张量分解/因子分解和浅层张量网络的压缩方案相比,ADTN的深层结构是其显著压缩性能的关键原因。我们的工作表明,深度张量网络作为一种异常高效的数学结构,用于表示神经网络的变分参数,其可压缩性优于常用的矩阵和多维数组。

英文摘要:

Neural network (NN) designed for challenging machine learning tasks is in general a highly nonlinear mapping that contains massive variational parameters. High complexity of NN, if unbounded or unconstrained, might unpredictably cause severe issues including \R{overfitting}, loss of generalization power, and unbearable cost of hardware. In this work, we propose a general compression scheme that significantly reduces the variational parameters of NN's, despite of their specific types (linear, convolutional, \textit{etc}), by encoding them to deep \R{automatically differentiable} tensor network (ADTN) that contains exponentially-fewer free parameters. Superior compression performance of our scheme is demonstrated on several widely-recognized NN's (FC-2, LeNet-5, AlextNet, ZFNet and VGG-16) and datasets (MNIST, CIFAR-10 and CIFAR-100). For instance, we compress two linear layers in VGG-16 with approximately $10^{7}$ parameters to two ADTN's with just 424 parameters, improving the testing accuracy on CIFAR-10 from $90.17\%$ to $91.74\%$. We argue that the deep structure of ADTN is an essential reason for the remarkable compression performance of ADTN, compared to existing compression schemes that are mainly based on tensor decompositions/factorization and shallow tensor networks. Our work suggests deep TN as an exceptionally efficient mathematical structure for representing the variational parameters of NN's, which exhibits superior compressibility over the commonly-used matrices and multi-way arrays.

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

↑