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

大型稀疏模型的哈希层

Hash Layers For Large Sparse Models

Facebook AI Research(脸书人工智能研究院)

Stephen Roller, Sainbayar Sukhbaatar, Arthur Szlam, Jason Weston

摘要:

我们研究了在大型Transformer模型中基于哈希对不同输入使用不同参数的稀疏层的训练。具体来说,我们修改前馈层,以根据当前令牌在序列中的所有令牌上散列到不同的权重集。我们发现,这个过程要么优于或有竞争力的学习路由混合专家的方法,如开关Transformers和基层,而不需要路由参数或额外的条款,如负载均衡损失的目标函数,并没有复杂的分配算法。我们研究了不同哈希技术、哈希大小和输入特征的性能,并表明,与学习集群或使用更长范围的上下文相比,专注于最局部特征的平衡和随机哈希效果最好。我们证明了我们的方法在大型语言建模和对话任务以及下游微调任务上都能很好地工作。

英文摘要:

We investigate the training of sparse layers that use different parameters for different inputs based on hashing in large Transformer models. Specifically, we modify the feedforward layer to hash to different sets of weights depending on the current token, over all tokens in the sequence. We show that this procedure either outperforms or is competitive with learning-to-route mixture-of-expert methods such as Switch Transformers and BASE Layers, while requiring no routing parameters or extra terms in the objective function such as a load balancing loss, and no sophisticated assignment algorithm. We study the performance of different hashing techniques, hash sizes and input features, and show that balanced and random hashes focused on the most local features work best, compared to either learning clusters or using longer-range context. We show our approach works well both on large language modeling and dialogue tasks, and on downstream fine-tuning tasks.

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

↑