[Paper Review] I'm Sorry for Your Loss: Spectrally-Based Audio Distances Are Bad at Pitch
This paper evaluates spectrally-based audio distance metrics—commonly used as loss functions in self-supervised audio learning—by testing their ability to detect pitch direction between two sinusoids. Surprisingly, many such distances fail to correctly rank pitch changes, exhibiting poor gradient directionality and getting trapped in local minima, revealing a critical gap between these metrics and human pitch perception.
Growing research demonstrates that synthetic failure modes imply poor generalization. We compare commonly used audio-to-audio losses on a synthetic benchmark, measuring the pitch distance between two stationary sinusoids. The results are surprising: many have poor sense of pitch direction. These shortcomings are exposed using simple rank assumptions. Our task is trivial for humans but difficult for these audio distances, suggesting significant progress can be made in self-supervised audio learning by improving current losses.
Motivation & Objective
- To evaluate the perceptual validity of widely used audio-to-audio distance metrics in a controlled, synthetic pitch benchmark.
- To investigate why spectrally-based losses perform poorly in basic pitch comparison tasks despite their prevalence in audio representation learning.
- To expose failure modes such as incorrect gradient direction and local minima that impair optimization and generalization.
- To challenge the assumption that spectral representations inherently capture perceptually relevant dimensions like pitch.
- To advocate for re-evaluating loss functions in self-supervised audio learning with a focus on perceptual plausibility.
Proposed method
- Design a synthetic benchmark with two stationary sinusoids differing only in frequency and amplitude to isolate pitch perception.
- Apply common audio-to-audio distance metrics (e.g., L2, L1, MEL, STFT magnitude, and neural embeddings) to measure similarity between pairs of sinusoids.
- Use rank-based analysis to assess whether losses correctly order pitch changes (i.e., whether increasing frequency is consistently detected as increasing distance).
- Analyze gradient direction in the loss landscape to evaluate optimization path efficiency and identify local minima.
- Compare performance across different signal levels to assess confounding effects of amplitude on pitch sensitivity.
- Use contrastive learning setup to evaluate whether losses can distinguish between similar and dissimilar pitch pairs.
Experimental results
Research questions
- RQ1Do spectrally-based audio distance metrics correctly detect changes in pitch direction between two sinusoids?
- RQ2How do common audio losses perform in terms of gradient directionality when optimizing for pitch differences?
- RQ3To what extent do amplitude variations confound pitch-based distance estimation in spectral representations?
- RQ4Are there local minima in the loss landscape that hinder optimization for pitch-related tasks?
- RQ5Why do models using spectral losses still require external pitch trackers despite their widespread use in self-supervised learning?
Key findings
- Many spectrally-based audio distances fail to detect pitch direction correctly, with gradients pointing in the wrong direction for a significant fraction of pitch changes.
- Loss functions exhibit poor generalization, with optimization paths that are circuitous or trapped in local minima, especially when amplitude varies.
- The presence of amplitude variation significantly degrades the accuracy of pitch direction estimation, indicating confounding effects in spectral representations.
- Even simple, low-dimensional pitch tasks expose fundamental flaws in widely used audio distance metrics, suggesting they are not perceptually intuitive.
- The failure modes are not due to model capacity but stem from the inductive bias of spectral-based losses, which poorly align with human pitch perception.
- These results imply that current audio loss functions may be a bottleneck in self-supervised audio representation learning, particularly for tasks requiring pitch sensitivity.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.