计算机科学 > 机器学习
[提交于 2024年3月13日 (v1),最后修订于 2024年3月13日 (此版本, v2)]
标题:Linear attention is (maybe) all you need (to understand transformer optimization)
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Transformer training is notoriously difficult, requiring a careful design of optimizers and use of various heuristics. We make progress towards understanding the subtleties of training Transformers by carefully studying a simple yet canonical linearized shallow Transformer model. Specifically, we train linear Transformers to solve regression tasks, inspired by J.~von Oswald et al.~(ICML 2023), and K.~Ahn et al.~(NeurIPS 2023). Most importantly, we observe that our proposed linearized models can reproduce several prominent aspects of Transformer training dynamics. Consequently, the results obtained in this paper suggest that a simple linearized Transformer model could actually be a valuable, realistic abstraction for understanding Transformer optimization.
提交历史
来自:Kwangjun Ahn[v2] 2024年3月13日 星期三 16:48:27 UTC