TL;DR
Can an AI trained solely to generate music also tell when two songs sound alike? The authors introduce JukeSim, a system that extracts internal "thoughts" (embeddings) from OpenAI's massive Jukebox model and feeds them into classic statistical frameworks to measure musical similarity. It turns out that marrying modern generative AI representations with 2000s-era statistical modeling matches today's specialized deep learning tools—and shatters a long-rumored performance ceiling for older, hand-crafted audio methods.
What Problem Does This Paper Address?
Imagine uploading a brand-new indie track to a streaming service. With zero plays or user playlists, collaborative filtering ("users who liked X also liked Y") is flying blind. To solve this "cold-start" problem, systems rely on content-based music similarity: judging whether two tracks sound alike using nothing but raw audio.
Historically, researchers tackled this by hand-crafting audio features (like spectral timbre or rhythm patterns). Over the last decade, deep neural networks trained specifically to compare or classify songs took over. Strangely, these two eras were never directly benchmarked on equal footing—leaving open a decades-old debate about whether music similarity had hit a theoretical "glass ceiling." Meanwhile, massive generative music models have emerged. Because these models can convincingly continue a piece of music, the authors hypothesized that their internal representations must naturally capture deep musical intuition that could be repurposed for similarity estimation.
Methods
The authors propose JukeSim, an approach that extracts features from Jukebox (an 8-billion-parameter autoregressive generative model) and pairs them with classical statistical aggregation.
Feeding a 24-second audio clip into Jukebox produces an overwhelming flood of data: 72 layers, 344 frames per second, and 4,800 dimensions per frame (over 5 terabytes for just 500 songs!). To make this tractable, the authors:
- Convert calculations to 16-bit precision and downsample the time resolution to 100 Hz.
- Extract features from just a single transformer layer—settling on ** Layer 36**, the literal middle of the network.
- Compress the 4,800 feature dimensions down to $P=150$ using Principal Component Analysis (PCA) pre-computed on an independent dataset (GTzan) so it doesn't have to be recalculated for every new music library.
To summarize a song's compressed matrix into a single global representation, they take inspiration from pre-deep-learning literature: instead of just averaging frames into a flat vector, they fit a single multivariate Gaussian (capturing both the mean and covariance across time). Songs are then compared using a closed-form approximation of the Jensen-Shannon Divergence (AltJSD), followed by Distance Space Normalization to tidy up the distance space.
Datasets
Because large-scale human listening tests are expensive, the authors tune and evaluate their methods across two paradigms:
- PCA Calibration: GTzan (10 genres) is used to compute a universal projection space.
- Genre Retrieval (Proxy Task): Systems fetch the $k$ closest songs to a query (filtering out tracks by the same artist) to see if their genres match. Evaluated on Homburg (1,886 10s clips, 9 genres), Ballroom (698 30s dance clips, 8 rhythm-heavy styles), 1517-artists (3,180 full songs, 19 genres), and Unique (3,115 30s clips, 14 genres).
- Human Triplet Judgments: Direct human intuition tests ("is Song A closer to B or C?") using MagnaTagATune (cleaned to 436 30s triplets) and dim-sim (879 high-agreement triplets; because the original 3s clips were unavailable, the authors substituted 24s central excerpts from 7digital).
Key Insights and Ideas
- Covariance matters: Fitting a Gaussian to a song's embeddings dramatically beats simply averaging them into a single vector across every tested scenario. How musical features co-vary over time holds vital perceptual clues.
- The "Glass Ceiling" was a mirage: Early 2000s literature famously argued that audio-based similarity had hit a hard ceiling due to the subjective nature of music. By finally benchmarking retired championship hand-crafted methods (RTBOF, BLS, CMB) against modern neural embeddings (JukeSim and DEEPSIM), the authors show modern models leap right past those old limits.
- Generative context rescues rhythm: The baseline deep-learning model (DEEPSIM) processes audio in tiny 3-second windows. On the rhythm-focused Ballroom dataset, DEEPSIM completely collapses, ranking dead last—even behind 15-year-old hand-crafted algorithms! JukeSim, digesting 24 seconds of context at once, dominates Ballroom.
- Anatomy of a transformer: Probing all 72 layers of Jukebox reveals that general genre similarity peaks at Layer 36, while dance-rhythm differentiation peaks deeper at Layer 42—aligning neatly with prior work showing beat-tracking lives in higher layers (e.g., Layer 53).
Key Results
- Genre Retrieval: JukeSim and DEEPSIM consistently outperform legacy hand-crafted methods across Homburg, 1517-artists, and Unique. On Ballroom, JukeSim achieves nearly 0.90 Precision@1 (with GTzan PCA), whereas DEEPSIM drops below 0.68. Conversely, on Homburg, DEEPSIM takes the top spot (~0.66 P@1 vs. JukeSim's ~0.65) and maintains flatter precision as $k$ grows.
- Human Triplets: On real human similarity judgments, JukeSim edges out DEEPSIM, scoring 81.46% vs. 80.50% accuracy on dim-sim, and 96.83% vs. 96.65% on MagnaTagATune—while clearly beating reimplemented classical baselines on dim-sim (RTBOF: 72.78%, BLS: 74.52%).
Limitations and Future Work
The elephant in the server room is compute. Jukebox is an 8-billion-parameter behemoth; running inference just to extract similarity embeddings is computationally heavy and impractical for massive commercial catalogs compared to lightweight models like DEEPSIM. Furthermore, Jukebox caps single-pass audio context at ~24 seconds, forcing JukeSim to judge full songs solely by their middle slice, and using a universal GTzan PCA noticeably degrades performance on specialized datasets like Ballroom. Future work can explore distilling this pipeline for efficiency or testing newer, lighter audio foundation models.
Summary updated