Abstract
The evaluation of audio fingerprinting at a realistic scale is limited by the scarcity of large public music databases. We present an audio-free approach that synthesises latent fingerprints which approximate the distribution of real fingerprints. Our method trains a Rectified Flow model on embeddings extracted by pre-trained neural audio fingerprinting systems. The synthetic fingerprints generated using our system act as realistic distractors and enable the simulation of retrieval performance at a large scale without requiring additional audio. We assess the fidelity of synthetic fingerprints by comparing the distributions to real data. We further benchmark the retrieval performances across multiple state-of-the-art audio fingerprinting frameworks by augmenting real reference databases with synthetic distractors, and show that the scaling trends obtained with synthetic distractors closely track those obtained with real distractors. Finally, we scale the synthetic distractor database to model retrieval performance for very large databases, providing a practical metric of system scalability that does not depend on access to audio corpora.
Introduction
Audio fingerprinting, the core technology behind services like Shazam, matches short audio snippets against massive databases. While many models perform well in small-scale laboratory settings, their real-world reliability often falters as databases grow to millions of songs. This degradation occurs because the latent search space becomes increasingly crowded with "distractors"—other songs that are mathematically similar to the query.
The primary bottleneck for researchers is scalability. Testing a system against 100 million songs traditionally requires access to 100 million songs. Due to copyright restrictions and storage costs, such datasets are rarely available to the academic community. Consequently, most models are benchmarked on small scales, leaving their performance on global-scale databases unknown.
Methods: Synthetic Latent Fingerprint Generation
To address this, we propose a generative approach to create realistic distractors directly in the latent space, bypassing the need for actual audio files.
Rectified Flow Model
Instead of traditional GANs or Diffusion models, we utilize a Rectified Flow framework. This model learns a "velocity field" to transform simple Gaussian noise into the complex distribution of audio fingerprints, effectively capturing the "shape" of the manifold where real fingerprints reside.
Latent-Space Generation
The model generates embeddings rather than raw audio. This makes the process highly efficient; generating a database of 6 million synthetic fingerprints takes approximately 25 minutes, compared to the 10 hours required to process actual audio. To ensure compatibility, we trained separate generative models for four state-of-the-art fingerprinting frameworks: NAFP, GraFPrint, PeakNetFP, and NMFP.
Results and Evaluation
We validated our approach using the Free Music Archive (FMA) dataset. FMA-medium (25,000 songs) was used to train the Rectified Flow model, while FMA-large provided "real" distractors for validation.
Fidelity and Retrieval Parity
The synthetic fingerprints achieved very low Frechet Distance (FD) and Jensen-Shannon (JS) divergence scores relative to real data. Most importantly, the performance degradation curves for real audio distractors and synthetic ones track almost perfectly across all tested models.
Stress Testing at Scale
By scaling the synthetic database to 100 million fingerprints, we observed significant differences in model robustness:
- NMFP was the most robust, showing only a 14.25% drop in accuracy when scaling from 1M to 100M distractors.
- PeakNetFP struggled significantly, with a 55.26% performance degradation at the same scale.
Conclusion
Our method provides a practical, audio-free metric for system scalability. While synthetic distractors do not yet account for semantic relationships (like cover songs), they accurately mimic the statistical distribution of real music embeddings. This framework allows researchers to stress-test retrieval systems at a scale previously inaccessible, facilitating the development of more robust audio identification technologies.
Summary updated