AI summary · arXiv: 2402.19427v1 · cs.LG

Griffin: Mixing Gated Linear Recurrences with Local Attention for Efficient Language Models

Soham De, Samuel L. Smith, Anushan Fernando, Aleksandar Botev, George Cristian-Muraru, Albert Gu, Ruba Haroun, Leonard Berrada,
and 9 more authorsYutian Chen, Srivatsan Srinivasan, Guillaume Desjardins, Arnaud Doucet, David Budden, Yee Whye Teh, Razvan Pascanu, Nando De Freitas, Caglar Gulcehre
Original paper Submitted to arXiv on 29 Feb. 2024 25 pages, 11 figures License: CC BY 4.0

How to read this summary? Illustrated guide

The essentials

  • Authors introduce Hawk and Griffin, two novel recurrent neural network (RNN) models
  • Hawk features gated linear recurrences, while Griffin combines gated linear recurrences with local attention mechanisms
  • Hawk outperforms Mamba on downstream tasks, while Griffin matches the performance of Llama-2 with fewer tokens and showcases extrapolation ability on longer sequences
  • Models exhibit hardware efficiency comparable to Transformers during training and offer lower latency and higher throughput during inference
  • Griffin successfully scaled up to 14 billion parameters and insights provided on sharding for efficient distributed training
  • Evaluation shows superior performance of Griffin in terms of both latency and throughput compared to MQA Transformer

Key points written by AI: they may contain errors, check them against the paper.

AI-generated keywords: Language models RNNs Hawk Griffin efficiency

Read further

  • Comprehensive Summary
  • Layman's Summary
  • Blog article
  • Original abstract
In their paper titled "Griffin: Mixing Gated Linear Recurrences with Local Attention for Efficient Language Models," authors Soham De, Samuel L. Smith, Anushan Fernando, and their team introduce Hawk and Griffin - two novel recurrent neural network (RNN) models designed to address the challenges of training and scaling RNNs. <br> <Hawk>Hawk</Hawk> features gated linear recurrences while <Griffin>Griffin</Griffin> combines gated linear recurrences with local attention mechanisms. The authors demonstrate that <Hawk>Hawk</Hawk> outperforms Mamba on downstream tasks while <Griffin>Griffin</Griffin> matches the performance of Llama-2 despite being trained on significantly fewer tokens. Notably, <Griffin>Griffin</Griffin> showcases the ability to extrapolate on sequences longer than those encountered during training. The models exhibit hardware efficiency comparable to Transformers during training and offer lower latency and higher throughput during inference.<br> Furthermore, the authors successfully scale up <Griffin>Griffin</Griffin> to 14 billion parameters and provide insights into sharding the models for efficient distributed training. In their evaluation of models with 1 billion parameters, they compare the latency and throughput of a MQA Transformer against <Hawk>Hawk</Hawk> and <Griffin>Griffin</Griffin>. The results highlight the superior performance of <Griffin> Griffin </griffen > in terms of both latency and throughput.<br> Overall, the study presents <Hawk>Hawk</Hawk> and <griffen > griffen </griffen > as promising solutions for fast training at scale in language modeling tasks - showcasing their effectiveness in surpassing existing benchmarks while maintaining hardware efficiency and scalability.

Was this synthesis useful?

Score: 0

Why do we need votes?

Votes are used to determine whether we need to re-run our summarizing tools. If the count reaches -10, our tools can be restarted.

Figures and plots

Ask about a figure by number or use its question button to request visual analysis. Up to two figures and four image panels per question. Values read from plots are approximate; check the original data.

AI assistant instructions?

Tools for this paper

Explain it differently 1 free rewrite left today
Save to a collection Group papers in collections to compare them, chat with them and export them. Continue with Google Create a free account Log in

Advanced tools Premium

For researchers who follow a field closely: citation alerts, journal-club slides, version comparison and Zotero export. Discover Premium

Zotero Zotero guide
Citation alerts 282 papers already cite it: be emailed each new one. Citation alerts guide
Who works on it?

Among the 31 papers around this one, the name that comes back most: Antonio Orvieto (3 papers)

5 more people sign several of them. The full map adds their institutions and approaches, from the papers of the last years.

Continue with Google Create a free account: your first map is free
Weekly letter The latest letter of its field, "Artificial intelligence this week" of 30 November 2026: Artificial intelligence this week: What the tests leave out · Receive one by email for free

Papers around this one

See them on a map

Ranked by how close their title and abstract are to this paper’s. Select some to read them together.

Closest papers

  1. Very close Builds on this paper Cites this paper Uses this paper in depth
    RecurrentGemma: Moving Past Transformers for Efficient Open Language Models
    Aleksandar Botev, Soham De, Samuel L. Smith et al. · 2024 · arXiv.org · preprint, not peer reviewed · cited 66 times · Not summarized yet

    RecurrentGemma releases open models using Griffin’s linear-recurrence and local-attention architecture.

    Abstract

    We introduce RecurrentGemma, a family of open language models which uses Google's novel Griffin architecture. Griffin combines linear recurrences with local attention to achieve excellent performance on language. It has a fixed-sized state, which reduces memory use and enables efficient inference on long sequences. We provide two sizes of models, containing 2B and 9B parameters, and provide pre-trained and instruction tuned variants for both. Our models achieve comparable performance to similarly-sized Gemma baselines despite being trained on fewer tokens.

  2. Close Another approach to the problem Cites this paper
    The Mamba in the Llama: Distilling and Accelerating Hybrid Models
    Junxiong Wang, Daniele Paliotta, Avner May et al. · 2024 · Neural Information Processing Systems · cited 153 times · Not summarized yet

    The Mamba in the Llama distills pretrained Transformers into hybrid linear RNNs, rather than introducing Griffin’s gated-recurrence and local-attention architecture.

    Abstract

    Linear RNN architectures, like Mamba, can be competitive with Transformer models in language modeling while having advantageous deployment characteristics. Given the focus on training large-scale Transformer models, we consider the challenge of converting these pretrained models for deployment. We demonstrate that it is feasible to distill large Transformers into linear RNNs by reusing the linear projection weights from attention layers with academic GPU resources. The resulting hybrid model, which incorporates a quarter of the attention layers, achieves performance comparable to the original Transformer in chat benchmarks and outperforms open-source hybrid Mamba models trained from scratch …

  3. Close Groundwork for this paper Cited by this paper Used in depth by this paper
    Mamba: Linear-Time Sequence Modeling with Selective State Spaces
    Albert Gu, Tri Dao · 2023 · Machine Learning · preprint, not peer reviewed · cited 10,041 times · AI summary available

    Mamba introduces selective state-space sequence modeling, a related efficient recurrent approach that Griffin compares against.

    Abstract

    Foundation models, now powering most of the exciting applications in deep learning, are almost universally based on the Transformer architecture and its core attention module. Many subquadratic-time architectures such as linear attention, gated convolution and recurrent models, and structured state space models (SSMs) have been developed to address Transformers' computational inefficiency on long sequences, but they have not performed as well as attention on important modalities such as language. We identify that a key weakness of such models is their inability to perform content-based reasoning, and make several improvements. First, simply letting the SSM parameters be functions of the inpu…

  4. Close Another approach to the problem Cites this paper Uses this paper in depth
    HGRN2: Gated Linear RNNs with State Expansion
    Zhen Qin, Songlin Yang, Weixuan Sun et al. · 2024 · arXiv.org · preprint, not peer reviewed · cited 150 times · Not summarized yet

    HGRN2 expands gated linear RNN states to improve expressiveness, addressing efficient language modeling with a different recurrent design.

    Abstract

    Hierarchically gated linear RNN (HGRN, \citealt{HGRN}) has demonstrated competitive training speed and performance in language modeling while offering efficient inference. However, the recurrent state size of HGRN remains relatively small, limiting its expressiveness. To address this issue, we introduce a simple outer product-based state expansion mechanism, which significantly enlarges the recurrent state size without introducing any additional parameters. This enhancement also provides a linear attention interpretation for HGRN2, enabling hardware-efficient training. Our extensive experiments verify the advantage of HGRN2 over HGRN consistently across different settings and competitive wit…

  5. Close Another approach to the problem Cited by this paper A method it uses
    Hyena Hierarchy: Towards Larger Convolutional Language Models
    Michael Poli, Stefano Massaroli, Eric Nguyen et al. · 2023 · Machine Learning · cited 596 times · AI summary available

    Hyena replaces attention with long convolutions and data-controlled gating to model long sequences efficiently.

    Abstract

    Recent advances in deep learning have relied heavily on the use of large Transformers due to their ability to learn at scale. However, the core building block of Transformers, the attention operator, exhibits quadratic cost in sequence length, limiting the amount of context accessible. Existing subquadratic methods based on low-rank and sparse approximations need to be combined with dense attention layers to match Transformers, indicating a gap in capability. In this work, we propose Hyena, a subquadratic drop-in replacement for attention constructed by interleaving implicitly parametrized long convolutions and data-controlled gating. In recall and reasoning tasks on sequences of thousands t…

  6. Close Another approach to the problem Cited by this paper A method it uses
    Retentive Network: A Successor to Transformer for Large Language Models
    Yutao Sun, Li Dong, Shaohan Huang et al. · 2023 · Computation and Language · preprint, not peer reviewed · cited 832 times · AI summary available

    RetNet uses retention with parallel, recurrent, and chunkwise computation to combine training parallelism with efficient inference.

    Abstract

    In this work, we propose Retentive Network (RetNet) as a foundation architecture for large language models, simultaneously achieving training parallelism, low-cost inference, and good performance. We theoretically derive the connection between recurrence and attention. Then we propose the retention mechanism for sequence modeling, which supports three computation paradigms, i.e., parallel, recurrent, and chunkwise recurrent. Specifically, the parallel representation allows for training parallelism. The recurrent representation enables low-cost $O(1)$ inference, which improves decoding throughput, latency, and GPU memory without sacrificing performance. The chunkwise recurrent representation …

  7. Close Broader context
    TransMLA: Multi-head Latent Attention Is All You Need
    Fanxu Meng, Zengwei Yao, Muhan Zhang · 2025 · Machine Learning · cited 32 times · Not summarized yet

    TransMLA reduces attention’s inference communication costs by compressing cached key-value states, rather than using recurrent layers.

    Abstract

    Modern large language models (LLMs) often encounter communication bottlenecks on current hardware, rather than purely computational constraints. Multi-head Latent Attention (MLA) tackles this challenge by using low-rank matrices in the key-value (KV) layers, thereby allowing compressed latent KV states to be cached. This approach significantly reduces the KV cache size relative to traditional multi-head attention, leading to faster inference. Moreover, MLA employs an up-projection matrix to increase expressiveness, trading additional computation for reduced communication overhead. Although MLA has demonstrated efficiency and effectiveness in Deepseek V2/V3/R1, many major model providers stil…

  8. Close Broader context Cites this paper
    SpikingBrain: Spiking Brain-inspired Large Models
    Yu-Qi Pan, Yu Feng, J. Zhuang et al. · 2025 · Trans. Mach. Learn. Res. · cited 7 times · Not summarized yet

    SpikingBrain develops brain-inspired linear and hybrid-linear attention models for efficient long-context processing on non-NVIDIA hardware.

    Abstract

    Mainstream Transformer-based large language models face major efficiency bottlenecks: training computation scales quadratically with sequence length, and inference memory grows linearly, limiting long-context processing. Building large models on non-NVIDIA platforms also poses challenges for stable and efficient training. To address this, we introduce SpikingBrain, a family of brain-inspired models designed for efficient long-context training and inference. SpikingBrain leverages the MetaX GPU cluster and focuses on three aspects: (1) Model Architecture: linear and hybrid-linear attention architectures with adaptive spiking neurons; (2) Algorithmic Optimizations: an efficient, conversion-bas…

Prior work it builds on

  1. Close Groundwork for this paper Used in depth by this paper A method it uses
    Resurrecting Recurrent Neural Networks for Long Sequences
    Antonio Orvieto, Samuel L. Smith, Albert Gu et al. · 2023 · International Conference on Machine Learning · cited 590 times · Not summarized yet

    Resurrecting Recurrent Neural Networks shows carefully designed deep RNNs can match deep SSM performance on long-range reasoning tasks.

    Abstract

    Recurrent Neural Networks (RNNs) offer fast inference on long sequences but are hard to optimize and slow to train. Deep state-space models (SSMs) have recently been shown to perform remarkably well on long sequence modeling tasks, and have the added benefits of fast parallelizable training and RNN-like fast inference. However, while SSMs are superficially similar to RNNs, there are important differences that make it unclear where their performance boost over RNNs comes from. In this paper, we show that careful design of deep RNNs using standard signal propagation arguments can recover the impressive performance of deep SSMs on long-range reasoning tasks, while also matching their training s…

  2. Close Shared data, tool or method A method it uses
    Efficient Large-Scale Language Model Training on GPU Clusters
    Deepak Narayanan, Mohammad Shoeybi, Jared Casper et al. · 2021 · Computation and Language · cited 1,467 times · AI summary available

    Efficient Large-Scale Language Model Training on GPU Clusters describes parallelism techniques for training large models across GPUs.

    Abstract

    Large language models have led to state-of-the-art accuracies across a range of tasks. However, training these large models efficiently is challenging for two reasons: a) GPU memory capacity is limited, making it impossible to fit large models on a single GPU or even on a multi-GPU server; and b) the number of compute operations required to train these models can result in unrealistically long training times. New methods of model parallelism such as tensor and pipeline parallelism have been proposed to address these challenges; unfortunately, naive usage leads to fundamental scaling issues at thousands of GPUs due to various reasons, e.g., expensive cross-node communication or idle periods w…

  3. Close Groundwork for this paper A method it uses
    Hungry Hungry Hippos: Towards Language Modeling with State Space Models
    Daniel Y. Fu, Tri Dao, Khaled K. Saab et al. · 2022 · Machine Learning · cited 740 times · AI summary available

    Hungry Hungry Hippos studies SSM limitations in language modeling and hardware utilization, motivating efficient alternatives to attention.

    Abstract

    State space models (SSMs) have demonstrated state-of-the-art sequence modeling performance in some modalities, but underperform attention in language modeling. Moreover, despite scaling nearly linearly in sequence length instead of quadratically, SSMs are still slower than Transformers due to poor hardware utilization. In this paper, we make progress on understanding the expressivity gap between SSMs and attention in language modeling, and on reducing the hardware barrier between SSMs and attention. First, we use synthetic language modeling tasks to understand the gap between SSMs and attention. We find that existing SSMs struggle with two capabilities: recalling earlier tokens in the sequen…

  4. Close Shared data, tool or method A method it uses
    Megatron-LM: Training Multi-Billion Parameter Language Models Using GPU Model Parallelism
    Mohammad Shoeybi, Mostofa Patwary, Raul Puri et al. · 2019 · Computation and Language · preprint, not peer reviewed · cited 3,361 times · Not summarized yet

    Megatron-LM presents intra-layer model parallelism for training billion-parameter Transformer models, relevant to Griffin’s distributed-training discussion.

    Abstract

    Recent work in unsupervised language modeling demonstrates that training large neural language models advances the state of the art in Natural Language Processing applications. However, for very large models, memory constraints limit the size of models that can be practically trained. Model parallelism allows us to train larger models, because the parameters can be split across multiple processors. In this work, we implement a simple, efficient intra-layer model parallel approach that enables training state of the art transformer language models with billions of parameters. Our approach does not require a new compiler or library changes, is orthogonal and complimentary to pipeline model para…

  5. Close Broader context A method it uses
    Language Modeling with Gated Convolutional Networks
    Yann N. Dauphin, Angela Fan, Michael Auli et al. · 2016 · Computation and Language · cited 3,094 times · Not summarized yet

    Language Modeling with Gated Convolutional Networks uses gated convolutions for parallel language modeling with finite context.

    Abstract

    The pre-dominant approach to language modeling to date is based on recurrent neural networks. Their success on this task is often linked to their ability to capture unbounded context. In this paper we develop a finite context approach through stacked convolutions, which can be more efficient since they allow parallelization over sequential tokens. We propose a novel simplified gating mechanism that outperforms Oord et al (2016) and investigate the impact of key architectural decisions. The proposed approach achieves state-of-the-art on the WikiText-103 benchmark, even though it features long-term dependencies, as well as competitive results on the Google Billion Words benchmark. Our model re…

Papers that cite it

  1. Close Broader context Uses this paper in depth
    Linearizing Large Language Models
    Jean-Pierre Mercat, Igor Vasiljevic, Sedrick Scott Keh et al. · 2024 · arXiv.org · preprint, not peer reviewed · cited 56 times · Not summarized yet

    Linearizing Large Language Models studies subquadratic architectures and pretraining cost, including models such as RWKV and Mamba.

    Abstract

    Linear transformers have emerged as a subquadratic-time alternative to softmax attention and have garnered significant interest due to their fixed-size recurrent state that lowers inference cost. However, their original formulation suffers from poor scaling and underperforms compute-matched transformers. Recent linear models such as RWKV and Mamba have attempted to address these shortcomings by proposing novel time-mixing and gating architectures, but pre-training large language models requires significant data and compute investments. Thus, the search for subquadratic architectures is limited by the availability of compute and quality pre-training datasets. As a cost-effective alternative t…

  2. Close Same method, another problem Uses this paper in depth
    A Large Recurrent Action Model: xLSTM enables Fast Inference for Robotics Tasks
    Thomas Schmied, Thomas Adler, Vihang Patil et al. · 2024 · International Conference on Machine Learning · cited 19 times · Not summarized yet

    A Large Recurrent Action Model evaluates modern recurrent architectures, including xLSTM and Mamba, for sequence-based robotics policies.

    Abstract

    In recent years, there has been a trend in the field of Reinforcement Learning (RL) towards large action models trained offline on large-scale datasets via sequence modeling. Existing models are primarily based on the Transformer architecture, which result in powerful agents. However, due to slow inference times, Transformer-based approaches are impractical for real-time applications, such as robotics. Recently, modern recurrent architectures, such as xLSTM and Mamba, have been proposed that exhibit parallelization benefits during training similar to the Transformer architecture while offering fast inference. In this work, we study the aptitude of these modern recurrent architectures for lar…

  3. Close Broader context Uses this paper in depth
    Explaining Modern Gated-Linear RNNs via a Unified Implicit Attention Formulation
    Itamar Zimerman, Ameen Ali, Lior Wolf · 2024 · International Conference on Learning Representations · cited 12 times · Not summarized yet

    Explaining Modern Gated-Linear RNNs formulates attention-free models such as Mamba and RWKV as implicit causal attention.

    Abstract

    Recent advances in efficient sequence modeling have led to attention-free layers, such as Mamba, RWKV, and various gated RNNs, all featuring sub-quadratic complexity in sequence length and excellent scaling properties, enabling the construction of a new type of foundation models. In this paper, we present a unified view of these models, formulating such layers as implicit causal self-attention layers. The formulation includes most of their sub-components and is not limited to a specific part of the architecture. The framework compares the underlying mechanisms on similar grounds for different layers and provides a direct means for applying explainability methods. Our experiments show that ou…

  4. Close Same method, another problem Uses this paper in depth
    Improved state mixing in higher-order and block diagonal linear recurrent networks
    I. Dubinin, Antonio Orvieto, Felix Effenberger · 2026 · arXiv.org · preprint, not peer reviewed · cited 2 times · Not summarized yet

    Improved state mixing proposes structured linear recurrent networks that increase state expressivity while retaining sequence-modeling efficiency.

    Abstract

    Linear recurrent networks (LRNNs) and linear state space models (SSMs) promise computational and memory efficiency on long-sequence modeling tasks, yet their diagonal state transitions limit expressivity. Dense and nonlinear architectures (e.g., LSTMs) on the other hand are provably more expressive, but computationally costly. Here, we explore how expressivity in LRNNs can be increased via richer state mixing across time and channels while maintaining competitive efficiency. Specifically, we introduce two structured LRNN architectures: (i) Higher-order Linear Recurrent Units (H-LRU), which generalize first-order recurrence to higher order, mixing multiple past states, and (ii) Block-Diagonal…

  5. Close Another approach to the problem Uses this paper in depth
    Birdie: Advancing State Space Models with Reward-Driven Objectives and Curricula
    Sam Blouir, Jimmy T. H. Smith, Antonios Anastasopoulos et al. · 2024 · arXiv.org · preprint, not peer reviewed · cited 2 times · Not summarized yet

    Birdie improves SSM retrieval through reward-driven training and curricula without changing architecture, whereas Griffin combines recurrences with local attention.

    Abstract

    Efficient state space models (SSMs), such as linear recurrent neural networks and linear attention variants, offer computational advantages over Transformers but struggle with tasks requiring long-range in-context retrieval-like text copying, associative recall, and question answering over long contexts. Previous efforts to address these challenges have focused on architectural modifications, often reintroducing computational inefficiencies. In this paper, we propose a novel training procedure, Birdie, that significantly enhances the in-context retrieval capabilities of SSMs without altering their architecture. Our approach combines bidirectional input processing with dynamic mixtures of spe…

How are these papers found?

We compare the title and abstract of this paper with those of every paper summarized on this site, and with the papers Semantic Scholar recommends, those it cites and those citing it (for a much-cited paper, its most recent citations and, from OpenAlex, the most cited ones). Among the prior work and the follow-ups, the papers that use each other in depth, a method it uses and the much-cited follow-ups come a little higher. The levels (very close, close, related) come from the similarity of the texts, not from a judgment of quality; * marks a paper without an abstract, compared by its title. The sentence under a paper is written by an AI from the two abstracts: check it in the papers. A paper marked not relevant by three readers leaves the list.

Updated on 3 November 2026.

The illustrated guide to the papers around a paper

The previous summary was created more than a year ago and can be re-run (if necessary) by clicking on the Run button below.

Disclaimer: The AI-based summarization tool and virtual assistant provided on this website may not always provide accurate and complete summaries or responses. We encourage you to carefully review and evaluate the generated content to ensure its quality and relevance to your needs.