Skip to main content
QUICK REVIEW

[Paper Review] Rarity Score : A New Metric to Evaluate the Uncommonness of Synthesized Images

Jiyeon Han, Hwanil Choi|arXiv (Cornell University)|Jun 17, 2022
Cell Image Analysis TechniquesBiochemistry, Genetics and Molecular Biology7 citations
TL;DR

This paper proposes the rarity score, a novel metric to evaluate the individual uncommonness of synthesized images by measuring their density in the real data manifold via nearest-neighbor distances in feature space. The method enables fine-grained comparison of generative models and datasets in terms of rare sample generation, revealing that FFHQ contains more rare faces than CelebA-HQ and LSUN-Cat is more diverse than AFHQ-Cat, with performance varying by feature extractor type.

ABSTRACT

Evaluation metrics in image synthesis play a key role to measure performances of generative models. However, most metrics mainly focus on image fidelity. Existing diversity metrics are derived by comparing distributions, and thus they cannot quantify the diversity or rarity degree of each generated image. In this work, we propose a new evaluation metric, called `rarity score', to measure the individual rarity of each image synthesized by generative models. We first show empirical observation that common samples are close to each other and rare samples are far from each other in nearest-neighbor distances of feature space. We then use our metric to demonstrate that the extent to which different generative models produce rare images can be effectively compared. We also propose a method to compare rarities between datasets that share the same concept such as CelebA-HQ and FFHQ. Finally, we analyze the use of metrics in different designs of feature spaces to better understand the relationship between feature spaces and resulting sparse images. Code will be publicly available online for the research community.

Motivation & Objective

  • To address the lack of metrics that quantify the individual rarity of synthesized images, which existing metrics like FID and IS fail to capture.
  • To enable comparison between generative models based on their ability to produce rare, distinctive samples without sacrificing image quality.
  • To allow cross-dataset comparison of rarity for conceptually similar datasets, such as CelebA-HQ and FFHQ.
  • To investigate how different feature extractors (e.g., VGG16, ViT, CLIP) influence the perception of rarity in generated images.
  • To provide a tool for sampling images with desired rarity levels while preserving fidelity.

Proposed method

  • The rarity score is computed by estimating the nearest-neighbor distance (NND) of a generated image to real images in a shared feature space.
  • The method uses a k-nearest neighbor (k-NN) approach on the real data manifold to estimate local density, with larger NND indicating rarer images.
  • Rarity scores are normalized across a dataset to allow comparison between models and datasets.
  • The metric is applied across multiple feature extractors (e.g., VGG16, DINO, CLIP) to assess how architectural and training differences affect rarity perception.
  • For cross-dataset comparison, the real manifolds of two datasets are merged, and rarity scores are computed on the union to assess relative uncommonness.
  • The approach enables sampling of images with specific rarity levels by selecting from the generated set based on their rarity scores.

Experimental results

Research questions

  • RQ1How can the individual rarity of a synthesized image be quantified in a way that existing metrics cannot?
  • RQ2To what extent do different generative models produce rare images, and how can this be measured objectively?
  • RQ3How does the choice of feature extractor influence the perceived rarity of generated images?
  • RQ4Can rarity scores be used to meaningfully compare two datasets sharing the same concept, such as CelebA-HQ and FFHQ?
  • RQ5What is the relationship between feature space design and the ability to generate sparse, rare samples?

Key findings

  • FFHQ exhibits a wider distribution of rarity scores than CelebA-HQ, indicating it contains more uncommon images, which aligns with FFHQ's more diverse, public-captured collection.
  • LSUN-Cat shows greater diversity in rarity scores than AFHQ-Cat, confirming that AFHQ-Cat's curated, close-up focus reduces overall variation.
  • VGG16-based rarity scores emphasize visual patterns and textures, identifying colorful face paint as rare features.
  • DINO-based scores highlight structural diversity, with high-scoring images showing varied face angles, while low-scoring images are predominantly front-facing.
  • CLIP-based scores treat baby faces as more similar due to shared semantic properties, leading to lower rarity scores for such images compared to adult faces.
  • The rarity score enables targeted sampling of rare images from generative models without compromising image quality, offering a practical tool for creative applications.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.