NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

MIRFLEX: Music Information Retrieval Feature Library for Extraction

Anuradha Chopra, Abhinaba Roy, Dorien HerremansarXiv 2024 · DOI

Abstract

MIRFLEX is a unified, open-source Python library designed to centralize diverse music information retrieval (MIR) tasks into a single modular framework. Developed by researchers at the Singapore University of Technology and Design, the library consolidates state-of-the-art models for rhythm, harmony, instrumentation, and mood. By providing a standardized interface and access to both high-level labels and latent embeddings, MIRFLEX significantly lowers the barrier for building complex music-AI applications, such as recommendation engines and generative systems.

Introduction

The field of Music Information Retrieval (MIR) has experienced a surge in high-performing machine learning models. However, these tools are often fragmented, with each model requiring specific dependencies, data formats, and implementation protocols. This fragmentation imposes a high "integration tax" on researchers and developers, who must often resolve environment conflicts and API discrepancies before conducting core research. MIRFLEX addresses this challenge by providing a centralized, modular, and extendable toolkit that standardizes the extraction of musical features.

Methodology and Architecture

The core philosophy of MIRFLEX is modular curation. Rather than developing new models from scratch, the authors integrated existing state-of-the-art (SOTA) approaches that offer publicly available weights. The library is designed to be flexible, allowing users to extract features as either human-readable "post-processed labels" (e.g., chord names) or "latent features" (embeddings) suitable for deep learning pipelines.

Key integrated components include:

  • Harmony: A Bidirectional Transformer model for chord detection, utilizing self-attention mechanisms to analyze preceding and succeeding audio frames.
  • Rhythm: BeatNet, which combines Convolutional-Recurrent Neural Networks (CRNN) with Particle Filtering for robust, real-time beat and downbeat tracking.
  • General Audio Features: Leveraging the Essentia ecosystem, MIRFLEX utilizes EfficientNet and various CNN architectures for instrument recognition and mood detection.

Evaluation and Key Results

The integrated models were evaluated across several benchmark datasets, including GiantSteps (key/tempo), Isophonics (chords), GTZAN (rhythm), and OpenMIC (instruments). The library demonstrates strong performance across all primary MIR tasks.

Chord Transcription and Harmony

The Bidirectional Transformer integrated into MIRFLEX achieves a high level of accuracy in chord transcription tasks, reaching a 83.9% Weighted Chord Symbol Recall (WCSR).

Performance benchmarks for various chord transcription models.

Rhythm and Beat Tracking

For rhythm analysis, BeatNet provides state-of-the-art performance with an 80.64% F-measure on the GTZAN dataset, while alternative models offer significant computational speedups.

Comparison of rhythm and tempo estimation models across different datasets.

Additional results include a 0.98 F1-score for instrument detection on the Philharmonica dataset and a 30x speedup in rhythm analysis when using the 1D State Space HMM compared to traditional methods.

Discussion and Insights

A key insight from the development of MIRFLEX is the prioritization of model availability over raw SOTA performance. For instance, while some models might report marginally higher accuracy on specific benchmarks, MIRFLEX prioritizes models with accessible weights to ensure immediate utility for the community. Furthermore, by providing latent representations, MIRFLEX serves as a powerful front-end for generative AI, offering "musical priors" that can guide music generation or transformation models.

Conclusion and Future Work

MIRFLEX represents a significant step toward standardizing MIR workflows. While the library is already highly functional, future work will focus on reducing the computational cost of high-accuracy models like BeatNet and improving performance in subjective areas such as mood and emotion detection. The project is open-source and encourages community contributions to maintain its position at the cutting edge of music information retrieval.

Summary updated

BibTeX
@misc{chopra2024mirflex,
  author = {Anuradha Chopra and Abhinaba Roy and Dorien Herremans},
  title = {{MIRFLEX: Music Information Retrieval Feature Library for Extraction}},
  year = {2024},
  eprint = {2411.00469},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.00469},
}

Loading related content...

Figure