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

MoEUT:混合专家通用Transformer

MoEUT: Mixture-of-Experts Universal Transformers

Stanford University(斯坦福大学);Center for Brain Science, Harvard University(哈佛大学脑科学中心);The Swiss AI Lab IDSIA, USI & SUPSI(瑞士IDSIA人工智能实验室(隶属于瑞士意大利语区大学与瑞士南部应用科学大学));AI Initiative, KAUST(阿卜杜拉国王科技大学人工智能倡议)

Róbert Csordás, Kazuki Irie, Jürgen Schmidhuber, Christopher Potts, Christopher D. Manning

AI总结:

提出基于混合专家的共享层Transformer架构MoEUT,通过结合MoE进展与新型层归一化和分组方案,首次在BLiMP和PIQA等语言建模任务上以更少计算和内存略优于标准Transformers。

摘要:

先前关于Universal Transformers (UTs)的工作证明了跨层参数共享的重要性。通过允许深度上的循环,UTs在学习组合泛化方面优于标准Transformers,但层共享带来了参数-计算比率的实际限制:与相同维度的非共享模型相比,它大幅减少了参数量。简单扩大层规模以补偿参数损失会使其计算资源需求变得难以承受。在实践中,此前没有工作成功提出在语言建模等参数量主导任务中具有竞争力的共享层Transformer设计。在此我们提出MoEUT(发音为"moot"),一种有效的基于混合专家的共享层Transformer架构,它将标准Transformers的前馈层和注意力层在MoE方面的多项最新进展,与对UTs特定且至关重要的新型层归一化和分组方案相结合。由此产生的UT模型首次在BLiMP和PIQA等语言建模任务上略微优于标准Transformers,同时使用了显著更少的计算和内存。

英文摘要:

Previous work on Universal Transformers (UTs) has demonstrated the importance of parameter sharing across layers. By allowing recurrence in depth, UTs have advantages over standard Transformers in learning compositional generalizations, but layer-sharing comes with a practical limitation of parameter-compute ratio: it drastically reduces the parameter count compared to the non-shared model with the same dimensionality. Naively scaling up the layer size to compensate for the loss of parameters makes its computational resource requirements prohibitive. In practice, no previous work has succeeded in proposing a shared-layer Transformer design that is competitive in parameter count-dominated tasks such as language modeling. Here we propose MoEUT (pronounced "moot"), an effective mixture-of-experts (MoE)-based shared-layer Transformer architecture, which combines several recent advances in MoEs for both feedforward and attention layers of standard Transformers together with novel layer-normalization and grouping schemes that are specific and crucial to UTs. The resulting UT model, for the first time, slightly outperforms standard Transformers on language modeling tasks such as BLiMP and PIQA, while using significantly less compute and memory.

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

↑