RWKV

State-space & hybrids · neural · 2021 · text

What it is

An RNN whose recurrence is expressed as a linear-attention style kernel, so training parallelizes and inference is constant-memory.

When to use it

Constant-memory long-context generation, edge deployment, and open-model experimentation.

Caveats

The fixed-size state makes output sensitive to prompt order and weak at recalling exact details from far back. It is community-driven, with less tooling and fewer independent benchmarks than transformers.

Key ideas

  • An RNN reformulated so it can be trained in parallel like a transformer
  • Linear time and constant memory per token at inference
  • Uses a linear form of attention with channel-wise time decay

Related architectures

Original paper

RWKV: Reinventing RNNs for the Transformer Era (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