Introduction
In audio artificial intelligence, defining "quality" remains a significant challenge. Traditional training paradigms rely on Mean Squared Error (MSE), a metric that calculates the point-by-point mathematical difference between signals. However, human auditory perception is non-linear; subtle frequency shifts may go unnoticed while minor artifacts like crackle are highly disruptive. This research investigates whether human-centric perceptual metrics—specifically those designed to mimic biological sensory pathways—can serve as superior loss functions for training music representation models.
Methodology
The study evaluates three primary metrics:
- Mean Squared Error (MSE): A standard non-perceptual baseline.
- Multi-Scale Structural Similarity (MS-SSIM): An image-based metric adapted for spectrograms that evaluates luminance, contrast, and structure across resolutions.
- Normalized Laplacian Pyramid Distance (NLPD): A neurologically-inspired metric that simulates signal filtering and local information normalization in human visual and auditory pathways.
These metrics were tested through two distinct approaches using a filtered version of the GTZAN music genre dataset:
- Direct Clustering (KNN): Using metrics as distance measures to evaluate genre proximity.
- Representation Learning: Training convolutional autoencoders with these metrics as reconstruction loss, then classifying the resulting latent features via Logistic Regression.
The "Spread" Paradox
A primary finding of this study is the "Spread Paradox." While perceptual metrics like NLPD are designed to align with human judgment, they perform poorly as direct distance measures for clustering. As shown in the violin plots below, NLPD significantly increases the mathematical distance between samples within the same genre.
This "spreading" of data points suggests that NLPD removes redundant, slow-changing information, focusing instead on high-impact signal components. While this makes simple nearest-neighbor classification difficult, it forces representation models to capture more informative features.
Experimental Results
The performance of these metrics varies drastically depending on their application. In the direct distance task (KNN), perceptual metrics—particularly NLPD—underperformed compared to the MSE baseline.
As illustrated in the figure above, NLPD achieved a weighted F1 score of only 0.035, while MSE reached 0.220. However, the results were reversed in the representation learning task. When used as a training loss for autoencoders, NLPD outperformed MSE, achieving a weighted F1 score of 0.439 compared to MSE's 0.355. MS-SSIM proved to be a robust "all-rounder," performing consistently well across both experimental setups.
Conclusion and Future Work
The success of NLPD in representation learning supports the "efficient coding hypothesis," suggesting that mimicking biological data compression helps AI models focus on the most salient features of music. While the current models are simpler than state-of-the-art deep learning architectures, these results indicate that human-centric loss functions can significantly improve how machines "understand" complex audio categories. Future research will explore scaling these perceptual losses to larger datasets and more complex neural architectures.
Summary updated