A hybrid mamba and transformer architecture with frequency and time streams for orchestral instrument recognition
Music audio is a major component of streaming and multimedia systems. Automatic instrument recognition can support cross-modal retrieval, metadata generation, and fine-grained indexing of audio-visual archives. Many existing architectures use a common token-mixing scheme across spectrogram dimensions or do not explicitly assign different operators to the frequency and time axes. We investigate axis-specific operator allocation for complementary information along the frequency and time axes. We propose OrchMF, a two-stream Mamba–Transformer architecture with frequency-axis and time-axis branches. Both branches operate on the same log-mel spectrogram: the frequency-axis branch pools time into frequency-indexed tokens, whereas the time-axis branch covers the full spectrum in local temporal tokens. The frequency-axis branch uses Transformer self-attention for cross-band interactions, while the time-axis branch processes ordered time-indexed tokens with a Mamba-3 selective state-space model whose recurrence is linear in sequence length. Bidirectional cross-attention integrates the two representations. On a 15-class orchestral instrument evaluation corpus, OrchMF achieves 97% test accuracy and obtains higher mean values than all five evaluated baselines for accuracy and all macro-averaged metrics. Four ablation groups evaluate operator–axis assignment, branch use, fusion, and training-side regularization; the results support the frequency-time two-stream design and bidirectional cross-attention on this corpus. These findings motivate operator–axis matching as a testable design hypothesis for other multimedia audio tasks with frequency-time structure. Potential uses of instrument-level predictions include instrument-aware retrieval, archive annotation, and quantitative orchestration analysis. Code and supporting materials are available at https://huggingface.co/chenghuan12345/orchmf.
Authors
- Jiaxiang Zheng
- Huan Cheng (ORCID: https://orcid.org/0009-0006-6888-3091)
- Chen Wu (ORCID: https://orcid.org/0009-0005-0720-9397)
Institutions
- Kangwon National University (KR)
- Xi'an Conservatory of Music (CN)
Publication Details
- Journal
- Discover Computing
- Published
- 2026-12-01
- DOI
- https://doi.org/10.1007/s10791-026-10899-z
- Primary Topic
- Music and Audio Processing
- Type
- article
- Field-Weighted Citation Impact
- 0.00