RetNet

State-space & hybrids · neural · 2023 · text

What it is

Retention instead of attention — a decayed weighted sum that can be computed three ways: parallel, recurrent or chunkwise.

When to use it

The cleanest statement of the attention/SSM duality; strong long-context language modelling.

Caveats

Independent replication at scale is limited and adoption has stayed low. The fixed exponential decay is a strong built-in bias toward recent tokens.

Key ideas

  • Retention replaces attention, with an exponential decay over distance
  • Three equivalent computation modes: parallel for training, recurrent for O(1) inference, chunkwise for long sequences

Related architectures

Original paper

Retentive Network: A Successor to Transformer for Large Language Models (2023, arXiv)

Browse all 198 architectures

The architecture landscape, in one place.

Two things get called “ML architecture”: the classical statistical model families, and the neural network wirings. Both are here, tagged by what they are and what data they eat.

Start from your problem

Architectures

0 shortlisted