arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1906.09777cs.CLcs.LG
收藏

用于语言建模的张量化Transformer

A Tensorized Transformer for Language Modeling

College of Intelligence and Computing, Tianjin University(天津大学智能与计算学部);Microsoft Research Asia(微软亚洲研究院);School of Computer Science and Technology, Beijing Institute of Technology(北京理工大学计算机学院)

Xindian Ma, Peng Zhang, Shuai Zhang, Nan Duan, Yuexian Hou, Dawei Song, Ming Zhou

摘要:

神经模型的最新发展是通过自我注意力机制将编码器和解码器连接起来。特别是完全基于自我注意力的Transformer,在自然语言处理(NLP)任务上取得了突破性进展。然而,作为Transformer关键组件的多头注意力机制限制了模型在资源有限的环境中的有效部署。基于张量分解和参数共享的思想,提出了一种新的基于块项张量分解的自注意模型(即多线性注意力模型).我们在三个语言建模任务上测试和验证了所提出的注意力方法(即,PTB、WikiText-103和10亿)和神经机器翻译任务(即,WMT-2016英语-德语)。与Transformer、Transformer-XL和带张量训练分解的Transformer等语言建模方法相比,多线性注意力不仅可以大大压缩模型参数,而且可以获得性能上的提高。

英文摘要:

Latest development of neural models has connected the encoder and decoder through a self-attention mechanism. In particular, Transformer, which is solely based on self-attention, has led to breakthroughs in Natural Language Processing (NLP) tasks. However, the multi-head attention mechanism, as a key component of Transformer, limits the effective deployment of the model to a resource-limited setting. In this paper, based on the ideas of tensor decomposition and parameters sharing, we propose a novel self-attention model (namely Multi-linear attention) with Block-Term Tensor Decomposition (BTD). We test and verify the proposed attention method on three language modeling tasks (i.e., PTB, WikiText-103 and One-billion) and a neural machine translation task (i.e., WMT-2016 English-German). Multi-linear attention can not only largely compress the model parameters but also obtain performance improvements, compared with a number of language modeling approaches, such as Transformer, Transformer-XL, and Transformer with tensor train decomposition.

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

↑