RWKV
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)