arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1901.10787cs.CLcs.LG
收藏

用于有效模型压缩的张量化嵌入层

Tensorized Embedding Layers for Efficient Model Compression

Skolkovo Institute of Science and Technology(斯科尔科沃科学技术研究院);Moscow Institute of Physics and Technology(莫斯科物理技术学院);Institute of Numerical Mathematics, RAS, Moscow, Russia(俄罗斯科学院数学数值研究所)

Oleksii Hrinchuk, Valentin Khrulkov, Leyla Mirvakhabova, Elena Orlova, Ivan Oseledets

摘要:

将输入单词转换为真实向量的嵌入层是用于自然语言处理的深度神经网络的关键组件。然而,当词汇量很大时,相应的权重矩阵可能是巨大的,这妨碍了它们在有限资源环境中的部署。我们介绍了一种新的方法参数化嵌入层的基础上张量训练(TT)分解,它允许压缩模型显着的成本可以忽略不计的下降,甚至略有增益的性能。我们评估我们的方法在自然语言处理的基准测试范围广泛,并分析了性能和压缩比之间的权衡范围广泛的架构,从MLP到LSTM和Transformers。

英文摘要:

The embedding layers transforming input words into real vectors are the key components of deep neural networks used in natural language processing. However, when the vocabulary is large, the corresponding weight matrices can be enormous, which precludes their deployment in a limited resource setting. We introduce a novel way of parametrizing embedding layers based on the Tensor Train (TT) decomposition, which allows compressing the model significantly at the cost of a negligible drop or even a slight gain in performance. We evaluate our method on a wide range of benchmarks in natural language processing and analyze the trade-off between performance and compression ratios for a wide range of architectures, from MLPs to LSTMs and Transformers.

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

↑