SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2002.09797 · ICML · 2020

Reliable Fidelity and Diversity Metrics for Generative Models

Muhammad Ferjad Naeem, Seong Oh, Youngjung Uh, Yunjey Choi, Jaejun Yoo

arXiv · PDF · Open in the Atlas

Code that ran

5 of 9 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 2 have no contract verdict; 2 failures of our instrument; 4 no recorded run); 1 of them was also run on the host, not in the jail, by the peer-agreement lane that set its level, measured 2026-11-22; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2002.09797.json · badge: /api/ran/2002.09797.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
clovaai/generative-evaluation-prdc canonical (classifier label)
classifier basis: classifier_2025
0 ran · 4 no recorded run
copy not recorded community
not in the paper's declared repositories
2 ran · 0 no recorded run
kozistr/gan-metrics community (classifier label)
classifier basis not recorded on the link
2 ran · 0 no recorded run
sonycslparis/audio-metrics community
Papers with Code archive
1 ran · 0 no recorded run
FunctionStatusWhere it lives
compute_pairwise_distance Ran
ran, honoured the contract we drafted
this paper's copy was not recorded; identical code first harvested from clovaai/generative-evaluation-prdc
pointer only · get_code("259ec7338be8a457")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_kth_value Ran
ran; our contract draft was wrong, not the code
this paper's copy was not recorded; identical code first harvested from clovaai/generative-evaluation-prdc
pointer only · get_code("547662aecde999ed")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

is_valid_batch_size Ran
ran on a synthesized input
kozistr/gan-metrics/metrics/utils.py
code served (permissive licence) · get_code("99ef435f17f2d479")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

ARGS = {
    "batch_size": 32
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
is_valid_shape Ran
ran on a synthesized input
kozistr/gan-metrics/metrics/utils.py
code served (permissive licence) · get_code("11beb5b7654463dd")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Create two numpy arrays with the same shape
query = np.array([[1.0, 2.0, 3.0, 4.0],
                   [5.0, 6.0, 7.0, 8.0]])

reference = np.array([[9.0, 10.0, 11.0, 12.0],
                      [13.0, 14.0, 15.0, 16.0]])

ARGS = {
    "query": query,
    "reference": reference
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
prdc Ran
ran; our contract draft was wrong, not the code
sonycslparis/audio-metrics/src/audio_metrics/metrics/prdc.py
pointer only (licence: GPL-3.0) · get_code("9ece347078e1df5e")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, sonycslparis/audio-metrics, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

compute_nearest_neighbour_distances Not yet run
unverified (harvested, no recorded run)
clovaai/generative-evaluation-prdc/prdc/prdc.py
code served (permissive licence) · get_code("a408e16ed43950a5")
How it ran

no invocation recorded. this sample carries JSON test cases instead of a setup block; get_reference_implementation serves them with the level they back.

compute_pairwise_distance Not yet run
unverified (harvested, no recorded run)
clovaai/generative-evaluation-prdc/prdc/prdc.py
code served (permissive licence) · get_code("0c0553c682e66b85")
How it ran

no invocation recorded. this sample carries JSON test cases instead of a setup block; get_reference_implementation serves them with the level they back.

compute_prdc Not yet run
unverified (harvested, no recorded run)
clovaai/generative-evaluation-prdc/prdc/prdc.py
code served (permissive licence) · get_code("ea3158807a7ddbf6")
How it ran

no invocation recorded.

get_kth_value Not yet run
unverified (harvested, no recorded run)
clovaai/generative-evaluation-prdc/prdc/prdc.py
code served (permissive licence) · get_code("366a31e98268c0e3")
How it ran

no invocation recorded. this sample carries JSON test cases instead of a setup block; get_reference_implementation serves them with the level they back.

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 7 distinct functions with an identity, 4 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 4 later) and 3 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
get_kth_value
brick of this paper's assembly: helper
5 other papers
5 later · 1 only as an assembly brick
2103.09396 (2021-03)
Pros and Cons of GAN Evaluation Measures: New Developments
2105.14230 (2021-05)
Transforming the Latent Space of StyleGAN for Real Face Editing
2402.10693 (2024-02)
Exploring Precision and Recall to assess the quality and diversity of LLMs
and 2 more not named here
compute_nearest_neighbour_distances
brick of this paper's assembly: helper
4 other papers
4 later
2103.09396 (2021-03)
Pros and Cons of GAN Evaluation Measures: New Developments
2105.14230 (2021-05)
Transforming the Latent Space of StyleGAN for Real Face Editing
2402.10693 (2024-02)
Exploring Precision and Recall to assess the quality and diversity of LLMs
and 1 more not named here
compute_pairwise_distance
brick of this paper's assembly: helper
3 other papers
3 later
2103.09396 (2021-03)
Pros and Cons of GAN Evaluation Measures: New Developments
2105.14230 (2021-05)
Transforming the Latent Space of StyleGAN for Real Face Editing
2412.17622 (2024-12)
Be More Diverse than the Most Diverse: Optimal Mixtures of Generative Models via Mixture-UCB Bandit Algorithms
compute_prdc
brick of this paper's assembly: entry
1 other paper
1 later
2402.10693 (2024-02)
Exploring Precision and Recall to assess the quality and diversity of LLMs

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Devising indicative evaluation metrics for the image generation task remains an open problem. The most widely used metric for measuring the similarity between real and generated images has been the Fréchet Inception Distance (FID) score. Because it does not differentiate the fidelity and diversity aspects of the generated images, recent papers have introduced variants of precision and recall metrics to diagnose those properties separately. In this paper, we show that even the latest version of the precision and recall metrics are not reliable yet. For example, they fail to detect the match between two identical distributions, they are not robust against outliers, and the evaluation hyperparameters are selected arbitrarily. We propose density and coverage metrics that solve the above issues. We analytically and experimentally show that density and coverage provide more interpretable and reliable signals for practitioners than the existing metrics. Code: github.com/clovaai/generative-evaluation-prdc .

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2002.09797")
get_code_for_paper("2002.09797")
have("2002.09797")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2002.09797.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2002.09797.svg)](https://syntology.ai/paper/2002.09797)

Connect an agent — have() is free.