Papers › Assessing Generative Models via Precision and Recall

Assessing Generative Models via Precision and Recall

31 May 2018NeurIPS 2018 12arXiv:1806.00035archive 2025-07-28

Mehdi S. M. Sajjadi, Olivier Bachem, Mario Lucic, Olivier Bousquet, Sylvain Gelly

Recent advances in generative modeling have led to an increased interest in the study of statistical divergences as means of model comparison. Commonly used evaluation methods, such as the Frechet Inception Distance (FID), correlate well with the perceived quality of samples and are sensitive to mode dropping. However, these metrics are unable to distinguish between different failure cases since they only yield one-dimensional scores. We propose a novel definition of precision and recall for distributions which disentangles the divergence into two separate dimensions. The proposed notion is intuitive, retains desirable properties, and naturally leads to an efficient algorithm that can be used to evaluate generative models. We relate this notion to total variation as well as to recent evaluation metrics such as Inception Score and FID. To demonstrate the practical utility of the proposed approach we perform an empirical study on several variants of Generative Adversarial Networks and Variational Autoencoders. In an extensive set of experiments we show that the proposed metric is able to disentangle the quality of generated samples from the coverage of the target distribution.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="1806.00035")

Code

Syntology Ran 4 of 15 code samples harvested from 2 repositories linked to this paper; 11 have no recorded run. Of those that ran: 4 ran · fixture could not drive it.

By repository: official repository: 3 samples from 1 repository, 3 ran; community (archive-listed): 12 samples from 1 repository, 1 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

msmsajjadi/precision-recall-distributions officialmentioned in papermentioned on GitHubtf report
ok1zjf/lbae mentioned on GitHubpytorchMIT report
raahii/evan mentioned on GitHubpytorch report
raahii/video-gans-evaluation mentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

15 samples harvested; 4 ran; 0 honoured the contract we drafted; 11 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

4ran · fixture could not drive it
11unverified

Licence: 0 of the 15 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

compute_prd msmsajjadi/precision-recall-distributions/prd_score.py official repository ran · fixture could not drive it Apache-2.0 (permissive) · b9da61c36d3b8f11 · report
compute_prd_from_embedding msmsajjadi/precision-recall-distributions/prd_score.py official repository ran · fixture could not drive it Apache-2.0 (permissive) · 5d84440e02c3a502 · report
prd_to_max_f_beta_pair msmsajjadi/precision-recall-distributions/prd_score.py official repository ran · fixture could not drive it Apache-2.0 (permissive) · 5adbefd0ebfa3e5e · report
calculate_frechet_distance ok1zjf/lbae/fid.py community (archive-listed) ran · fixture could not drive it MIT (permissive) · 5277c96076ea2fe5 · report
calculate_activation_statistics ok1zjf/lbae/fid.py community (archive-listed) unverified MIT (permissive) · 664d8c6c98c4ce7c · report
corrupt ok1zjf/lbae/datasets.py community (archive-listed) unverified MIT (permissive) · 0bee687e2a3cbee8 · report
get_activations ok1zjf/lbae/fid.py community (archive-listed) unverified MIT (permissive) · 579daa09f4887be8 · report
nearestPDX ok1zjf/lbae/sampler.py community (archive-listed) unverified MIT (permissive) · 5a075ff84473359d · report
norm ok1zjf/lbae/sampler.py community (archive-listed) unverified MIT (permissive) · 13d8e00ecc2023db · report
psnr ok1zjf/lbae/image_utils.py community (archive-listed) unverified MIT (permissive) · 8cdf564a25c20149 · report
run_command ok1zjf/lbae/sys_utils.py community (archive-listed) unverified MIT (permissive) · 1bd4c31f00d84b70 · report
save_image ok1zjf/lbae/image_utils.py community (archive-listed) unverified MIT (permissive) · afc8d137b43810a4 · report
ssim ok1zjf/lbae/image_utils.py community (archive-listed) unverified MIT (permissive) · 239d3d651c2bea69 · report
todeg ok1zjf/lbae/sampler.py community (archive-listed) unverified MIT (permissive) · 0047ef4dfbce17cc · report
tohms ok1zjf/lbae/sys_utils.py community (archive-listed) unverified MIT (permissive) · c232fb314605487f · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections