Abstract
Estimating tempo is a fundamental task in Music Information Retrieval (MIR), typically requiring large annotated datasets. This work investigates the adaptation of self-supervised learning (SSL) models, originally developed for pitch estimation, to the domain of tempo estimation. By treating rhythm periodicity as a "low-frequency pitch," the authors adapt the PESTO and SPICE architectures. Through a specialized front-end transformation and equivariance training, the adapted PESTO model achieves state-of-the-art performance in the SSL category, rivaling supervised systems while utilizing minimal labeled data.
Introduction
In MIR, tempo estimation—identifying the "heartbeat" of a track in beats per minute (BPM)—is a foundational yet challenging task. Traditional supervised approaches are bottlenecked by the need for extensive, manually annotated datasets, which are expensive and prone to human error. Self-Supervised Learning (SSL) provides an alternative by training on unlabeled data via "pretext tasks."
The core hypothesis of this research is that tempo (periodicity of rhythm) and pitch (periodicity of a waveform) share a mathematical kinship. By "re-tuning" SSL models designed for pitch, the authors aim to solve the tempo estimation problem more efficiently.
Methodology
The researchers adapted two prominent pitch-based SSL models: SPICE and PESTO. Both utilize a Siamese network architecture to learn representations from two augmented versions of the same input.
Front-End Transformation
To bridge the gap between high-frequency audio (pitch) and low-frequency rhythm (tempo), the authors implemented a specific front-end:
- Onset Strength Function (OSF): A signal representing the energy of note strikes.
- Constant-Q Transform (CQT): Applied to the OSF. In this domain, a change in tempo (time-stretching) manifests as a vertical shift, mirroring how pitch shifts in a standard audio CQT.
Model Architectures and Training
The models are trained to be equivariant to time-stretching. If an input is stretched by a factor of $k$, the internal representation shifts accordingly.
As shown in the figure above, PESTO uses a lightweight encoder with Toeplitz layers, while SPICE includes a decoder for input reconstruction. To map relative SSL outputs to absolute BPM, the authors employed two strategies:
- Calibration: Mapping outputs using a small set of synthetic click-track data.
- Fine-tuning: Training a linear classifier on top of the frozen SSL encoder using a limited amount of labeled data.
Experimental Results
The study evaluated the models on several MIR benchmarks, including Hainsworth, GTZAN-rhythm, Giantsteps, and ACM Mirum, after training on the unlabeled FMA-medium dataset.
Key Findings
- PESTO vs. SPICE: PESTO consistently outperformed SPICE. The authors attribute this to SPICE's reliance on a decoder; while effective for simple pitch waveforms, the decoder struggles with the noisy patterns of rhythmic signals, often leading to "octave errors" (misidentifying tempo by a factor of two).
- State-of-the-Art SSL: Adapted PESTO outperformed previous SSL benchmarks (e.g., Quinton's TCN model). On the ACM Mirum dataset, it achieved an Accuracy 2 (allowing for octave errors) of 96.1% with only synthetic calibration.
- Competitive with Supervised Models: When fine-tuned, PESTO reached performance levels competitive with specialized, fully supervised deep learning systems, such as those by Böck et al.
Conclusion
This research demonstrates that pitch-based SSL architectures can be effectively repurposed for tempo estimation. The lightweight PESTO model (70k parameters) proved more robust and agile than the larger SPICE model (2.3M parameters). While supervised systems still hold an edge in precise "Accuracy 1" metrics, the SSL approach offers a powerful, data-efficient alternative. Future work will explore "zero-shot" domain adaptation, allowing models to specialize in new musical genres without human intervention.
Summary updated