Griffin

Griffin is important because it treats recurrent layers and local attention as complementary building blocks for efficient language models, rather than asking whether one family should fully replace the other.

Metadata

FieldValue
PaperGriffin: Mixing Gated Linear Recurrences with Local Attention for Efficient Language Models
AuthorsSoham 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
Year2024
VenuearXiv preprint
arXiv2402.19427
Statusfull note started

Question

Transformers are easy to train in parallel, but attention creates long-context costs:

Recurrent models can decode with fixed-size state:

but classic RNNs were harder to scale and train effectively at language-model scale.

Griffin asks:

The paper proposes:

ModelTemporal Mixer
Hawkgated linear recurrence
Griffingated linear recurrence plus local attention

Main Claim

The durable architecture claim is:

The paper reports that Hawk and Griffin scale with training compute, that Griffin can be scaled to 14B parameters, and that Griffin has lower latency and higher throughput during inference than Transformer baselines in reported settings.

For this wiki, the key lesson is:

Architecture Contract

ItemContract
Inputcausal token sequence
Outputnext-token distribution
BaselineMQA Transformer language model
Recurrent blockgated linear recurrence, called RG-LRU in the paper
Hybrid blocklocal attention mixed with recurrent blocks
Attention scopelocal/sliding-window MQA rather than full global attention everywhere
Main goalTransformer-like trainability with recurrent inference efficiency
Scaling targetlanguage models up to 14B parameters

The objective is still causal language modeling:

The architecture change is in the temporal mixing block.

Residual Block View

Griffin keeps a Transformer-like residual scaffold:

This is important. Griffin is not a return to an old unnormalized RNN stack. It keeps modern residual, normalization, and MLP design while changing the sequence mixer.

The temporal mixer can be:

MixerRole
global MQATransformer baseline
local MQAlocal token-token interaction with bounded window
RG-LRUgated recurrent state update

Gated Linear Recurrence

A simplified gated linear recurrence is:

where controls retention of previous state, controls writing new information, and is a projected token signal.

The important property is fixed-size recurrent state:

rather than storing every previous key and value:

This is the inference motivation behind Hawk and Griffin.

Local Attention Path

Local attention restricts token-token interaction to a window:

Then:

This preserves explicit token retrieval over nearby context without giving every layer a full-context KV cache.

The Griffin design point is:

Hawk vs Griffin

Hawk and Griffin should be read together.

ModelArchitecture IdeaMain Use in Reading
Hawkrecurrent-only stack with gated linear recurrencetests whether modern recurrence alone can scale
Griffinrecurrent stack mixed with local attentiontests whether small attention allocation improves the recurrent backbone

Hawk is the cleaner recurrent hypothesis. Griffin is the practical hybrid hypothesis.

Relation to Mamba, GLA, and DeltaNet

Griffin belongs in the same family pressure as Mamba, GLA, and DeltaNet:

But Griffin’s answer is different:

PaperMain Mixer
Mambaselective state-space scan
GLAgated linear-attention matrix state
DeltaNetdelta-rule matrix memory
Griffingated linear recurrence plus local attention

This makes Griffin especially useful when reading hybrid backbones such as Jamba.

Relation to Jamba

Jamba mixes Transformer attention, Mamba layers, and MoE.

Griffin mixes local attention and gated linear recurrence.

Both papers support the same broader architecture direction:

The difference is the ingredients:

PaperHybrid Ingredients
Griffinlocal MQA plus gated linear recurrence
Jambaattention plus Mamba plus MoE

Evidence to Read Carefully

The paper reports scaling behavior, downstream comparisons, long-sequence extrapolation, inference latency/throughput, and distributed training considerations.

Read each claim separately:

EvidenceSupportsDoes Not Prove Alone
scaling curvesrecurrent/local-attention models can scale with computeuniversal superiority over Transformers
downstream comparisonsstrong reported language-model performanceall tasks or all tokenizer/data choices
long-sequence extrapolationrecurrence/local attention can generalize past train lengthexact retrieval in all long contexts
latency/throughputinference can benefit from fixed-size statedeployment speed independent of batch/hardware
14B scalemodel family can be trained at large scaleopen reproducibility or public model availability

The important limitation is also explicit: pre-trained Hawk/Griffin models can lag Transformers on copying and exact-retrieval tasks without fine-tuning. That matters when comparing recurrent compression to explicit attention.

Practical Checks

  • Count how many layers use recurrence, local attention, or global attention.
  • Separate training efficiency from autoregressive inference efficiency.
  • Check context length used for training and evaluation.
  • Track local attention window size.
  • Compare retrieval-heavy tasks separately from average validation loss.
  • Check whether claims depend on MQA, RMSNorm, MLP design, data amount, or recurrence alone.
  • Treat latency and throughput as hardware, batch-size, and implementation dependent.

Where It Fits

Griffin fills the hybrid recurrent-attention slot:

It is a useful bridge before reading RecurrentGemma-style model releases or newer hybrid attention-recurrence architectures.