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

关于 Transformers 中跨层参数共享的经验教训

Lessons on Parameter Sharing across Layers in Transformers

LINE Corporation(LINE公司);Tokyo Institute of Technology(东京工业大学)

Sho Takase, Shun Kiyono

AI总结:

本文提出三种 Transformer 跨层参数共享策略 Sequence、Cycle 与 Cycle (rev),在减少参数规模和计算时间的同时,于 WMT 大规模数据设置下保持有效性。

摘要:

我们提出了一种用于 Transformers(Vaswani 等人,2017)的参数共享方法。所提方法放宽了一种广泛使用的技术,该技术像 Universal Transformers(Dehghani 等人,2019)那样将一层的参数共享给所有层,以提高计算时间效率。我们提出了三种为每层分配参数的策略:Sequence、Cycle 和 Cycle (rev)。实验结果表明,所提策略在参数规模和计算时间方面均具有效率。此外,我们指出,在使用大量训练数据的配置中,例如近期的 WMT 竞赛,所提策略同样有效。

英文摘要:

We propose a parameter sharing method for Transformers (Vaswani et al., 2017). The proposed approach relaxes a widely used technique, which shares parameters for one layer with all layers such as Universal Transformers (Dehghani et al., 2019), to increase the efficiency in the computational time. We propose three strategies: Sequence, Cycle, and Cycle (rev) to assign parameters to each layer. Experimental results show that the proposed strategies are efficient in the parameter size and computational time. Moreover, we indicate that the proposed strategies are also effective in the configuration where we use many training data such as the recent WMT competition.

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

↑