Inferensys

Glossary

Frechet Genomic Distance

A metric for evaluating synthetic genomic data quality by comparing the distribution of generated sequences to real sequences in a feature space, analogous to the Frechet Inception Distance in computer vision.
Data engineer managing feature store on laptop, feature definitions visible, casual data engineering session.
SYNTHETIC DATA EVALUATION METRIC

What is Frechet Genomic Distance?

A quantitative metric for evaluating the quality of synthetic genomic data by comparing the distribution of generated sequences to real sequences in a learned feature space.

Frechet Genomic Distance (FGD) is a metric that quantifies the similarity between the distribution of real genomic sequences and synthetically generated sequences by measuring the Frechet distance between their respective multivariate Gaussian distributions in a feature space. It is directly analogous to the Frechet Inception Distance (FID) used in computer vision, adapted for nucleotide sequence evaluation. A lower FGD score indicates that the synthetic data more closely captures the statistical properties and biological variation of the real genomic dataset.

The metric operates by first passing both real and synthetic sequences through a pre-trained feature extractor, such as a DNA language model or a genomic classifier, to obtain high-dimensional embeddings. It then models these embeddings as Gaussian distributions, calculating the squared Wasserstein-2 distance between their means and covariance matrices. Unlike per-sequence metrics, FGD captures population-level fidelity, making it sensitive to mode collapse and distributional shifts in properties like GC content or k-mer frequency.

METRIC ANATOMY

Key Properties of FGD

The Fréchet Genomic Distance (FGD) is a principled metric for evaluating synthetic genomic data quality. It quantifies the similarity between the distribution of real sequences and generated sequences in a learned feature space, providing a single, interpretable score that correlates with downstream utility.

01

Distributional Distance Metric

FGD computes the Fréchet distance (also known as the Wasserstein-2 distance) between two multivariate Gaussian distributions fitted to real and synthetic genomic feature embeddings. It captures both the mean shift (differences in average feature values) and the covariance shift (differences in feature correlations). A lower FGD score indicates that the synthetic data more faithfully reproduces the statistical structure of the real genomic data.

Mean + Cov
Captures Both Moments
02

Feature Space Extraction

FGD does not operate on raw nucleotide sequences directly. Instead, a pre-trained feature extractor—typically a DNA language model or a convolutional neural network—maps sequences to a dense, high-dimensional embedding space. This space is designed to capture biologically meaningful features, such as motif presence, splice sites, and chromatin accessibility. The quality of the FGD evaluation is directly dependent on the representational power of this feature extractor.

03

Analogous to FID in Computer Vision

FGD is a direct adaptation of the Fréchet Inception Distance (FID), the gold-standard metric for evaluating synthetic images. In FID, embeddings are extracted from the Inception v3 network. In FGD, the Inception network is replaced with a genomic model. This analogy provides a rigorous, well-understood framework for generative model comparison, avoiding the pitfalls of qualitative or heuristic-only evaluations.

04

Sample Size Sensitivity

The calculation of FGD is sensitive to the number of samples used. With too few sequences, the estimated mean and covariance matrices become unreliable, leading to a biased and high-variance FGD score. Best practices recommend a minimum of 10,000 sequences for a stable estimate. The metric assumes the embeddings follow a Gaussian distribution, an approximation that holds better with larger sample sizes.

05

Correlation with Downstream Utility

A key strength of FGD is its demonstrated correlation with the Train-Synthetic-Test-Real (TSTR) paradigm. A lower FGD score generally predicts better performance when a model trained on synthetic data is evaluated on real data. This makes FGD a reliable proxy for data utility without needing to run expensive downstream tasks like variant calling or gene expression prediction for every model checkpoint.

06

Mode Collapse Detection

FGD is highly effective at detecting mode collapse, a common failure in GAN training where the generator produces only a few highly similar sequence types. A collapsed generator will have a feature covariance matrix with very low variance, which FGD penalizes heavily. A high FGD score, even with a reasonable mean, is a strong quantitative signal that the synthetic data lacks the full diversity of the real genomic distribution.

SYNTHETIC DATA EVALUATION

Frequently Asked Questions

Clear, technical answers to common questions about measuring the quality and biological fidelity of artificially generated genomic sequences using the Fréchet Genomic Distance metric.

The Fréchet Genomic Distance (FGD) is a quantitative metric for evaluating the quality of synthetic genomic data by measuring the distributional similarity between real and generated DNA sequences in a learned feature space. It works by first passing both real and synthetic sequences through a pre-trained genomic feature extractor—typically a DNA language model or a convolutional neural network—to obtain high-dimensional embeddings. The FGD then models these embeddings as multivariate Gaussian distributions and calculates the Fréchet distance (also known as the Wasserstein-2 distance) between them. The formula is: FGD = ||μ_r - μ_s||² + Tr(Σ_r + Σ_s - 2√(Σ_r Σ_s)), where μ and Σ represent the mean and covariance of the real (r) and synthetic (s) feature distributions. A lower FGD score indicates that the synthetic sequences capture the global statistical structure of the real genomic data, including k-mer frequency patterns, GC content bias, and motif preservation. This metric is directly analogous to the Fréchet Inception Distance (FID) used extensively in computer vision to evaluate generated images.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.