arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2004.12073cs.CLcs.LG
收藏

一次嵌入实现所有词嵌入

All Word Embeddings from One Embedding

Tokyo Institute of Technology(东京工业大学);Tohoku University(东北大学);Preferred Networks Inc(Preferred Networks公司)

Sho Takase, Sosuke Kobayashi

摘要:

在用于自然语言处理(NLP)的基于神经网络的模型中,参数的最大部分通常由词嵌入组成。传统的模型准备一个大的嵌入矩阵,其大小取决于词汇量的大小。因此,将这些模型存储在内存和磁盘存储中是昂贵的。在这项研究中,为了减少参数的总数,所有单词的嵌入表示通过转换共享嵌入。所提出的方法,ALONE(所有词嵌入从一个),构建一个词的嵌入通过修改共享嵌入与过滤器向量,这是特定于词,但不可训练。然后,我们将构建的嵌入输入到一个前馈神经网络,以增加其表现力。简单地说,过滤器向量占用与传统嵌入矩阵相同的存储器大小,这取决于词汇表大小。为了解决这个问题,我们还介绍了一个内存有效的过滤器的建设方法。我们表明,我们的ALONE可以充分地作为单词表示通过实验上的重建预训练的词嵌入。此外,我们还进行了NLP应用任务的实验:机器翻译和摘要。我们将ALONE与当前最先进的编码器-解码器模型Transformer相结合,并在WMT 2014英语到德语翻译和DUC 2004非常简短的摘要中获得了相当的分数,参数较少。

英文摘要:

In neural network-based models for natural language processing (NLP), the largest part of the parameters often consists of word embeddings. Conventional models prepare a large embedding matrix whose size depends on the vocabulary size. Therefore, storing these models in memory and disk storage is costly. In this study, to reduce the total number of parameters, the embeddings for all words are represented by transforming a shared embedding. The proposed method, ALONE (all word embeddings from one), constructs the embedding of a word by modifying the shared embedding with a filter vector, which is word-specific but non-trainable. Then, we input the constructed embedding into a feed-forward neural network to increase its expressiveness. Naively, the filter vectors occupy the same memory size as the conventional embedding matrix, which depends on the vocabulary size. To solve this issue, we also introduce a memory-efficient filter construction approach. We indicate our ALONE can be used as word representation sufficiently through an experiment on the reconstruction of pre-trained word embeddings. In addition, we also conduct experiments on NLP application tasks: machine translation and summarization. We combined ALONE with the current state-of-the-art encoder-decoder model, the Transformer, and achieved comparable scores on WMT 2014 English-to-German translation and DUC 2004 very short summarization with less parameters.

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

↑