Where Generated Music Differs: Quadric-Pencil Spectra as an Audio Metric

Fréchet Audio Distance (FAD) is the standard way to score an audio generator without human listeners. It embeds real and generated clips with a pretrained network, fits a Gaussian to each cloud of embeddings, and reports one number for how far apart the two Gaussians are. Listeners and FAD often disagree. A drum generator can reproduce the right mix of frequencies while placing hits off the beat, and FAD barely notices. A plausible reason is arithmetic: FAD's covariance term is weighted by absolute variance, so wide directions of the embedding space, such as loudness and timbre, dominate the score, while narrow directions that may carry meter or harmony contribute almost nothing. This note proposes a different summary built from a tool used in collision detection. Treat each Gaussian's confidence ellipsoid as a quadric surface, form the pencil of the two ellipsoids (the one-parameter family of combinations A + λB), and read its roots. These roots are the generalized eigenvalues of one distribution relative to the other.

The roots are unchanged by any affine change of coordinates, so every direction counts equally no matter how much raw variance it has. The discrete structure of the root set also classifies the pair of distributions as separated, just touching, or overlapping, and records the directions in which the generator has collapsed its variance. The central claim is that the extreme roots, not their sum, locate the perceptual failures that FAD misses, and that the matching eigenvectors identify which musical properties went wrong. If that holds, the pencil spectrum is a label-free diagnostic that says where a generator departs from real music, and it can rank systems in closer agreement with listeners than FAD does.

Core Claim

Let $\mu_r, \Sigma_r$ and $\mu_g, \Sigma_g$ be the mean and covariance of real and generated embeddings in $\mathbb{R}^d$. Following the homogeneous-coordinate form of An algebraic condition for the separation of two ellipsoids, write the radius-$\rho$ confidence ellipsoid of each distribution as a $(d{+}1)\times(d{+}1)$ symmetric matrix $A_r, A_g$ whose quadratic form is negative inside the ellipsoid. We study

$$f(\lambda) = \det(A_g + \lambda A_r) = 0,$$

together with its covariance-only core $\det(\Sigma_g - \lambda \Sigma_r) = 0$. The roots $\lambda_1,\dots,\lambda_d$ of the core are the per-direction variance ratios of generated to real audio. By comparison, FAD computes $\|\mu_r-\mu_g\|^2 + \mathrm{tr}(\Sigma_r+\Sigma_g-2(\Sigma_r\Sigma_g)^{1/2})$. When the two covariances share eigendirections, the trace term reduces to $\sum_i(\sqrt{\sigma_{r,i}}-\sqrt{\sigma_{g,i}})^2$, where $\sigma_{r,i},\sigma_{g,i}$ are the variances along direction $i$. A mismatch along a low-variance direction is therefore suppressed in proportion to that direction's scale.

The claim has three parts, each testable. The first is that structural errors such as broken meter or wrong harmony show up as roots far from 1 along low-variance directions. The second is that a statistic of the root tails, the largest $|\log\lambda_i|$ values after correction for sampling noise, tracks listener judgments where FAD does not. The third is that the matching generalized eigenvectors line up with interpretable musical descriptors. In short, the proposal replaces a scalar with a small invariant spectrum and an interpretation of that spectrum.

How the Four Directions Fit

The quadric-pencil direction supplies the mechanism. Wang et al. show that the root signs of $\det(A+\lambda B)$ decide separation, external tangency, or overlap of two ellipsoids, and that affine maps leave the roots unchanged. Continuous Collision Detection for Composite Quadric Models tracks how the root structure changes along a moving path, for example two positive roots merging into a double root at the moment of first contact. We borrow that path-tracking view for experiment E2 below, where the "path" is increasing codec depth. The pencil literature works in 3D with exact root counting by Sturm sequences. At $d=128$ we instead count eigenvalues above a threshold using the inertia of $A_g - \lambda A_r$, obtained from a symmetric factorization. This is the high-dimensional analogue of counting sign changes. The pencil papers also warn that results near degeneracies are numerically fragile. That warning becomes the main statistical risk here, since sample covariances in high dimension spread their eigenvalues even when the two distributions are identical.

Geometric dimensionality reduction supplies the method of reading the spectrum. Choi et al. project conic–conic contact onto a single intersection line and solve a 1D root problem. We likewise reduce the $d$-dimensional comparison to $d$ independent one-dimensional comparisons along generalized eigenvectors. We then keep only the few directions that carry the divergence, much as a low-dimensional slice is kept in the recursive decompositions of A Simple Motion Planning Algorithm for General Robot Manipulators.

Classification of algebraic varieties plays a smaller role, and we name it plainly. We use the classical idea that pairs of quadrics are classified by discrete invariants: which roots are repeated, their signs, and how rank drops. We report these invariants for each generator, including the number of near-zero roots (collapsed directions) and whether the confidence ellipsoids are separated or overlapping. The Kodaira-dimension results of Hao, Chen et al., and Schreieder et al. split a variety into a base and fibers through special forms. They suggest splitting the embedding space into a "matched" subspace (roots near 1) and a "mismatched" subspace, but they are an analogy only. No theorem from them is used, and the proposal does not depend on them.

Perceptual–objective divergence is the application and supplies the evidence for the gap. Fréchet Audio Distance introduced FAD on 128-dimensional VGGish embeddings. A Benchmarking Initiative for Audio-domain Music Generation using the FreeSound Loop Dataset found that distribution metrics favor texture over meter and structure. Improving Automatic Jazz Melody Generation by Transfer Learning Techniques found that intentional tensions are penalized as statistical outliers. Geometric Iterative Retrieval for Neural Audio Codec Resynthesis found that Log-Spectral Distance (LSD) is best after 3 of 9 residual quantization layers, while listeners prefer all 9. The jazz finding also constrains the design. A metric that rewards matching real variance in every direction will still penalize deliberate novelty, so we test whether the pencil spectrum can tell "more variance in a musical direction" apart from "collapsed or broken structure."

Research Program

We will build a pencil evaluator in three stages.

The first stage handles estimation. We compute shrinkage-regularized covariances. We calibrate a null distribution of pencil roots by comparing random halves of the real reference set, so that roots are reported as deviations from the spread expected under no difference. The tail statistic is then the number and size of roots outside the null band. An inertia count gives the number of directions in which the generator is over- or under-dispersed at a chosen tolerance.

The second stage computes the full homogeneous pencil. Here we check empirically whether Wang et al.'s two-positive-roots separation criterion behaves sensibly in $d$ dimensions. If it does not, we fall back to the covariance core plus a Mahalanobis term for the difference in means, and we report that outcome.

The third stage handles interpretation. We project clips onto the leading generalized eigenvectors and correlate the projections with tempo, key, and role annotations from The Freesound Loop Dataset and Annotation Tool, and with onset-regularity descriptors that we compute ourselves.

All metrics use the same VGGish embedding as FAD, so any gain comes from the summary and not from a better feature extractor. A secondary run on the continuous latents of the Descript Audio Codec tests whether the result holds across representations.

Baselines

The naive reference point is FAD itself, computed on identical embeddings, sample sizes, and reference sets. It is the metric the field uses, and Kilgour et al. report a correlation with human quality ratings of 0.52 on MagnaTagATune, against 0.39 for SDR (signal-to-distortion ratio). Beating it means higher rank correlation with listener judgments on our perturbation and depth studies. It also means detecting structural perturbations at severities where FAD's change stays within its own split-half noise.

The strongest competitor on the specific claim is an ablation we call whitened FAD. It is FAD computed after whitening both embedding sets by the real covariance, which makes it affine-invariant. It equals a sum over the same generalized eigenvalues. If whitened FAD matches the tail statistic, then affine invariance alone explains any gain, and the contribution shrinks to the diagnostic eigenvectors. We will report that plainly. Beating it requires the tail statistic to correlate better with humans on structural perturbations, where the claim predicts that a few extreme roots matter more than many small ones.

For codec depth we compare against LSD and ViSQOL v3, a reference-based quality metric with time alignment. Geometric Iterative Retrieval reports that LSD peaks after 3 layers (for example, LSD 10.61 for its method versus 12.42 for the cross-entropy baseline across 1500 clips). No per-layer human scores are reported on Lacuna, so we collect our own.

For listener agreement at the level of individual songs, the strongest existing method is a learned predictor. The file reports a UTMOS-based model trained on SongEval reaching Pearson 0.912 with human averages, against 0.61–0.66 for Audiobox-Aesthetic. We treat this as an upper reference, not a target. The pencil metric is label-free and scores sets of clips. We compare the two on set-level rankings by averaging the learned predictor's per-song scores over each set, with the same sets, the same bootstrap draws, and no tuning of the pencil threshold on test sets. Inception Score, which the FSLD benchmark reports as 5.24 for StyleGAN2 against 6.30 for real data, is included as a second distributional reference.

Why not just…?

Why not just whiten the embeddings and keep FAD? This is the real threat, because whitened FAD already has the affine invariance we rely on. The difference is aggregation. Whitened FAD adds up every direction's mismatch, so one collapsed meter-related direction is diluted by more than a hundred slightly noisy ones. The tail statistic keeps the extremes. The perturbation study settles the question by comparing sum against tail at matched false-positive rates on split-half real data. If the two tie, we drop the aggregation claim and keep the eigenvector diagnosis as the result.

Why not just train a learned quality predictor on human ratings? For per-song scores that is the better tool: 0.912 Pearson on SongEval is far above anything a label-free statistic will reach. Learned predictors, however, need human labels in each new domain, and they hide what went wrong. CMI-RewardBench also documents that their sub-scores are strongly entangled (musicality and alignment heads at SRCC about 0.85) and that they are open to reward hacking. The pencil evaluator answers a different question: in which directions does this generator's output distribution depart from real music, with no labels. We compare the two only on set-level ranking. The evaluator is worth having only if its eigenvectors give interpretable diagnoses that the learned score cannot.

Why not just compute FAD on hand-built rhythm and harmony features? This would target structure directly. It requires knowing in advance which property will fail, and it misses failures along directions nobody designed a feature for. We include an onset- and chroma-feature FAD as a baseline in the perturbation study. The pencil method should match it on the perturbations those features were designed for and outperform it on perturbations they were not designed for, such as texture changes that are local in time.

Proposed Experiments

E1 is controlled perturbations on FSLD. We use the 2,608 one-bar drum loops at 120 BPM from the FSLD slice evaluation. Structural perturbations are onset jitter, displaced downbeats, and shuffled sub-beats. Texture perturbations are equalization, added noise, and low-bitrate coding. We apply each at graded severities and collect a small paired listening test to place severities on a perceptual scale. The decisive check is whether FAD's sensitivity per unit of perceptual change is much lower for structural than for texture perturbations, and whether the pencil tail statistic closes that gap while whitened FAD does not.

E2 is a path in codec depth. We decode clips drawn from the three corpora of the Geometric Iterative Retrieval test pool (MTG-Jamendo, Common Voice, and FMA) with 1 through 9 residual quantization layers of the Descript Audio Codec and track the pencil roots against the full-depth reference. This mirrors the root-merging analysis of Choi et al. The prediction is that the tail statistic keeps improving through layer 9, matching listener preference, while LSD turns around at layer 3.

E3 is set-level ranking on SongEval. We form bootstrap sets stratified by generator and by human musicality quantile, measure each set's pencil divergence from a high-rated reference pool, and report Spearman correlation with the set's mean human score against FAD, whitened FAD, and the averaged learned predictor.

E4 is diagnosis. On E1 and on real generators, we test whether projections onto the leading eigenvectors correlate with tempo-stability and key-clarity descriptors. A negative result, meaning the eigenvectors are uninterpretable, would weaken the case for the diagnostic even if the ranking results hold.