RWKV7
An attention-free RNN whose state follows a generalized delta rule, with constant memory per token.
Language · 8,853 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Language
- Parameters
- 191.1M
- Operations
- 8,853
- Framework
- PyTorch
- Recurrent
- No
- Published
- 2025
- Cited by
- 204 (as of 22 November 2026)
- Authors
- Bo Peng, Ruichong Zhang, Daniel Goldstein and others
- Source
- GitHub: BlinkDL/RWKV-LM
- License
- Apache-2.0
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m2444
- Graph hash
- a5ec3c48e14d439b0d6b09abca3ce0f40f92f57cf5fb6bc341ba254a4d736dbc
- Skeleton hash
- 30785c80d45cfef8c3ec6da2abb13cdc5fd3f5577b7a1f19d34aa95c2a27c4b4
- Architecture hash
- 14ef625b41945537273939ab051b4c4d652e986e1a11153c161a0dc54663bab3
- Diagram SHA-256
- f8c53a3d28d71a07c08b6fa7ed8fa23129a204267e924593073c008984e81663
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
RWKV-7, nicknamed Goose, is a sequence model with constant memory use and constant inference time per token. Its 2.9 billion parameter language model, trained on dramatically fewer tokens than other top models, reaches a new 3B state of the art on multilingual tasks and matches the English 3B state of the art. The architectural idea is a generalized delta rule with vector-valued gating and in-context learning rates, plus a relaxed value replacement rule.
The delta rule itself goes back to DeltaNet, which first applied the Error Correcting Delta Rule to key-value compressive states. RWKV-7 changes it in three ways. A vector-valued state gate adds expressivity and implicit positional encoding. The in-context learning rate becomes a vector, so the model can replace state data channel by channel. And the keys at which the rule removes from and adds to the state are decoupled. These sit inside a modified RWKV-6 architecture.
The paper proves that RWKV-7 can perform state tracking and recognize all regular languages while keeping training parallelizable, which exceeds what Transformers can do under standard complexity conjectures. The authors also release a 3.1 trillion token multilingual corpus and four models from 0.19 to 2.9 billion parameters trained on it. The repository describes RWKV-7 as a meta-in-context learner that test-time-trains its state on the context through in-context gradient descent at every token. The captured member is a small configuration of the official RWKV-7 code; the flash-linear-attention versions, which added RWKV7 kernels and models in January 2025, were not traced because their kernels need a GPU.
Key idea. RWKV-7 generalizes the delta rule with vector-valued gating, vector-valued in-context learning rates and decoupled removal and insertion keys, giving a constant-memory RNN that can recognize all regular languages while training in parallel.
- RWKV-7
- RWKV-7 Goose
- Goose
- RWKV7
- x070
- RWKV World v3
- generalized delta rule
- attention-free RNN
- BlinkDL
- linear-time language model
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{peng2025rwkv7gooseexpressivedynamic,
title={RWKV-7 "Goose" with Expressive Dynamic State Evolution},
author={Bo Peng and Ruichong Zhang and Daniel Goldstein and Eric Alcaide and Xingjian Du and Haowen Hou and Jiaju Lin and Jiaxing Liu and Janna Lu and William Merrill and Guangyu Song and Kaifeng Tan and Saiteja Utpala and Nathan Wilce and Johan S. Wind and Tianyi Wu and Daniel Wuttke and Christian Zhou-Zheng},
year={2025},
eprint={2503.14456},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2503.14456},
}