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

HyperMixer:一种基于MLP的低成本Transformer替代方案

HyperMixer: An MLP-based Low Cost Alternative to Transformers

EPFL(洛桑联邦理工学院);Idiap Research Institute(伊迪亚普研究所);University of Geneva(日内瓦大学)

Florian Mai, Arnaud Pannatier, Fabio Fehr, Haolin Chen, Francois Marelli, Francois Fleuret, James Henderson

AI总结:

本文提出HyperMixer,一种基于MLP的低成本Transformer替代方案,通过超网络动态生成令牌混合MLP,在自然语言理解任务上性能与Transformer相当,但显著降低了处理时间、训练数据和调参成本。

摘要:

基于Transformer的架构是自然语言理解的首选模型,但它们的代价高昂,因为它们在输入长度上具有二次复杂度,需要大量训练数据,并且难以调优。为了追求更低的成本,我们研究了简单的基于MLP的架构。我们发现,现有的架构如MLPMixer,通过独立应用于每个特征的静态MLP实现令牌混合,与自然语言理解所需的归纳偏差过于脱节。在本文中,我们提出一个简单的变体,HyperMixer,它使用超网络动态地形成令牌混合MLP。实验上,我们证明我们的模型优于其他基于MLP的模型,并与Transformer相当。与Transformer相比,HyperMixer在处理时间、训练数据和超参数调优方面以显著更低的成本实现了这些结果。

英文摘要:

Transformer-based architectures are the model of choice for natural language understanding, but they come at a significant cost, as they have quadratic complexity in the input length, require a lot of training data, and can be difficult to tune. In the pursuit of lower costs, we investigate simple MLP-based architectures. We find that existing architectures such as MLPMixer, which achieves token mixing through a static MLP applied to each feature independently, are too detached from the inductive biases required for natural language understanding. In this paper, we propose a simple variant, HyperMixer, which forms the token mixing MLP dynamically using hypernetworks. Empirically, we demonstrate that our model performs better than alternative MLP-based models, and on par with Transformers. In contrast to Transformers, HyperMixer achieves these results at substantially lower costs in terms of processing time, training data, and hyperparameter tuning.

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

↑