arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2310.07096cs.CLcs.AI
收藏

稀疏通用 Transformer

Sparse Universal Transformer

MIT-IBM Watson AI Lab(MIT-IBM沃森人工智能实验室);Mila, University of Montreal(蒙特利尔大学米拉研究所)

Shawn Tan, Yikang Shen, Zhenfang Chen, Aaron Courville, Chuang Gan

AI总结:

针对通用 Transformer 扩展参数计算和内存开销大的问题,提出稀疏通用 Transformer,结合稀疏专家混合与基于 stick-breaking 的动态停止机制,在保持参数效率和泛化能力的同时降低计算复杂度,实验证明性能相当且推理计算减半。

摘要:

通用 Transformer(UT)是 Transformer 的一种变体,在其各层之间共享参数。经验证据表明,在形式语言任务中,UT 比普通 Transformer(VT)具有更好的组合泛化能力。参数共享还使其比 VT 具有更好的参数效率。尽管具有诸多优势,但扩展 UT 参数比扩展 VT 在计算和内存上要密集得多。本文提出了稀疏通用 Transformer(SUT),它利用稀疏专家混合(SMoE)和一种新的基于 stick-breaking 的动态停止机制,在保持其参数效率和泛化能力的同时,降低 UT 的计算复杂度。实验表明,在 WMT'14 上,SUT 仅使用一半的计算量和参数即可达到与强基线模型相同的性能,并在形式语言任务(逻辑推理和 CFQ)上取得了强大的泛化结果。新的停止机制还使得推理期间的计算量减少约 50%,而在形式语言任务上的性能下降非常小。

英文摘要:

The Universal Transformer (UT) is a variant of the Transformer that shares parameters across its layers. Empirical evidence shows that UTs have better compositional generalization than Vanilla Transformers (VTs) in formal language tasks. The parameter-sharing also affords it better parameter efficiency than VTs. Despite its many advantages, scaling UT parameters is much more compute and memory intensive than scaling up a VT. This paper proposes the Sparse Universal Transformer (SUT), which leverages Sparse Mixture of Experts (SMoE) and a new stick-breaking-based dynamic halting mechanism to reduce UT's computation complexity while retaining its parameter efficiency and generalization ability. Experiments show that SUT achieves the same performance as strong baseline models while only using half computation and parameters on WMT'14 and strong generalization results on formal language tasks (Logical inference and CFQ). The new halting mechanism also enables around 50\% reduction in computation during inference with very little performance decrease on formal language tasks.

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

↑