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

Institutions

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
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

A hybrid mamba and transformer architecture with frequency and time streams for orchestral instrument recognition

Jiaxiang Zheng, Huan Cheng, Chen Wu
Discover Computing
Music and Audio Processing
article

A hybrid mamba and transformer architecture with frequency and time streams for orchestral instrument recognition

Jiaxiang Zheng, Huan Cheng, Chen Wu
article en

Abstract

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.

Discover ComputingVol. 29(1)
Kangwon National University (KR), Xi'an Conservatory of Music (CN)
Music and Audio Processing
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon