arXiv:2611.00746cs.SDOct 2026

Manuscript Offprint

arXiv:2611.00746

ResMamba: A Dual-Path Convolution-Mamba Model for Music Genre Classification

Yingyu Zhang, Pu Qu

YINGYU ZHANG 13^{13}, PU QU 23^{23}

1^{1}School of Artificial Intelligence, Hainan Normal University, Haikou 571127 China (e-mail: 240120@hainnu.edu.cn)

2^{2}School of Teacher Education, Hainan Normal University, Haikou 571127 China (e-mail: qupu1983@163.com)

Corresponding author: Yingyu Zhang (e-mail: 240120@hainnu.edu.cn).

This work was supported in part by the Hainan Natural Science Foundation of China under Grant 723QN237. Co-corresponding author: Pu Qu (e-mail: qupu1983@163.com).

ABSTRACT Music genre classification remains a fundamental yet challenging task in music information retrieval, requiring models that capture local time-frequency patterns and long-range temporal dependencies. To address this, we propose ResMamba, a hybrid architecture that augments a ResNet-style four-stage backbone with Mamba blocks. Building upon the selective structured state space sequence model, ResMamba first adapts the selective SSM into a 4D-compatible residual Mamba block that captures global dependencies at linear complexity. We then design the ConvMamba dual-path block, which combines this adapted Mamba branch with a parallel convolutional branch through a learned 1×11 \times 1 fusion, jointly modeling global sequential context and local spectro-temporal patterns. Furthermore, we adopt a multi-scale fusion head that aggregates hierarchical representations across all four stages. Experiments on the GTZAN dataset demonstrate that our full ResMamba model achieves a 5-fold cross-validation accuracy of 88.99%±1.58%88.99\% \pm 1.58\%, surpassing the strongest published method in our comparison (88.64%). All models are trained from scratch without any pretraining, external data, or data augmentation. Beyond GTZAN, ResMamba also generalizes to the larger FMA benchmarks under the same training protocol, attaining 64.52%±1.88%64.52\% \pm 1.88\% on FMA-Small under 10-fold cross-validation — the best published from-scratch result — and 65.75% on FMA-Medium under the official artist-level split, surpassing the widely cited SVM baseline of Defferrard et al. (63%).

INDEX TERMS Music genre classification, state space model, Mamba, ResNet, spectrogram analysis, deep learning.

I. INTRODUCTION

Music genre classification remains a cornerstone task in Music Information Retrieval (MIR). The ability to automatically categorize musical pieces into predefined genres—such as classical, jazz, rock, or pop—underpins a wide range of applications, including music streaming services, automated playlist generation, content-based recommendation systems, and large-scale archival management. Since the introduction of the GTZAN dataset [1] and systematic feature-engineering approaches by Tzanetakis and Cook, the field has undergone a significant paradigm shift: evolving from hand-crafted acoustic features with shallow classifiers to deep learning methods capable of learning representations directly from raw or preprocessed audio.

Convolutional Neural Networks (CNNs) have long served as the dominant paradigm for spectrogram-based music classification. Architectures such as ResNet [2], VGG [37], and CRNNs [12] treat mel-spectrograms as two-dimensional images, applying successive local convolutions to extract time-frequency patterns. Despite their effectiveness, the intrinsic inductive bias of CNNs—specifically, the limited receptive field of convolutional kernels—imposes an architectural bottleneck on modeling long-range dependencies across musical sections. Genre-defining characteristics, such as verse-chorus transitions, instrumentation variations, and rhythmic modulations, often unfold over tens of seconds, necessitating the ability to correlate temporally distant events along the sequence axis.

Among CNN architectures, ResNet [2] stands as one of the most influential designs in modern deep learning. By introducing residual connections with identity mappings, ResNet mitigates the degradation problem that hindered earlier deep networks, enabling stable training of very deep architectures. It has been successfully adapted to diverse modalities such as speech recognition, environmental sound classification, and music information retrieval, where its hierarchical feature extraction paradigm—characterized by four stages with

atXiv:2611.00746v1 [cs.SD] 31 Oct.2026 progressively increasing channel dimensions and decreasing spatial resolutions—provides a natural multi-scale representation that aligns well with the compositional structure of audio signals.

The recent emergence of State Space Models (SSMs), particularly the Structured State Space Sequence Model (S4) [4] and its selective variant, Mamba (S6) [3], has opened new avenues for sequence modeling with linear complexity. Mamba introduces a data-dependent selection mechanism that enables the model to selectively retain relevant tokens while filtering out noise, achieving performance competitive with Transformers on language and vision tasks while maintaining O(N)O(N) inference complexity. Subsequent works, including Vision Mamba [7] and VMamba [11], have further demonstrated that the Mamba framework can be effectively adapted to visual recognition through multi-directional scanning strategies for image patches.

In this paper, we propose ResMamba, a hybrid architecture that integrates the selective SSM block of Mamba into a ResNet-style four-stage hierarchical backbone for music genre classification. Our key contributions are threefold:

  1. We design a 4D-compatible Mamba wrapper that encapsulates the selective SSM within a 4D residual module interface, MambaWrapper, which accepts and returns feature maps of shape (B,C,H,W)(B, C, H, W). This module enables global context aggregation with linear time complexity while maintaining compatibility with hierarchical CNN backbones.

  2. We propose a ConvMamba dual-path block comprising two parallel branches: a Mamba branch leveraging the aforementioned 4D-adapted module for global sequence modeling, and a convolutional branch employing two stacked 3×33 \times 3 convolutions for local spectro-temporal feature extraction. The outputs from both branches are concatenated and fused via a learnable 1×11 \times 1 convolution, effectively preserving complementary global and local representations.

  3. We adopt a multi-scale fusion head that aggregates hierarchical features from all four stages prior to classification; ablation studies confirm that this aggregation yields complementary gains over the proposed ConvMamba blocks alone.

Extensive experiments on the GTZAN dataset validate the effectiveness of our approach. Notably, the ConvMamba variant with multi-scale fusion achieves a 5-fold cross-validation accuracy of 88.99%±1.58%88.99\% \pm 1.58\%, trained from scratch without any pretraining, external data, or data augmentation. Beyond GTZAN, ResMamba also generalizes to the larger Free Music Archive (FMA) benchmarks under the same protocol, attaining 64.52%±1.88%64.52\% \pm 1.88\% on FMA-Small under 10-fold cross-validation and 65.75%65.75\% on FMA-Medium under the official artist-level split.

The remainder of this paper is organized as follows. Section II reviews related work in music genre classification and state space models. Section III details the proposed Res-Mamba architecture. Section IV describes the experimental

setup and presents a comprehensive analysis of the results. Finally, Section V concludes the paper and outlines directions for future work.

References (45)