arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2302.00003cs.LGcs.CL
收藏

外部存储器在提高预测模型容量方面的作用

The Power of External Memory in Increasing Predictive Model Capacity

Google Research(谷歌研究院);University of California, Berkeley(加州大学伯克利分校)

Cenk Baykal, Dylan J Cutler, Nishanth Dikkala, Nikhil Ghosh, Rina Panigrahy, Xin Wang

摘要:

将稀疏性引入深度网络的一种方法是附加一个外部参数表,该参数表在网络的不同层稀疏地查找。通过将大部分参数存储在外部表中,可以增加模型的容量,而不必增加推理时间。在这个设置中有两个关键问题:访问表的查找函数是什么,以及如何使用表的内容?访问表的主要方法包括:1)使用单词/单词段token-id作为表索引,2)LSH将每层中的令牌向量散列到桶表中,以及3)可学习的softmax风格路由到表条目。消费内容的方式包括添加/连接到输入表示,以及将内容用作专门针对不同输入的专家网络。在这项工作中,我们对现有的想法及其组合进行了严格的实验评估。我们还介绍了一种新的方法,交替更新,使访问一个增加的令牌维度,而不增加计算时间,并证明其在语言建模的有效性。

英文摘要:

One way of introducing sparsity into deep networks is by attaching an external table of parameters that is sparsely looked up at different layers of the network. By storing the bulk of the parameters in the external table, one can increase the capacity of the model without necessarily increasing the inference time. Two crucial questions in this setting are then: what is the lookup function for accessing the table and how are the contents of the table consumed? Prominent methods for accessing the table include 1) using words/wordpieces token-ids as table indices, 2) LSH hashing the token vector in each layer into a table of buckets, and 3) learnable softmax style routing to a table entry. The ways to consume the contents include adding/concatenating to input representation, and using the contents as expert networks that specialize to different inputs. In this work, we conduct rigorous experimental evaluations of existing ideas and their combinations. We also introduce a new method, alternating updates, that enables access to an increased token dimension without increasing the computation time, and demonstrate its effectiveness in language modeling.

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

↑