Papers › Improved Precision and Recall Metric for Assessing Generative Models

Improved Precision and Recall Metric for Assessing Generative Models

15 Apr 2019NeurIPS 2019 12arXiv:1904.06991archive 2025-07-28

Tuomas Kynkäänniemi, Tero Karras, Samuli Laine, Jaakko Lehtinen, Timo Aila

The ability to automatically estimate the quality and coverage of the samples produced by a generative model is a vital requirement for driving algorithm research. We present an evaluation metric that can separately and reliably measure both of these aspects in image generation tasks by forming explicit, non-parametric representations of the manifolds of real and generated data. We demonstrate the effectiveness of our metric in StyleGAN and BigGAN by providing several illustrative examples where existing metrics yield uninformative or contradictory results. Furthermore, we analyze multiple design variants of StyleGAN to better understand the relationships between the model architecture, training methods, and the properties of the resulting sample distribution. In the process, we identify new variants that improve the state-of-the-art. We also perform the first principled analysis of truncation methods and identify an improved method. Finally, we extend our metric to estimate the perceptual quality of individual samples, and use this to study latent space interpolations.

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="1904.06991")

Code

Syntology Ran 28 of 42 code samples harvested from 9 repositories linked to this paper; 14 have no recorded run. Of those that ran: 5 ran · honoured contract; 1 ran · violated contract; 8 ran · our draft was wrong; 2 ran · fixture could not drive it; 12 ran with no contract checked.

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

kynkaat/improved-precision-and-recall-metric officialmentioned in papermentioned on GitHubtf report
AlexVerine/PrecisionRecallGan mentioned on GitHubpytorch report
marcojira/fld mentioned on GitHubpytorch report
marcojira/fls mentioned on GitHubpytorch report
psanch21/imp_bigan mentioned on GitHubpytorch report
thomaskerdreux/pdm_sar_insar_generation mentioned on GitHubpytorch report
toshas/torch-fidelity 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

42 samples harvested; 28 ran; 5 honoured the contract we drafted; 14 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.

5ran · honoured contract
1ran · violated contract
8ran · our draft was wrong
2ran · fixture could not drive it
12ran
14unverified

Licence: 25 of the 42 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 9 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.

ManifoldEstimator kynkaat/improved-precision-and-recall-metric/precision_recall.py official repository ran no licence file found · pointer only · 5116b2e12b5213dd · report
DistanceBlock kynkaat/improved-precision-and-recall-metric/precision_recall.py official repository unverified no licence file found · pointer only · 24bf8c4eb19aecea · report
batch_pairwise_distances kynkaat/improved-precision-and-recall-metric/precision_recall.py official repository unverified no licence file found · pointer only · 5339fe677f2a8aa3 · report
knn_precision_recall_features kynkaat/improved-precision-and-recall-metric/precision_recall.py official repository unverified no licence file found · pointer only · cb6d8f1a0fd320be · report
DistanceBlock psanch21/imp_bigan/utils/precision_recall/precision_recall.py community (archive-listed) ran MIT (permissive) · 31d95e8ba2daecb1 · report
FileNames AlexVerine/PrecisionRecallGan/precision_recall_kyn_utils.py community (archive-listed) ran no licence file found · pointer only · 063f56b6465178ad · report
IPR AlexVerine/PrecisionRecallGan/precision_recall_kyn_utils.py community (archive-listed) ran no licence file found · pointer only · f1bd04eed1f7e173 · report
IPR youngjung/improved-precision-and-recall-metric-pytorch/improved_precision_recall.py community (archive-listed) ran MIT (permissive) · 3a19d7da570f0451 · report
ImageDataset blandocs/improved-precision-and-recall-metric-pytorch/functions.py community (archive-listed) ran no licence file found · pointer only · 64368fff5c6334de · report
ImageFolder AlexVerine/PrecisionRecallGan/precision_recall_kyn_utils.py community (archive-listed) ran no licence file found · pointer only · c10080ea2e34a27c · report
ImageFolder youngjung/improved-precision-and-recall-metric-pytorch/improved_precision_recall.py community (archive-listed) ran MIT (permissive) · 3cf0aadecce9d196 · report
ManifoldEstimator psanch21/imp_bigan/utils/precision_recall/precision_recall.py community (archive-listed) ran MIT (permissive) · 323cbfbab4a149aa · report
PrecisionRecall marcojira/fld/fld/metrics/PrecisionRecall.py community (archive-listed) ran no licence file found · pointer only · 8b8e982a58d7c4bd · report
batch_pairwise_distances psanch21/imp_bigan/utils/precision_recall/precision_recall.py community (archive-listed) ran · honoured contract fingerprinted MIT (permissive) · 14c485bafef2920e · report
batch_pairwise_distances thomaskerdreux/pdm_sar_insar_generation/utils/utils_precision_and_recall.py community (archive-listed) ran · honoured contract fingerprinted MIT (permissive) · 8e2d8c2ab95b9ced · report
calc_cdist_full toshas/torch-fidelity/torch_fidelity/metric_prc.py community (archive-listed) ran · our draft was wrong fingerprinted licence not identified · pointer only · 0920b80eb6e4e57f · report
calc_cdist_part toshas/torch-fidelity/torch_fidelity/metric_prc.py community (archive-listed) ran · our draft was wrong fingerprinted licence not identified · pointer only · 7d555d449583cad9 · report
calculate_precision_recall_part toshas/torch-fidelity/torch_fidelity/metric_prc.py community (archive-listed) ran · our draft was wrong fingerprinted licence not identified · pointer only · fe34b19b6900c3ca · report
compute_metric AlexVerine/PrecisionRecallGan/precision_recall_kyn_utils.py community (archive-listed) ran · our draft was wrong no licence file found · pointer only · 88c7b603b76960ad · report
compute_pairwise_distances AlexVerine/PrecisionRecallGan/precision_recall_kyn_utils.py community (archive-listed) ran · honoured contract fingerprinted no licence file found · pointer only · 462603bdd8ffe544 · report
compute_pairwise_distances youngjung/improved-precision-and-recall-metric-pytorch/improved_precision_recall.py community (archive-listed) ran · honoured contract fingerprinted MIT (permissive) · af985ecf236605b0 · report
distances2radii AlexVerine/PrecisionRecallGan/precision_recall_kyn_utils.py community (archive-listed) ran · fixture could not drive it fingerprinted no licence file found · pointer only · 321ebed484cb3298 · report
feature_extractor blandocs/improved-precision-and-recall-metric-pytorch/functions.py community (archive-listed) ran no licence file found · pointer only · 5bee49623aae7bf9 · report
get_custom_loader youngjung/improved-precision-and-recall-metric-pytorch/improved_precision_recall.py community (archive-listed) ran · our draft was wrong MIT (permissive) · d4d53047a22471be · report
get_features thomaskerdreux/pdm_sar_insar_generation/utils/utils_precision_and_recall.py community (archive-listed) ran · honoured contract MIT (permissive) · 6c9ddbe660f0c2da · report
get_kth_value AlexVerine/PrecisionRecallGan/precision_recall_kyn_utils.py community (archive-listed) ran · fixture could not drive it no licence file found · pointer only · bcc716018b80b027 · report
get_kwarg toshas/torch-fidelity/torch_fidelity/metric_prc.py community (archive-listed) ran · violated contract licence not identified · pointer only · e0cea3ed105c7a3d · report
get_rand manicman1999/precision-recall-keras/precision-recall.py community (archive-listed) ran · our draft was wrong fingerprinted MIT (permissive) · 739a22fef98ba093 · report
knn_precision_recall_features thomaskerdreux/pdm_sar_insar_generation/utils/utils_precision_and_recall.py community (archive-listed) ran · our draft was wrong MIT (permissive) · b24b104ab2fc127d · report
precision_and_recall blandocs/improved-precision-and-recall-metric-pytorch/functions.py community (archive-listed) ran no licence file found · pointer only · 8514f2c85dc29786 · report
realism AlexVerine/PrecisionRecallGan/precision_recall_kyn_utils.py community (archive-listed) ran · our draft was wrong no licence file found · pointer only · 07bb109dd6cac3c5 · report
ManifoldEstimator thomaskerdreux/pdm_sar_insar_generation/utils/utils_precision_and_recall.py community (archive-listed) unverified MIT (permissive) · d6d787dc36eccdbb · report
Metric marcojira/fld/fld/metrics/PrecisionRecall.py community (archive-listed) unverified no licence file found · pointer only · 5636e68117082a03 · report
calculate_precision_recall_full toshas/torch-fidelity/torch_fidelity/metric_prc.py community (archive-listed) unverified licence not identified · pointer only · fd7ffba6bfa9140c · report
compute_metric youngjung/improved-precision-and-recall-metric-pytorch/improved_precision_recall.py community (archive-listed) unverified MIT (permissive) · 9f1f8858820c945f · report
compute_precision_and_recall thomaskerdreux/pdm_sar_insar_generation/utils/utils_precision_and_recall.py community (archive-listed) unverified MIT (permissive) · d4b397f131e3cb0d · report
get_custom_loader AlexVerine/PrecisionRecallGan/precision_recall_kyn_utils.py community (archive-listed) unverified no licence file found · pointer only · 43a458427eb4927c · report
get_distance manicman1999/precision-recall-keras/precision-recall.py community (archive-listed) unverified MIT (permissive) · 8985988572ef4703 · report
import_images manicman1999/precision-recall-keras/precision-recall.py community (archive-listed) unverified MIT (permissive) · 934af065bd096a31 · report
knn_precision_recall_features psanch21/imp_bigan/utils/precision_recall/precision_recall.py community (archive-listed) unverified MIT (permissive) · b3cb1184b1155ae5 · report
prc_features_to_metric toshas/torch-fidelity/torch_fidelity/metric_prc.py community (archive-listed) unverified licence not identified · pointer only · 034a66af56d59bf1 · report
vprint toshas/torch-fidelity/torch_fidelity/metric_prc.py community (archive-listed) unverified licence not identified · pointer only · e51e3d0dd80555f0 · report

Tasks

Image Generation

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Image Generation FFHQ StyleGAN (no instance norm) FID 4.16 #3 of 12 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

1x1 ConvolutionAdamAdaptive Instance NormalizationBatch NormalizationBigGANConditional Batch NormalizationConvolutionDense ConnectionsEarly StoppingFeedforward NetworkGAN Hinge LossLinear LayerNon-Local BlockNon-Local OperationOff-Diagonal Orthogonal RegularizationProjection DiscriminatorR1 RegularizationReLUResidual BlockResidual ConnectionSAGANSoftmaxSpectral NormalizationStyleGANTTURTruncation Trick

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