MoEUT: Mixture-of-Experts Universal Transformers

LLM PTSAD MoE ML TAVR
以前的研究表明,对于通用Transformer(UT),跨层参数共享的重要性。通过允许深度上的循环,UT在学习组合泛化方面比标准Transformer具有优势,但层共享带来了一个实际限制:参数-计算比率。与具有相同维度的非共享模型相比,它大大减少了参数数量。简单地扩大层大小以弥补参数损失会使计算资源需求变得不可行。在实践中,以前的研究没有成功地提出一个共享层Transformer设计,在参数计数主导的任务(如语言建模)中具有竞争力。在这里,我们提出了MoEUT(发音为“moot”),这是一种有效的基于专家混合(MoE)的共享层Transformer架构,它结合了最近在MoE中的几个进展,用于标准Transformer的前馈层和注意层,以及特定于UT的新型层归一化和分组方案。由此产生的UT模型,首次在语言建模任务(如BLiMP和PIQA)中略微优于标准Transformer,同时使用的计算和内存资源显著更少。
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.
许愿