Papers
Topics
Authors
Recent
Search
2000 character limit reached

Bidirectional WKV Kernel (Bi-WKV)

Updated 10 July 2026
  • Bidirectional WKV Kernel (Bi-WKV) is a RWKV-derived operator that fuses forward and backward recurrences to achieve symmetric context aggregation without quadratic self-attention.
  • It is implemented through various formulations such as symmetric decay, dual scans with averaging, and gated fusion, each combined with local receptive-field mechanisms.
  • Bi-WKV maintains linear time complexity while improving performance in tasks like signal denoising, image restoration, and audio pattern recognition.

Bidirectional WKV Kernel (Bi-WKV) denotes a family of RWKV-derived sequence-mixing operators that extend the original causal WKV kernel so that each position incorporates information from both earlier and later positions. In recent work, the term is used in at least three closely related but non-identical ways: as a symmetric distance-decayed global aggregation in SATEM denoising, as the combination of forward and backward WKV scans in image restoration, and as a gated fusion of two causal RWKV7 streams in audio pattern recognition (Wang et al., 28 Mar 2025, Du et al., 2024, Xiong et al., 2 Sep 2025). The common objective is to recover bidirectional context without reverting to quadratic self-attention.

1. Origins in the RWKV WKV kernel

Bi-WKV is derived from the original unidirectional WKV mechanism in RWKV. In the DREMnet formulation, a sequence xRT×Cx\in\mathbb R^{T\times C} is projected, after token shift, into Rt,Kt,VtRCR_t,K_t,V_t\in\mathbb R^C, and the unidirectional output at position tt is a normalized exponentially decayed sum over the prefix together with a learned current-token reward uu (Wang et al., 28 Mar 2025): WKVt=i=0t1exp(ki+(it+1)w)vi+exp(u+kt)vti=0t1exp(ki+(it+1)w)+exp(u+kt).\mathrm{WKV}_{t} = \frac{ \sum_{i=0}^{t-1} \exp\bigl(k_i + (i-t+1)\,w\bigr)\,v_i + \exp\bigl(u + k_t\bigr)\,v_t }{ \sum_{i=0}^{t-1} \exp\bigl(k_i + (i-t+1)\,w\bigr) + \exp\bigl(u + k_t\bigr) }. The same paper gives an O(T ⁣ ⁣C)O(T\!\cdot\!C) implementation through running numerators and denominators,

Nt=eu+ktvt+ewNt1,Dt=eu+kt+ewDt1,WKVt=NtDt,N_t = e^{u + k_t}\,v_t + e^{-\,w}\circ N_{t-1},\qquad D_t = e^{u + k_t} + e^{-\,w}\circ D_{t-1},\qquad \mathrm{WKV}_t = \frac{N_t}{D_t},

so the operator acts as a normalized exponentially weighted accumulator.

RWKV-IR describes the same underlying idea from the perspective of replacing O(T2)O(T^2) dot-product attention by two O(TC)O(T\,C) recurrences with exponential decay. There the forward scan maintains

mt+=αmt1++ektvt,nt+=αnt1++ekt,wkvt+=mt+/nt+,m_t^{+}=\alpha\odot m_{t-1}^{+}+ek_t\odot v_t,\qquad n_t^{+}=\alpha\odot n_{t-1}^{+}+ek_t,\qquad wkv_t^{+}=m_t^{+}/n_t^{+},

with an analogous backward scan, followed by gating with receptance Rt,Kt,VtRCR_t,K_t,V_t\in\mathbb R^C0 (Du et al., 2024). AudioRWKV presents a RWKV7 version in which the recurrent state consists of two channel-wise running sums Rt,Kt,VtRCR_t,K_t,V_t\in\mathbb R^C1 and Rt,Kt,VtRCR_t,K_t,V_t\in\mathbb R^C2,

Rt,Kt,VtRCR_t,K_t,V_t\in\mathbb R^C3

where Rt,Kt,VtRCR_t,K_t,V_t\in\mathbb R^C4 is a per-channel decay or forget gate (Xiong et al., 2 Sep 2025).

These formulations differ in parameterization, but they share the same structural principle: WKV computes an attention-like weighted value aggregation through recurrently updated state rather than a full pairwise attention matrix. This suggests that Bi-WKV is best understood as a bidirectionalization of a recurrent normalized weighting operator rather than as a single canonical kernel.

2. Principal bidirectional formulations

The literature does not define a unique Bi-WKV equation. Instead, bidirectionality is introduced by different constructions that all permit future-to-past information flow.

Work Bidirectional construction Merge or control
DREMnet Full sum over all Rt,Kt,VtRCR_t,K_t,V_t\in\mathbb R^C5 with symmetric distance decay Rt,Kt,VtRCR_t,K_t,V_t\in\mathbb R^C6 learned Rt,Kt,VtRCR_t,K_t,V_t\in\mathbb R^C7
RWKV-IR Forward and backward WKV scans merge, e.g. average
AudioRWKV Causal WKV on original and reversed sequence learned gate Rt,Kt,VtRCR_t,K_t,V_t\in\mathbb R^C8

In DREMnet, unidirectional decay is replaced by a symmetric relative-distance decay

Rt,Kt,VtRCR_t,K_t,V_t\in\mathbb R^C9

yielding

tt0

Here tt1 is a learned decay vector and tt2 is a learned self-reward; the defining change is the substitution of tt3 for the one-sided temporal offset, so each position receives context from both directions (Wang et al., 28 Mar 2025).

RWKV-IR defines “Bi-WKV” as exactly the combination of forward and backward WKV scans. The forward and backward recurrent outputs tt4 and tt5 are merged, for example by

tt6

and the result is then gated through tt7 (Du et al., 2024). AudioRWKV uses the same directional duplication idea on RWKV7, but replaces fixed averaging by a learned elementwise gate,

tt8

where tt9 is the causal WKV on the original sequence and uu0 is the corresponding output on the reversed sequence mapped back to the original indexing (Xiong et al., 2 Sep 2025).

A common misconception is that “Bi-WKV” names a single standardized kernel. The published formulations instead show a design space whose members share bidirectional context aggregation and RWKV-style linear recurrences, but differ in whether bidirectionality is encoded by an explicit symmetric kernel, by scan averaging, or by gated directional fusion.

3. Coupling with local receptive-field mechanisms

Across the cited systems, Bi-WKV is not used in isolation. Each architecture couples global bidirectional aggregation with an explicitly local mechanism intended to preserve short-range structure.

In DREMnet, locality is supplied by Covering Embedding. For a raw one-dimensional signal uu1, each token is formed from an overlapping window,

uu2

with zero-padding at the end, and stacking all such tokens yields uu3. The stated purpose is to retain strong local receptive fields akin to CNNs, so that each token contains its own sample together with its next uu4 neighbors (Wang et al., 28 Mar 2025).

RWKV-IR similarly replaces Vision-RWKV’s original Q-Shift with a depth-wise convolution shift, DC-Shift: uu5 The reported motivation is to capture all uu6 neighbors rather than the restricted directional substitution used by Q-Shift (Du et al., 2024). AudioRWKV adopts an analogous strategy for spectrogram inputs by replacing the original 1D token-shift with a 2D depthwise-separable convolution, denoted ConvShift, applied on Mel-spectrogram patches; a local residual uu7 is then injected into the parameter-generating pathways through

uu8

The stated effect is to combine a local spectro-temporal bias with global Bi-WKV attention (Xiong et al., 2 Sep 2025).

A plausible implication is that published Bi-WKV systems treat bidirectional recurrent aggregation as a global mixer whose performance depends materially on an auxiliary local inductive bias. The local operator differs by modality—overlapping windows for one-dimensional SATEM signals, depth-wise convolutional shift for images, and depthwise-separable spectro-temporal convolution for audio—but the architectural pattern is consistent.

4. Role inside full network architectures

In DREMnet, Bi-WKV is embedded in an interpretable decoupled representation learning framework for semi-airborne transient electromagnetic signal denoising. The encoder disentangles the input signal uu9 into

WKVt=i=0t1exp(ki+(it+1)w)vi+exp(u+kt)vti=0t1exp(ki+(it+1)w)+exp(u+kt).\mathrm{WKV}_{t} = \frac{ \sum_{i=0}^{t-1} \exp\bigl(k_i + (i-t+1)\,w\bigr)\,v_i + \exp\bigl(u + k_t\bigr)\,v_t }{ \sum_{i=0}^{t-1} \exp\bigl(k_i + (i-t+1)\,w\bigr) + \exp\bigl(u + k_t\bigr) }.0

where WKVt=i=0t1exp(ki+(it+1)w)vi+exp(u+kt)vti=0t1exp(ki+(it+1)w)+exp(u+kt).\mathrm{WKV}_{t} = \frac{ \sum_{i=0}^{t-1} \exp\bigl(k_i + (i-t+1)\,w\bigr)\,v_i + \exp\bigl(u + k_t\bigr)\,v_t }{ \sum_{i=0}^{t-1} \exp\bigl(k_i + (i-t+1)\,w\bigr) + \exp\bigl(u + k_t\bigr) }.1 are “content” factors corresponding to the underlying clean EM response and WKVt=i=0t1exp(ki+(it+1)w)vi+exp(u+kt)vti=0t1exp(ki+(it+1)w)+exp(u+kt).\mathrm{WKV}_{t} = \frac{ \sum_{i=0}^{t-1} \exp\bigl(k_i + (i-t+1)\,w\bigr)\,v_i + \exp\bigl(u + k_t\bigr)\,v_t }{ \sum_{i=0}^{t-1} \exp\bigl(k_i + (i-t+1)\,w\bigr) + \exp\bigl(u + k_t\bigr) }.2 are “context” factors corresponding to task-irrelevant or nuisance information. Disentanglement is enforced by minimizing a mutual-information upper bound (CLUB) between WKVt=i=0t1exp(ki+(it+1)w)vi+exp(u+kt)vti=0t1exp(ki+(it+1)w)+exp(u+kt).\mathrm{WKV}_{t} = \frac{ \sum_{i=0}^{t-1} \exp\bigl(k_i + (i-t+1)\,w\bigr)\,v_i + \exp\bigl(u + k_t\bigr)\,v_t }{ \sum_{i=0}^{t-1} \exp\bigl(k_i + (i-t+1)\,w\bigr) + \exp\bigl(u + k_t\bigr) }.3 and WKVt=i=0t1exp(ki+(it+1)w)vi+exp(u+kt)vti=0t1exp(ki+(it+1)w)+exp(u+kt).\mathrm{WKV}_{t} = \frac{ \sum_{i=0}^{t-1} \exp\bigl(k_i + (i-t+1)\,w\bigr)\,v_i + \exp\bigl(u + k_t\bigr)\,v_t }{ \sum_{i=0}^{t-1} \exp\bigl(k_i + (i-t+1)\,w\bigr) + \exp\bigl(u + k_t\bigr) }.4, and for a clean reference WKVt=i=0t1exp(ki+(it+1)w)vi+exp(u+kt)vti=0t1exp(ki+(it+1)w)+exp(u+kt).\mathrm{WKV}_{t} = \frac{ \sum_{i=0}^{t-1} \exp\bigl(k_i + (i-t+1)\,w\bigr)\,v_i + \exp\bigl(u + k_t\bigr)\,v_t }{ \sum_{i=0}^{t-1} \exp\bigl(k_i + (i-t+1)\,w\bigr) + \exp\bigl(u + k_t\bigr) }.5, forcing WKVt=i=0t1exp(ki+(it+1)w)vi+exp(u+kt)vti=0t1exp(ki+(it+1)w)+exp(u+kt).\mathrm{WKV}_{t} = \frac{ \sum_{i=0}^{t-1} \exp\bigl(k_i + (i-t+1)\,w\bigr)\,v_i + \exp\bigl(u + k_t\bigr)\,v_t }{ \sum_{i=0}^{t-1} \exp\bigl(k_i + (i-t+1)\,w\bigr) + \exp\bigl(u + k_t\bigr) }.6 via a KL–Gaussian prior. After Covering Embedding on both factors, the streams are fused and passed through DR-blocks in which Bi-WKV performs signal mixing and a channel-mixing sublayer performs per-token MLP-style transformation (Wang et al., 28 Mar 2025).

RWKV-IR places Bi-WKV inside a transformer-like restoration layer. The layer applies LayerNorm, DC-Shift, linear projections to WKVt=i=0t1exp(ki+(it+1)w)vi+exp(u+kt)vti=0t1exp(ki+(it+1)w)+exp(u+kt).\mathrm{WKV}_{t} = \frac{ \sum_{i=0}^{t-1} \exp\bigl(k_i + (i-t+1)\,w\bigr)\,v_i + \exp\bigl(u + k_t\bigr)\,v_t }{ \sum_{i=0}^{t-1} \exp\bigl(k_i + (i-t+1)\,w\bigr) + \exp\bigl(u + k_t\bigr) }.7, WKVt=i=0t1exp(ki+(it+1)w)vi+exp(u+kt)vti=0t1exp(ki+(it+1)w)+exp(u+kt).\mathrm{WKV}_{t} = \frac{ \sum_{i=0}^{t-1} \exp\bigl(k_i + (i-t+1)\,w\bigr)\,v_i + \exp\bigl(u + k_t\bigr)\,v_t }{ \sum_{i=0}^{t-1} \exp\bigl(k_i + (i-t+1)\,w\bigr) + \exp\bigl(u + k_t\bigr) }.8, and WKVt=i=0t1exp(ki+(it+1)w)vi+exp(u+kt)vti=0t1exp(ki+(it+1)w)+exp(u+kt).\mathrm{WKV}_{t} = \frac{ \sum_{i=0}^{t-1} \exp\bigl(k_i + (i-t+1)\,w\bigr)\,v_i + \exp\bigl(u + k_t\bigr)\,v_t }{ \sum_{i=0}^{t-1} \exp\bigl(k_i + (i-t+1)\,w\bigr) + \exp\bigl(u + k_t\bigr) }.9, then either a single Bi-WKV scan or the Cross-Bi-WKV extension, in which one Bi-WKV pass operates on row-major flattening and another on column-major flattening. Their outputs, O(T ⁣ ⁣C)O(T\!\cdot\!C)0 and O(T ⁣ ⁣C)O(T\!\cdot\!C)1, are fused as

O(T ⁣ ⁣C)O(T\!\cdot\!C)2

The output is then gated by O(T ⁣ ⁣C)O(T\!\cdot\!C)3, projected by O(T ⁣ ⁣C)O(T\!\cdot\!C)4, and combined with residual and ChannelMix sublayers (Du et al., 2024).

AudioRWKV uses Bi-WKV in a sequence model built on RWKV7 for audio pattern recognition. Spectrograms are patch-embedded into a sequence, locally transformed by ConvShift, and then processed by bidirectional RWKV recurrences whose forward and backward outputs are fused by the learned gate O(T ⁣ ⁣C)O(T\!\cdot\!C)5. The paper explicitly positions this as a way to maintain the stable and efficient recurrent formulation of RWKV7 while adapting the original causal WKV kernel to global bidirectional context over the full audio sequence (Xiong et al., 2 Sep 2025).

These uses show that Bi-WKV functions less as an isolated primitive than as the sequence-mixing core of broader hybrid architectures: in DREMnet it operates inside disentangled denoising blocks, in RWKV-IR inside restoration-oriented transformer layers, and in AudioRWKV inside a spectrogram sequence model built around RWKV7 recurrence.

5. Computational complexity and implementation regimes

The central computational claim attached to Bi-WKV is that bidirectionality need not require quadratic self-attention. However, the implementation pathway matters.

For the original unidirectional WKV, DREMnet states O(T ⁣ ⁣C)O(T\!\cdot\!C)6 time and O(T ⁣ ⁣C)O(T\!\cdot\!C)7 extra memory by carrying forward two O(T ⁣ ⁣C)O(T\!\cdot\!C)8-vectors. Its Bi-WKV, written naively as a full all-to-all sum for each O(T ⁣ ⁣C)O(T\!\cdot\!C)9, has Nt=eu+ktvt+ewNt1,Dt=eu+kt+ewDt1,WKVt=NtDt,N_t = e^{u + k_t}\,v_t + e^{-\,w}\circ N_{t-1},\qquad D_t = e^{u + k_t} + e^{-\,w}\circ D_{t-1},\qquad \mathrm{WKV}_t = \frac{N_t}{D_t},0 time and Nt=eu+ktvt+ewNt1,Dt=eu+kt+ewDt1,WKVt=NtDt,N_t = e^{u + k_t}\,v_t + e^{-\,w}\circ N_{t-1},\qquad D_t = e^{u + k_t} + e^{-\,w}\circ D_{t-1},\qquad \mathrm{WKV}_t = \frac{N_t}{D_t},1 memory for storing Nt=eu+ktvt+ewNt1,Dt=eu+kt+ewDt1,WKVt=NtDt,N_t = e^{u + k_t}\,v_t + e^{-\,w}\circ N_{t-1},\qquad D_t = e^{u + k_t} + e^{-\,w}\circ D_{t-1},\qquad \mathrm{WKV}_t = \frac{N_t}{D_t},2 and Nt=eu+ktvt+ewNt1,Dt=eu+kt+ewDt1,WKVt=NtDt,N_t = e^{u + k_t}\,v_t + e^{-\,w}\circ N_{t-1},\qquad D_t = e^{u + k_t} + e^{-\,w}\circ D_{t-1},\qquad \mathrm{WKV}_t = \frac{N_t}{D_t},3, but the same source notes that because the decay depends only on Nt=eu+ktvt+ewNt1,Dt=eu+kt+ewDt1,WKVt=NtDt,N_t = e^{u + k_t}\,v_t + e^{-\,w}\circ N_{t-1},\qquad D_t = e^{u + k_t} + e^{-\,w}\circ D_{t-1},\qquad \mathrm{WKV}_t = \frac{N_t}{D_t},4, the two sums can be computed by two streaming passes—forward and backward—each in Nt=eu+ktvt+ewNt1,Dt=eu+kt+ewDt1,WKVt=NtDt,N_t = e^{u + k_t}\,v_t + e^{-\,w}\circ N_{t-1},\qquad D_t = e^{u + k_t} + e^{-\,w}\circ D_{t-1},\qquad \mathrm{WKV}_t = \frac{N_t}{D_t},5, yielding an optimized complexity of Nt=eu+ktvt+ewNt1,Dt=eu+kt+ewDt1,WKVt=NtDt,N_t = e^{u + k_t}\,v_t + e^{-\,w}\circ N_{t-1},\qquad D_t = e^{u + k_t} + e^{-\,w}\circ D_{t-1},\qquad \mathrm{WKV}_t = \frac{N_t}{D_t},6 (Wang et al., 28 Mar 2025).

RWKV-IR states the comparison in image-restoration notation with Nt=eu+ktvt+ewNt1,Dt=eu+kt+ewDt1,WKVt=NtDt,N_t = e^{u + k_t}\,v_t + e^{-\,w}\circ N_{t-1},\qquad D_t = e^{u + k_t} + e^{-\,w}\circ D_{t-1},\qquad \mathrm{WKV}_t = \frac{N_t}{D_t},7 and Nt=eu+ktvt+ewNt1,Dt=eu+kt+ewDt1,WKVt=NtDt,N_t = e^{u + k_t}\,v_t + e^{-\,w}\circ N_{t-1},\qquad D_t = e^{u + k_t} + e^{-\,w}\circ D_{t-1},\qquad \mathrm{WKV}_t = \frac{N_t}{D_t},8: standard dot-product attention has time Nt=eu+ktvt+ewNt1,Dt=eu+kt+ewDt1,WKVt=NtDt,N_t = e^{u + k_t}\,v_t + e^{-\,w}\circ N_{t-1},\qquad D_t = e^{u + k_t} + e^{-\,w}\circ D_{t-1},\qquad \mathrm{WKV}_t = \frac{N_t}{D_t},9 and memory O(T2)O(T^2)0, Vision-RWKV with Bi-WKV on one flattening has time O(T2)O(T^2)1 and memory O(T2)O(T^2)2, and Cross-Bi-WKV has time O(T2)O(T^2)3 and memory O(T2)O(T^2)4. The paper further notes that Cross-Bi-WKV is approximately O(T2)O(T^2)5 the cost of single-direction WKV while remaining linear in O(T2)O(T^2)6 (Du et al., 2024).

AudioRWKV gives the same asymptotic conclusion in sequence length O(T2)O(T^2)7 and channel dimension O(T2)O(T^2)8: Transformer self-attention requires O(T2)O(T^2)9, causal WKV requires O(TC)O(T\,C)0, and bidirectional WKV requires two recurrences plus a fusion gate, still O(TC)O(T\,C)1. Its pseudocode is described as a minimal-cost implementation with O(TC)O(T\,C)2 time and O(TC)O(T\,C)3 extra memory beyond storing inputs and outputs (Xiong et al., 2 Sep 2025).

Taken together, these reports clarify two points often conflated. First, the bidirectional operator can be expressed in a quadratic-looking form yet implemented in linear time when the decay structure permits streaming passes. Second, “linear complexity” does not imply identical constants, buffering strategy, or memory accounting across implementations; the papers separately count recurrent state, stored O(TC)O(T\,C)4 tensors, directional buffers, and full input-output storage.

6. Empirical effects, stability, and interpretive considerations

The reported empirical role of Bi-WKV is task-dependent but consistent in one respect: bidirectional context is presented as improving discrimination between signal and nuisance structure.

In DREMnet, the rationale is explicit. SATEM denoising requires each sample to depend on both past and future measurements, and Bi-WKV is said to improve the model’s ability to distinguish transient EM signal features from non-stationary noise. The learnable decay O(TC)O(T\,C)5 and self-reward O(TC)O(T\,C)6 are described as gates controlling how rapidly influence falls off with distance and how strongly the token admits its own information. The paper attributes improved denoising to bidirectional context, adaptive correlation-length control, and global attention applied to disentangled content and context streams, yielding higher SNR and lower MSE in both synthetic and real-field tests; it also states that processed field data more accurately reflects the theoretical signal and improves identification of subsurface electrical structures (Wang et al., 28 Mar 2025).

In RWKV-IR, an ablation on Urban100 O(TC)O(T\,C)7 at 10K iterations reports PSNR values of O(TC)O(T\,C)8 for Vision-RWKV with Q-Shift, O(TC)O(T\,C)9 for mt+=αmt1++ektvt,nt+=αnt1++ekt,wkvt+=mt+/nt+,m_t^{+}=\alpha\odot m_{t-1}^{+}+ek_t\odot v_t,\qquad n_t^{+}=\alpha\odot n_{t-1}^{+}+ek_t,\qquad wkv_t^{+}=m_t^{+}/n_t^{+},0Q-Shift without offset shift, mt+=αmt1++ektvt,nt+=αnt1++ekt,wkvt+=mt+/nt+,m_t^{+}=\alpha\odot m_{t-1}^{+}+ek_t\odot v_t,\qquad n_t^{+}=\alpha\odot n_{t-1}^{+}+ek_t,\qquad wkv_t^{+}=m_t^{+}/n_t^{+},1 for mt+=αmt1++ektvt,nt+=αnt1++ekt,wkvt+=mt+/nt+,m_t^{+}=\alpha\odot m_{t-1}^{+}+ek_t\odot v_t,\qquad n_t^{+}=\alpha\odot n_{t-1}^{+}+ek_t,\qquad wkv_t^{+}=m_t^{+}/n_t^{+},2DC-Shift with single Bi-WKV, and mt+=αmt1++ektvt,nt+=αnt1++ekt,wkvt+=mt+/nt+,m_t^{+}=\alpha\odot m_{t-1}^{+}+ek_t\odot v_t,\qquad n_t^{+}=\alpha\odot n_{t-1}^{+}+ek_t,\qquad wkv_t^{+}=m_t^{+}/n_t^{+},3 for mt+=αmt1++ektvt,nt+=αnt1++ekt,wkvt+=mt+/nt+,m_t^{+}=\alpha\odot m_{t-1}^{+}+ek_t\odot v_t,\qquad n_t^{+}=\alpha\odot n_{t-1}^{+}+ek_t,\qquad wkv_t^{+}=m_t^{+}/n_t^{+},4Cross-Bi-WKV. Under Urban100 mt+=αmt1++ektvt,nt+=αnt1++ekt,wkvt+=mt+/nt+,m_t^{+}=\alpha\odot m_{t-1}^{+}+ek_t\odot v_t,\qquad n_t^{+}=\alpha\odot n_{t-1}^{+}+ek_t,\qquad wkv_t^{+}=m_t^{+}/n_t^{+},5, 100K iterations, DF2K training, MambaIR reports mt+=αmt1++ektvt,nt+=αnt1++ekt,wkvt+=mt+/nt+,m_t^{+}=\alpha\odot m_{t-1}^{+}+ek_t\odot v_t,\qquad n_t^{+}=\alpha\odot n_{t-1}^{+}+ek_t,\qquad wkv_t^{+}=m_t^{+}/n_t^{+},6 PSNR and mt+=αmt1++ektvt,nt+=αnt1++ekt,wkvt+=mt+/nt+,m_t^{+}=\alpha\odot m_{t-1}^{+}+ek_t\odot v_t,\qquad n_t^{+}=\alpha\odot n_{t-1}^{+}+ek_t,\qquad wkv_t^{+}=m_t^{+}/n_t^{+},7 SSIM, whereas RWKV-IR reports mt+=αmt1++ektvt,nt+=αnt1++ekt,wkvt+=mt+/nt+,m_t^{+}=\alpha\odot m_{t-1}^{+}+ek_t\odot v_t,\qquad n_t^{+}=\alpha\odot n_{t-1}^{+}+ek_t,\qquad wkv_t^{+}=m_t^{+}/n_t^{+},8 PSNR and mt+=αmt1++ektvt,nt+=αnt1++ekt,wkvt+=mt+/nt+,m_t^{+}=\alpha\odot m_{t-1}^{+}+ek_t\odot v_t,\qquad n_t^{+}=\alpha\odot n_{t-1}^{+}+ek_t,\qquad wkv_t^{+}=m_t^{+}/n_t^{+},9 SSIM. The paper summarizes these as consistent PSNR/SSIM gains of Rt,Kt,VtRCR_t,K_t,V_t\in\mathbb R^C00–Rt,Kt,VtRCR_t,K_t,V_t\in\mathbb R^C01 dB at linear complexity (Du et al., 2024).

In AudioRWKV, the ablation on AudioSet-2M reports Rt,Kt,VtRCR_t,K_t,V_t\in\mathbb R^C02 mAP for causal RWKV7, Rt,Kt,VtRCR_t,K_t,V_t\in\mathbb R^C03 mAP after adding bidirectional scan with average fusion, Rt,Kt,VtRCR_t,K_t,V_t\in\mathbb R^C04 mAP after replacing average fusion by a learned gate, and Rt,Kt,VtRCR_t,K_t,V_t\in\mathbb R^C05 mAP for the final system with ConvShift and full integration. The same source states that A-RWKV-S (Rt,Kt,VtRCR_t,K_t,V_t\in\mathbb R^C06M) achieves performance parity with AuM-B (Rt,Kt,VtRCR_t,K_t,V_t\in\mathbb R^C07M) under the same linear-model regime, and that for long-form audio of approximately Rt,Kt,VtRCR_t,K_t,V_t\in\mathbb R^C08 minutes Rt,Kt,VtRCR_t,K_t,V_t\in\mathbb R^C09 seconds, WKV7 achieves up to a Rt,Kt,VtRCR_t,K_t,V_t\in\mathbb R^C10 speedup in processing; the throughput remains nearly flat while Transformer latency grows proportionally to Rt,Kt,VtRCR_t,K_t,V_t\in\mathbb R^C11, with OOM around Rt,Kt,VtRCR_t,K_t,V_t\in\mathbb R^C12 for AST(flash) (Xiong et al., 2 Sep 2025).

AudioRWKV also attaches a specific stability argument to Bi-WKV. Because RWKV7 constrains the per-channel decay Rt,Kt,VtRCR_t,K_t,V_t\in\mathbb R^C13 to Rt,Kt,VtRCR_t,K_t,V_t\in\mathbb R^C14, the sums Rt,Kt,VtRCR_t,K_t,V_t\in\mathbb R^C15 and Rt,Kt,VtRCR_t,K_t,V_t\in\mathbb R^C16 remain bounded, the spectral radius of the per-channel decay matrix satisfies Rt,Kt,VtRCR_t,K_t,V_t\in\mathbb R^C17, and Bi-WKV inherits the same numerical stability because it consists of the same bounded forward and backward recurrences followed by a convex fusion of two bounded streams. The paper reports stable convergence for models up to Rt,Kt,VtRCR_t,K_t,V_t\in\mathbb R^C18M parameters, without the gradient explosions or collapses seen in large SSMs under similar regimes (Xiong et al., 2 Sep 2025).

A useful interpretive caution follows from these results. The gains reported for “Bi-WKV” are not attributable solely to bidirectional recurrence in isolation: DREMnet combines it with disentangled content/context modeling and Covering Embedding, RWKV-IR combines it with DC-Shift and, in one variant, Cross-Bi-WKV, and AudioRWKV combines it with ConvShift and learned directional gating. The published evidence therefore supports Bi-WKV as a central component of several successful RWKV-derived systems, but not as a modality-independent drop-in explanation for the entirety of their performance.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Bidirectional WKV Kernel (Bi-WKV).