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

多层嵌入训练模型降阶

Training with Multi-Layer Embeddings for Model Reduction

University of Texas at Austin(德克萨斯大学奥斯汀分校);E2OPEN(E2OPEN公司)

Benjamin Ghaemmaghami, Zihao Deng, Benjamin Cho, Leo Orshansky, Ashish Kumar Singh, Mattan Erez, Michael Orshansky

摘要:

现代推荐系统依赖于分类特征的实值嵌入。增加嵌入向量的维数可以提高模型的准确性,但会对模型的大小造成很高的代价。我们引入了一种多层嵌入训练(MLET)架构,该架构通过一系列线性层来训练嵌入,以获得卓越的嵌入精度与模型大小的权衡。我们的方法从根本上是基于因子分解的线性层产生优于单个线性层的嵌入的能力。我们重点分析和实现的两层计划。利用线性神经网络中反向传播动力学的最新结果,我们解释了通过具有较低有效秩的倾向来获得优越多层嵌入的能力。我们发现,在隐藏层的宽度远大于最终嵌入(d)的情况下,可以获得很大的优势。至关重要的是,在训练结束时,我们将双层解决方案转换为单层解决方案:因此,推理时间模型大小按d缩放。我们在Facebook基于PyTorch的开源深度学习推荐模型中原型化了MLET方案。我们表明,它允许减少4- 8倍的d,在内存占用相应的改善,在给定的模型精度。实验在两个公开的点击率预测基准(Criteo-Kaggle和Avazu)上运行。MLET的运行时间成本平均为25%。

英文摘要:

Modern recommendation systems rely on real-valued embeddings of categorical features. Increasing the dimension of embedding vectors improves model accuracy but comes at a high cost to model size. We introduce a multi-layer embedding training (MLET) architecture that trains embeddings via a sequence of linear layers to derive superior embedding accuracy vs. model size trade-off. Our approach is fundamentally based on the ability of factorized linear layers to produce superior embeddings to that of a single linear layer. We focus on the analysis and implementation of a two-layer scheme. Harnessing the recent results in dynamics of backpropagation in linear neural networks, we explain the ability to get superior multi-layer embeddings via their tendency to have lower effective rank. We show that substantial advantages are obtained in the regime where the width of the hidden layer is much larger than that of the final embedding (d). Crucially, at conclusion of training, we convert the two-layer solution into a single-layer one: as a result, the inference-time model size scales as d. We prototype the MLET scheme within Facebook's PyTorch-based open-source Deep Learning Recommendation Model. We show that it allows reducing d by 4-8X, with a corresponding improvement in memory footprint, at given model accuracy. The experiments are run on two publicly available click-through-rate prediction benchmarks (Criteo-Kaggle and Avazu). The runtime cost of MLET is 25%, on average.

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

↑