跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 机器学习

arXiv:2312.07987 (cs)
[提交于 2023年12月13日 (v1),最后修订于 2024年9月30日 (此版本, v3)]

标题:SwitchHead: Accelerating Transformers with Mixture-of-Experts Attention

作者:Róbert Csordás, Piotr Piękos, Kazuki Irie, Jürgen Schmidhuber
查看论文《SwitchHead: Accelerating Transformers with Mixture-of-Experts Attention》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:Despite many recent works on Mixture of Experts (MoEs) for resource-efficient Transformer language models, existing methods mostly focus on MoEs for feedforward layers. Previous attempts at extending MoE to the self-attention layer fail to match the performance of the parameter-matched baseline. Our novel SwitchHead is an effective MoE method for the attention layer that successfully reduces both the compute and memory requirements, achieving wall-clock speedup, while matching the language modeling performance of the baseline Transformer. Our novel MoE mechanism allows SwitchHead to compute up to 8 times fewer attention matrices than the standard Transformer. SwitchHead can also be combined with MoE feedforward layers, resulting in fully-MoE "SwitchAll" Transformers. For our 262M parameter model trained on C4, SwitchHead matches the perplexity of standard models with only 44% compute and 27% memory usage. Zero-shot experiments on downstream tasks confirm the performance of SwitchHead, e.g., achieving more than 3.5% absolute improvements on BliMP compared to the baseline with an equal compute resource.
评论: Accepted to NeurIPS 2024
主题: 机器学习 (cs.LG); 计算与语言 (cs.CL); 神经与演化计算 (cs.NE)
引用方式: arXiv:2312.07987 [cs.LG]
  (或者 arXiv:2312.07987v3 [cs.LG] 对于此版本)
  https://doi.org/10.48550/arXiv.2312.07987

提交历史

来自:Róbert Csordás
[v1] 2023年12月13日 星期三 09:00:21 UTC
[v2] 2023年12月14日 星期四 06:35:33 UTC
[v3] 2024年9月30日 星期一 21:19:29 UTC
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs
< 上一篇   |   下一篇 >
最新 | 近期 | 2024-09
切换浏览方式为:
cs.LG
cs.CL
cs.NE

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站