Unveiling Differences in Generative Models: A Scalable Differential Clustering Approach

Jingwei Zhang, Mohammad Jalali, Cheuk Ting Li, Farzan Farnia

Introduction

Evaluating generative models like GANs, Diffusion models, and VAEs typically relies on single quantitative scores such as the Fréchet Inception Distance (FID) or Inception Score (IS). While these metrics are useful for ranking models, they function as "black boxes," failing to provide insights into specific qualitative differences between distributions. For instance, a model might achieve a superior FID score while failing to capture rare textures or specific object classes present in the training data. To bridge this gap, researchers from the Chinese University of Hong Kong have introduced FINC (Fourier-based Identification of Novel Clusters), a scalable algorithm designed for fine-grained, interpretable model comparison through differential clustering.

Methodology: Fourier-based Identification of Novel Clusters (FINC)

The primary challenge in differential clustering—identifying sample types present in one distribution but absent in another—is computational complexity. Existing spectral methods often require the eigendecomposition of $n \times n$ kernel matrices, leading to $O(n^3)$ complexity, which is prohibitive for large-scale datasets like ImageNet.

FINC overcomes this bottleneck by leveraging Random Fourier Features (RFF) to approximate the kernel covariance matrix. By projecting data into a lower-dimensional space using $r$ random features, the problem is transformed into the eigendecomposition of a much smaller $2r \times 2r$ matrix. This shift reduces complexity to approximately $O(n)$, enabling the processing of hundreds of thousands of samples in seconds. The method also introduces a novelty threshold parameter ($\rho$), allowing users to define the degree of frequency required for a cluster to be considered "novel."

Figure 1: Experimental setup for distribution comparison. The algorithm identifies differences between a testing distribution (e.g., MNIST mixed with colored digits) and a reference distribution (standard MNIST).

Experimental Setup and Datasets

The efficacy of FINC was validated across several standard computer vision benchmarks, including ImageNet-1K, CelebA, FFHQ, and AFHQ. For feature extraction, the researchers utilized DINOv2 embeddings to ensure high-quality visual representations.

A critical "sanity check" involved synthetic datasets, such as colored MNIST, where the algorithm was tasked with detecting known, human-introduced differences. In these tests, FINC successfully identified all ground-truth novel clusters (e.g., specific colored digits) as its top results.

Key Results and Insights

FINC demonstrates significant improvements in both efficiency and interpretability over baseline methods like KEN or Rarity. In head-to-head timing tests on ImageNet, FINC processed 250,000 samples in approximately 74 seconds on a GPU, whereas competing methods often crashed due to memory limitations or required hours for smaller subsets.

Qualitatively, FINC allows researchers to visualize the exact modes where models diverge. For example, when comparing the AFHQ dataset (containing cats, wildlife, and dogs) against a reference distribution of ImageNet dogs, FINC accurately identifies the non-dog categories as the top novel modes.

Figure 2: Top novel modes identified by FINC when comparing the AFHQ testing distribution against an ImageNet-dogs reference distribution. The algorithm successfully isolates tigers, lions, and other wildlife as distinct novel clusters.

Beyond simple comparison, FINC has practical applications in:

  • Detecting Memorization: Identifying specific modes where a model is "copy-pasting" training data.
  • Text-to-Image Alignment: Pinpointing visual concepts or prompts where a model fails to align with expected distributions.

Conclusion and Future Work

FINC represents a significant step forward in generative model evaluation, moving from abstract ranking to actionable interpretation. By breaking the complexity barrier of spectral analysis, it makes fine-grained evaluation viable for modern, large-scale AI. Future research directions include extending the framework to simultaneous multi-model comparisons and reducing sensitivity to hyperparameter tuning for kernel bandwidth and feature counts.

Summary updated

BibTeX
@inproceedings{zhang2025unveiling,
  author = {Jingwei Zhang and Mohammad Jalali and Cheuk Ting Li and Farzan Farnia},
  title = {{Unveiling Differences in Generative Models: A Scalable Differential Clustering Approach}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.00774},
}
Figure