SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2503.14456 · 2025

RWKV-7 "Goose" with Expressive Dynamic State Evolution

arXiv · PDF · Open in the Atlas

Code that ran

2 of 3 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 2 failures of our instrument; 1 no recorded run), measured 2026-11-24; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2503.14456.json · badge: /api/ran/2503.14456.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
copy not recorded community
not in the paper's declared repositories
1 ran · 1 no recorded run
rwkv/rwkv-lm reimplementation (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
FunctionStatusWhere it lives
RWKV_x070_TMix_one Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
rwkv/rwkv-lm/RWKV-v7/rwkv_v7_demo_fast.py
code served (permissive licence) · get_code("852ba565f9d4f477")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# Define dimensions
layer_id = 0
H = 2  # number of heads
N = 3  # dimension per head
D = H * N  # total dimension = 6

# Input tensors
x = torch.randn(D)
x_prev = torch.randn(D)
v_first = torch.randn(D)
state = torch.randn(H, N, N)

# Time-mixing coefficients (scalars between 0 and 1)
x_r = torch.rand(D)
x_w = torch.rand(D)
x_k = torch.rand(D)
x_v = torch.rand(D)
x_a = torch.rand(D)
x_g = torch.rand(D)

# W parameters for computing w
w0 = torch.randn(D)
w1 = torch.randn(D, 5)  # intermediate dimension 5
w2 = torch.randn(5, D)

# A parameters for computing a
a0 = torch.randn(D)
a1 = torch.randn(D, 4)  # intermediate dimension 4
a2 = torch.randn(4, D)

# V parameters for computing v adjustment
v0 = torch.randn(D)
v1 = torch.randn(D, 4)
v2 = torch.randn(4, D)

# G parameters for gating
g1 = torch.randn(D, 5)
g2 = torch.randn(5, D)

# K and A scaling factors
k_k = torch.randn(D)
k_a = torch.randn(D)
r_k = torch.randn(D)

# Projection matrices
R_ = torch.randn(D, D)
K_ = torch.randn(D, D)
V_ = torch.randn(D, D)
O_ = torch.randn(D, D)

# Layer norm parameters
ln_w = torch.randn(D)
ln_b = torch.randn(D)

ARGS = {
    'layer_id': layer_id,
    'H': H,
    'N': N,
    'x': x,
    'x_prev': x_prev,
    'v_first': v_first,
    'state': state,
    'x_r': x_r,
    'x_w': x_w,
    'x_k': x_k,
    'x_v': x_v,
    'x_a': x_a,
    'x_g': x_g,
    'w0': w0,
    'w1': w1,
    'w2': w2,
    'a0': a0,
    'a1': a1,
    'a2': a2,
    'v0': v0,
    'v1': v1,
    'v2': v2,
    'g1': g1,
    'g2': g2,
    'k_k': k_k,
    'k_a': k_a,
    'r_k': r_k,
    'R_': R_,
    'K_': K_,
    'V_': V_,
    'O_': O_,
    'ln_w': ln_w,
    'ln_b': ln_b
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
time_mixing__ Ran
ran; our contract draft was wrong, not the code
this paper's copy was not recorded; identical code first harvested from BlinkDL/RWKV-LM
pointer only · get_code("07a576b3352ec5ac")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

channel_mixing__ Not yet run
unverified (harvested, no recorded run)
this paper's copy was not recorded; identical code first harvested from BlinkDL/RWKV-LM
pointer only · get_code("a43aabdbc73f2f29")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 3 samples lifted from this paper's linked repositories, 3 carry a function identity and 0 do not. Of the 3 distinct functions with an identity, 3 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 1 later) and 0 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
RWKV_x070_TMix_one 1 other paper
1 later
2504.21463 (2025-04)
RWKV-X: A Linear Complexity Hybrid Language Model
channel_mixing__ 1 other paper
1 dated earlier
2305.13048 (2023-05)
RWKV: Reinventing RNNs for the Transformer Era
time_mixing__ 1 other paper
1 dated earlier
2305.13048 (2023-05)
RWKV: Reinventing RNNs for the Transformer Era

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

We present RWKV-7 "Goose", a new sequence modeling architecture with constant memory usage and constant inference time per token. Despite being trained on dramatically fewer tokens than other top models, our 2.9 billion parameter language model achieves a new 3B SoTA on multilingual tasks and matches the current 3B SoTA on English language downstream performance. RWKV-7 introduces a newly generalized formulation of the delta rule with vector-valued gating and in-context learning rates, as well as a relaxed value replacement rule. We show that RWKV-7 can perform state tracking and recognize all regular languages, while retaining parallelizability of training. This exceeds the capabilities of Transformers under standard complexity conjectures, which are limited to $\mathsf{TC}^0$. To demonstrate RWKV-7's language modeling capability, we also present an extended open source 3.1 trillion token multilingual corpus, and train four RWKV-7 models ranging from 0.19 billion to 2.9 billion parameters on this dataset. To foster openness, reproduction, and adoption, we release our models and dataset component listing at https://huggingface.co/RWKV, and our training and inference code at https://github.com/RWKV/RWKV-LM all under the Apache 2.0 License.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2503.14456")
get_code_for_paper("2503.14456")
have("2503.14456")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2503.14456.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2503.14456.svg)](https://syntology.ai/paper/2503.14456)

Connect an agent — have() is free.