arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2105.01029stat.MLcs.AIcs.CLcs.CVcs.LG
收藏

因子化神经层的正则化与重构

Initialization and Regularization of Factorized Neural Layers

Carnegie Mellon University(卡内基梅隆大学);Microsoft Research(微软研究院)

Mikhail Khodak, Neil Tenenholtz, Lester Mackey, Nicolò Fusi

摘要:

分解层(由两个或多个矩阵的乘积参数化的操作)出现在各种深度学习环境中,包括压缩模型训练,某些类型的知识蒸馏和多头自注意架构。我们研究了如何初始化和正则化包含这些层的深层网络,研究了两个简单的,未充分研究的方案,频谱初始化和Frobenius衰减,以提高其性能。指导性的见解是为这些网络设计尽可能接近其良好调整的非分解对应物的优化例程;我们通过分析初始化和正则化方案如何影响梯度下降训练来支持这种直觉,借鉴现代尝试理解权重衰减和批量归一化的相互作用。从经验上讲,我们强调了光谱初始化和Frobenius衰减在各种设置中的好处。在模型压缩中,我们证明了它们使低秩方法在训练低内存残差网络的任务上显著优于非结构化稀疏性和张量方法;这些方案的类似物也提高了张量分解技术的性能。对于知识蒸馏,Frobenius衰变实现了一个简单的、过完备的基线,可以从过参数化训练中产生一个紧凑的模型,而不需要使用教师网络进行再训练或修剪。最后,我们展示了这两种方案如何应用于多头注意力,从而提高翻译和无监督预训练的性能。

英文摘要:

Factorized layers--operations parameterized by products of two or more matrices--occur in a variety of deep learning contexts, including compressed model training, certain types of knowledge distillation, and multi-head self-attention architectures. We study how to initialize and regularize deep nets containing such layers, examining two simple, understudied schemes, spectral initialization and Frobenius decay, for improving their performance. The guiding insight is to design optimization routines for these networks that are as close as possible to that of their well-tuned, non-decomposed counterparts; we back this intuition with an analysis of how the initialization and regularization schemes impact training with gradient descent, drawing on modern attempts to understand the interplay of weight-decay and batch-normalization. Empirically, we highlight the benefits of spectral initialization and Frobenius decay across a variety of settings. In model compression, we show that they enable low-rank methods to significantly outperform both unstructured sparsity and tensor methods on the task of training low-memory residual networks; analogs of the schemes also improve the performance of tensor decomposition techniques. For knowledge distillation, Frobenius decay enables a simple, overcomplete baseline that yields a compact model from over-parameterized training without requiring retraining with or pruning a teacher network. Finally, we show how both schemes applied to multi-head attention lead to improved performance on both translation and unsupervised pre-training.

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

↑