Fréchet Wavelet Distance: A Domain-Agnostic Metric for Image Generation

Lokesh Veeramacheneni, Moritz Wolter, Hildegard Kuehne, Juergen Gall · DOI

Abstract

Modern metrics for generative learning like Fréchet Inception Distance (FID) and DINOv2-Fréchet Distance (FD-DINOv2) demonstrate impressive performance. However, they suffer from various shortcomings, like a bias towards specific generators and datasets. To address this problem, we propose the Fréchet Wavelet Distance (FWD) as a domain-agnostic metric based on the Wavelet Packet Transform ($W_p$). FWD provides a sight across a broad spectrum of frequencies in images with a high resolution, preserving both spatial and textural aspects. Specifically, we use $W_p$ to project generated and real images to the packet coefficient space. We then compute the Fréchet distance with the resultant coefficients to evaluate the quality of a generator. This metric is general-purpose and dataset-domain agnostic, as it does not rely on any pre-trained network, while being more interpretable due to its ability to compute Fréchet distance per packet, enhancing transparency. We conclude with an extensive evaluation of a wide variety of generators across various datasets that the proposed FWD can generalize and improve robustness to domain shifts and various corruptions compared to other metrics.

Introduction: The Limitations of FID

In the evaluation of generative models, the Fréchet Inception Distance (FID) has long been the standard. However, FID relies on a feature extractor (InceptionV3) pre-trained on ImageNet, which introduces a significant domain bias. When evaluating specialized datasets—such as satellite imagery, medical scans, or agricultural photos—FID may produce misleading rankings because the underlying network is optimized for natural objects like "dogs" or "cars."

Furthermore, deep-learning-based metrics often act as "black boxes," making it difficult to diagnose why a model is underperforming. Models can also "game" FID by producing artifacts that happen to align with Inception's internal activations, even if the visual quality is poor. To solve these issues, we introduce the Fréchet Wavelet Distance (FWD), a domain-agnostic, computationally efficient, and interpretable alternative.

Methodology: Wavelet Packet Transform

FWD replaces deep neural networks with a classical mathematical tool: the Wavelet Packet Transform ($W_p$). Unlike standard CNN features, wavelets are a fixed mathematical operation requiring no training.

  1. Decomposition: Images are decomposed into various frequency subbands (packets) using a Haar wavelet transform. This captures both spatial structure and textural frequency information simultaneously.
  2. Coefficient Space: Images are projected into this packet coefficient space rather than a hidden layer of a CNN.
  3. Fréchet Calculation: The Fréchet distance is computed between the real and generated sets for each individual packet.
  4. Averaging: The final FWD score is the average of these per-packet distances.
Hierarchical decomposition of an image using the Wavelet Packet Transform across four levels, capturing increasingly fine-grained frequency information.

Key Insights and Interpretability

A primary advantage of FWD is its transparency. Because it calculates distances per frequency packet, researchers can pinpoint exactly where a generator fails. For instance, high distances in high-frequency packets indicate struggles with fine textures or the presence of "checkerboard" noise.

Comparison of feature distributions between InceptionV3 and Wavelet Packets. FWD (Packets) demonstrates a more distinct separation between different subjects (higher MSE) compared to the relatively noisy InceptionV3 predictions.

As shown in the comparison above, FWD provides a more interpretable and discriminative signal than the activations of a pre-trained InceptionV3 network, which can appear as unstructured noise when applied to out-of-domain data.

Evaluation and Results

We evaluated FWD across diverse benchmarks, including CelebA-HQ, FFHQ, LSUN, and specialized domains like the DNDD-Dataset (agricultural imagery) and Sentinel (satellite data).

  • Domain Agnosticism: In agricultural datasets, FID incorrectly ranked lower-quality models (e.g., Proj. FastGAN) higher than superior ones (DDGAN). FWD correctly identified the higher-quality generator, proving its robustness to domain shifts.
  • Human Alignment: In studies involving Stable Diffusion (v1.5 to v3.5), FWD rankings aligned more closely with human "User Ratings" than FID, which remained biased toward older architectures.
  • Computational Efficiency: FWD is roughly 36 times faster than FD-DINOv2, achieving a throughput of 1,923 images per second compared to 526 for FID.
  • Robustness: FWD shows a consistent, linear response to image degradations like Gaussian blur or JPEG compression, whereas FID can produce non-intuitive scores under noise.

Conclusion

Fréchet Wavelet Distance offers a robust, interpretable, and domain-agnostic alternative to traditional generative metrics. By eliminating the "ImageNet bias" and providing per-packet granularity, FWD empowers researchers to evaluate models more accurately across a wider variety of specialized fields. Future work will explore different wavelet families (e.g., Daubechies) and automated resolution scaling to further refine the metric's sensitivity.

Summary updated

BibTeX
@inproceedings{veeramacheneni2025frechet,
  author = {Lokesh Veeramacheneni and Moritz Wolter and Hildegard Kuehne and Juergen Gall},
  title = {{Fréchet Wavelet Distance: A Domain-Agnostic Metric for Image Generation}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=QinkNNKZ3b},
}
Figure