Evaluation, diagnostics, benchmarks, and additional tests · Evaluation, diagnostics, benchmarks, and additional hypothesis tests · EVA043 · Metric
Fréchet Audio Distance
Compares reference and generated/enhanced audio distributions using Gaussian summaries of audio embeddings.
In CodeSplash
No method yet, but the reference's example runs here as a notebook.
Do it in CodeSplash Open the reference's example as a Python or R notebook.
- Availability
- Runs as a notebook
- Code example
- Complete calculation
- Who ran it
- CodeSplash's run and the reference's record
- CodeSplash's run
- The reference's example ran in Python and R here, and they agree.
- The reference's record
- Python: Ran in the reference's review. The report doesn't record which version of the code ran. R: Reviewed but not run: R wasn't available to the reference's authors.
Purpose
Compares reference and generated/enhanced audio distributions using Gaussian summaries of audio embeddings.
Question / hypotheses
How different are the two sets of audio features? A corresponding clean reference for every output is not required.
Architecture / computational structure
A fixed pretrained feature/evaluation model followed by the named aggregation rule. The feature extractor is part of the metric specification.
Assumptions
Keep embedding model, sample rate, segmentation, loudness handling, duration distribution, and number of clips fixed. Reference-free here means no paired clean waveform, not no reference distribution.
Formula / computational definition
Parameters and notation
Feature moments are estimated; encoder and clip protocol are evaluation hyperparameters. Different embedding networks produce different metrics despite sharing this formula.
Fitting, fine-tuning, and adaptation
There is no model fine-tuning step for this evaluation procedure. Freeze the evaluated systems and evaluator before the final test. Select evaluation settings on development data; if a learned evaluator or calibration model is adapted, use separate fitting data, version it, and reassess its validity.
How to use and calibrate
Use a fixed independent reference corpus and report the embedding implementation. Add semantic alignment, intelligibility, and human assessments for the task.
Example application
Compare generated music distributions at matched duration and sample rate.
Interpretation / pitfalls
Watch out
FAD inherits sample-size and embedding sensitivity from Gaussian feature distances. Good aggregate audio similarity does not establish prompt adherence, diversity of musical structure, or absence of memorization.
Python and R code examples
Scope: Mathematical calculation on synthetic inputs; not a complete benchmark pipeline.
Validation: Python — Executed successfully on synthetic inputs. R — reviewed but not executed in this environment. Python dependencies are explicit imports; R uses base R unless a package/bridge is explicitly named.
Python and R
The reference's own programs, shown as written. A component demo shows one central piece of the method; it doesn't train a full model.
Complete calculation — Mathematical calculation on synthetic inputs; not a complete benchmark pipeline. · needs numpy
import numpy as np
mu_r=np.array([0.,.5]); mu_g=np.array([.2,.4]); var_r=np.array([1.,.8]); var_g=np.array([.9,1.2])
print(np.sum((mu_r-mu_g)**2)+np.sum(var_r+var_g-2*np.sqrt(var_r*var_g)))
Complete calculation — Mathematical calculation on synthetic inputs; not a complete benchmark pipeline.
mr <- c(0,.5); mg <- c(.2,.4); vr <- c(1,.8); vg <- c(.9,1.2)
print(sum((mr-mg)^2)+sum(vr+vg-2*sqrt(vr*vg)))
Sources
- Source 1arxiv.org
- Source 2github.com
From the CodeSplash reference, entry EVA043.