arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2010.08689cs.LGstat.ML
收藏

通过端到端训练实现紧凑的神经网络:具有自动秩确定的贝叶斯张量方法

Towards Compact Neural Networks via End-to-End Training: A Bayesian Tensor Approach with Automatic Rank Determination

University of California Santa Barbara(加州大学圣巴巴拉分校);Department of Mathematics, University of California Santa Barbara(加州大学圣巴巴拉分校数学系);Department of Electrical and Computer Engineering, University of California Santa Barbara(加州大学圣巴巴拉分校电气与计算机工程系);Facebook AI Systems Hardware/Software Co-design(Facebook人工智能系统硬件/软件协同设计)

Cole Hawkins, Xing Liu, Zheng Zhang

摘要:

虽然后训练模型压缩可以大大降低深度神经网络的推理成本,但未压缩的训练仍然会消耗大量的硬件资源、运行时间和能量。非常希望以低存储器和低计算成本从头开始直接训练紧凑的神经网络。低秩张量分解是降低大规模神经网络存储和计算需求的有效方法之一。然而,直接训练一个低秩张量化神经网络是一个非常具有挑战性的任务,因为很难确定一个合适的张量秩{ \it a priori},它控制着训练过程中模型的复杂度和压缩比。本文提出了一种新的端到端的框架低秩张量训练的神经网络。我们首先开发了一个灵活的贝叶斯模型,可以处理各种低秩张量格式(例如,CP、Tucker、张量训练和张量-训练矩阵),其在训练中压缩神经网络参数。该模型可以自动确定非线性正演模型中张量的秩,这是现有贝叶斯张量方法无法实现的。我们进一步开发了一个可扩展的随机变分推理求解器来估计训练中大规模问题的后验密度。我们的工作为端到端张量化训练提供了第一个通用的秩自适应框架。我们对各种神经网络架构的数值结果表明,在训练过程中,参数的数量级减少和精度损失很小(甚至更好的精度)。具体来说,在具有超过$4.2\times 10^9$模型参数的非常大的深度学习推荐系统上,我们的方法可以在训练过程中自动将变量减少到只有$1.6\times 10^5$(即,$2.6\times 10^4$倍),同时达到几乎相同的精度。

英文摘要:

While post-training model compression can greatly reduce the inference cost of a deep neural network, uncompressed training still consumes a huge amount of hardware resources, run-time and energy. It is highly desirable to directly train a compact neural network from scratch with low memory and low computational cost. Low-rank tensor decomposition is one of the most effective approaches to reduce the memory and computing requirements of large-size neural networks. However, directly training a low-rank tensorized neural network is a very challenging task because it is hard to determine a proper tensor rank {\it a priori}, which controls the model complexity and compression ratio in the training process. This paper presents a novel end-to-end framework for low-rank tensorized training of neural networks. We first develop a flexible Bayesian model that can handle various low-rank tensor formats (e.g., CP, Tucker, tensor train and tensor-train matrix) that compress neural network parameters in training. This model can automatically determine the tensor ranks inside a nonlinear forward model, which is beyond the capability of existing Bayesian tensor methods. We further develop a scalable stochastic variational inference solver to estimate the posterior density of large-scale problems in training. Our work provides the first general-purpose rank-adaptive framework for end-to-end tensorized training. Our numerical results on various neural network architectures show orders-of-magnitude parameter reduction and little accuracy loss (or even better accuracy) in the training process. Specifically, on a very large deep learning recommendation system with over $4.2\times 10^9$ model parameters, our method can reduce the variables to only $1.6\times 10^5$ automatically in the training process (i.e., by $2.6\times 10^4$ times) while achieving almost the same accuracy.

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

↑