AudioRWKV: Efficient and Stable Bidirectional RWKV for Audio Pattern Recognition

Jiayu Xiong, Jun Xue, Jianlong Kwan, Jing WangarXiv 2025 · OpenReview

TL;DR

This paper introduces AudioRWKV (A-RWKV), a novel architecture for audio pattern recognition that combines the efficiency of linear-time models with the stability of the RWKV framework. By adapting RWKV's recurrent formulation with a 2D convolutional token shift and a bidirectional attention mechanism, A-RWKV achieves state-of-the-art performance on various audio tasks while significantly outperforming existing models in processing long audio sequences.

What Problem Does This Paper Address?

The field of audio understanding has seen impressive progress with Transformer-based models like AST and linear-time state-space models like Audio Mamba (AuM). However, Transformers suffer from quadratic computational complexity ($O(L^2)$), making them impractical for long audio segments. On the other hand, while AuM offers linear complexity, it faces significant training instability issues when scaled to larger models, hindering performance improvements. This creates a need for audio models that are both computationally efficient for long sequences and robustly scalable.

Methods

AudioRWKV (A-RWKV) builds upon the RWKV7 architecture, known for its stable recurrent formulation and linear complexity. The core innovations are:

  • 2D Depthwise Separable Convolution (DWConv2D) for Token Shift: Instead of the original 1D token shift, A-RWKV employs a 2D DWConv2D. This allows the model to capture local spectro-temporal patterns within the audio spectrogram more effectively.
  • Bidirectional WKV Kernel (Bi-WKV): The authors adapt the causal WKV kernel into a bidirectional version. This enables the model to consider the entire audio sequence for global context modeling while maintaining linear computational complexity.
  • Stable RWKV7 Foundation: By leveraging the inherent stability of the RWKV7 architecture, A-RWKV is designed to scale seamlessly to larger model sizes without the training instabilities that plague other linear models.

Datasets

The paper evaluates A-RWKV on several public audio benchmarks:

  • AudioSet (AS2M/AS20K): Used for evaluating performance on audio event detection tasks, with ~10s clips and mAP as the metric.
  • ESC-50 (ESC): Used for environmental sound classification, with 5s clips and accuracy as the metric.
  • Speech Commands v2 (SC V2): Used for keyword spotting, with ~1s clips and 35 classes, evaluated by accuracy.
  • NSynth Pitch (NP): Used for musical note classification, with ~4s musical-note clips and accuracy as the metric.
  • VGGSound (VGG): Used for audio-visual event localization, with 10s audio clips.

Key Insights and Ideas

  • Bridging the Gap: A-RWKV successfully bridges the gap between the global context modeling power of Transformers and the efficiency of linear-time models, offering a compelling alternative for long-form audio.
  • Scalability and Stability: The architecture demonstrates that RWKV's inherent stability is crucial for enabling scalable linear-time models, overcoming a key limitation of models like AuM.
  • Spectro-temporal Locality: The introduction of the 2D DWConv2D effectively injects local spectro-temporal inductive bias, which is vital for capturing fine-grained audio patterns.
  • Bidirectional Context for Audio: The bidirectional WKV mechanism proves effective in leveraging global context for audio, especially for tasks requiring understanding of longer temporal dependencies.

Key Results

  • Performance Parity with Larger Models: A-RWKV-S (22M parameters) achieves performance parity with AuM-B (92M parameters) on several benchmarks, demonstrating superior efficiency.
  • Significant Speedup for Long Audio: For long-form audio (~5 minutes 28 seconds), A-RWKV achieves up to a 13.3x speedup in processing compared to AST(flash).
  • Superior Throughput: A-RWKV exhibits more stable throughput than AST, especially as audio sequence length increases.
  • State-of-the-Art From-Scratch Training: A-RWKV-B/16 trained from scratch outperforms both AST and AuM baselines across multiple datasets, indicating strong generalization capabilities.
  • Effective Fine-tuning: Models fine-tuned after AudioSet-2M pre-training also show competitive or superior results compared to baselines.

Limitations and Future Work

  • Ablation Study on Components: The paper includes an ablation study (Table 4) that highlights the importance of each component: bidirectional scanning (Bi-Scan), fusion gate, and the novel ConvShift token shift. The full AudioRWKV with all components achieves the best performance.
  • Future Work: The authors suggest pursuing comprehensive remedies for issues related to incorporating ViT-based masked pre-training and further exploring scanning sequence mechanisms. They also note that while inductive biases are beneficial in low-to-moderate data regimes, they might impair performance at sufficiently large scales, a threshold that is difficult to determine.

Summary updated

Abstract

Recently, Transformers (e.g., Audio Spectrogram Transformers, AST) and state-space models (e.g., Audio Mamba, AuM) have achieved remarkable progress in audio modeling. However, the O(L^2) computational complexity of the Transformer architecture hinders efficient long-sequence processing, while the Mamba architecture tends to become unstable when scaling parameters and data. To address these challenges, this paper proposes AudioRWKV (A-RWKV), a highly efficient and stable architecture for audio modeling. Specifically, we inherit the stable and efficient recurrent formulation of RWKV7 and replace its 1D token-shift operation with a 2D depthwise separable convolution to better capture local spectro-temporal patterns. Furthermore, we adapt the original causal WKV kernel into a bidirectional WKV kernel (Bi-WKV), enabling global context modeling over the entire audio sequence while maintaining linear computational complexity. Benefiting from the inherent stability of the RWKV7 foundation, A-RWKV scales seamlessly to larger model sizes. Experimental results demonstrate that, under the same linear-model regime, A-RWKV-S (22M) achieves performance parity with AuM-B (92M) while exhibiting more stable throughput than AST; for long-form audio (~5 minutes 28 seconds), WKV7 achieves up to a 13.3X speedup in processing.
BibTeX
@misc{xiong2025audiorwkv,
  author = {Jiayu Xiong and Jun Xue and Jianlong Kwan and Jing Wang},
  title = {{AudioRWKV: Efficient and Stable Bidirectional RWKV for Audio Pattern Recognition}},
  year = {2025},
  url = {https://openreview.net/forum?id=SEmbGiVn3u},
}
Figure