Griffin: Mixing Gated Linear Recurrences with Local Attention for Efficient Language Models
Google DeepMind(谷歌DeepMind)
Soham De, Samuel L. Smith, Anushan Fernando, Aleksandar Botev, George Cristian-Muraru, Albert Gu, Ruba Haroun, Leonard Berrada, Yutian Chen, Srivatsan Srinivasa… 展开作者
Soham De, Samuel L. Smith, Anushan Fernando, Aleksandar Botev, George Cristian-Muraru, Albert Gu, Ruba Haroun, Leonard Berrada, Yutian Chen, Srivatsan Srinivasan, Guillaume Desjardins, Arnaud Doucet, David Budden, Yee Whye Teh, Razvan Pascanu, Nando De Freitas, Caglar Gulcehre
Recurrent neural networks (RNNs) have fast inference and scale efficiently on long sequences, but they are difficult to train and hard to scale. We propose Hawk, an RNN with gated linear recurrences, and Griffin, a hybrid model that mixes gated linear recurrences with local attention. Hawk exceeds the reported performance of Mamba on downstream tasks, while Griffin matches the performance of Llama-2 despite being trained on over 6 times fewer tokens. We also show that Griffin can extrapolate on sequences significantly longer than those seen during training. Our models match the hardware efficiency of Transformers during training, and during inference they have lower latency and significantly higher throughput. We scale Griffin up to 14B parameters, and explain how to shard our models for efficient distributed training.
GTR: Gated Token Recurrence for Efficient Dense Prediction
Didi International Business Group(滴滴国际业务集团);Intellindust AI Lab(Intellindust AI实验室);Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);Didi Research(滴滴研究院);The Hong Kong University of Science and Technology (Guangzhou)(香港科技大学(广州))
Deconstructing Recurrence, Attention, and Gating: Investigating the transferability of Transformers and Gated Recurrent Neural Networks in forecasting of dynamical systems
School of Engineering and Applied Sciences, Harvard University(哈佛大学工程与应用科学学院);Institute of Structural Engineering, ETH Zurich(苏黎世联邦理工学院结构工程研究所)
School of Mathematics and Statistics(数学与统计学学院);Xi’an Jiaotong University(西安交通大学);Gaoling School of Artificial Intelligence(白洋学校人工智能学院);Renmin University of China(中国人民大学)