[Paper Review] 04.Improved Precision and Recall Metric for Assessing Generative ModelsPermalink
ContentsPermalink
- Abstract
- Introduction
- Precision & Recall
- Improved Precision & Recall using kNN
0. AbstractPermalink
estimate the quality and coverage of the samples produced by generative model is important!
propose an EVALUATION metric, that can..
- separately & reliably measure BOTH of theses aspects
- by forming explicit, non-parametric representations of the manifolds of real & generated data
1. IntroductionPermalink
goal of generative methods : learn the MANIFOLD of training data
( so that we can subsequently generate novel samples, that are INDISTINGUISHABLE from training set )
when modeling complex manifold… 2 separate goals :
- 1) individual samples drawn from the model should be faithful to the examples ( =high quality )
- 2) variations should match that observed in the training set
widely used metric :
- FID(Frechet Inception Distance), IS(Inception Score), KID(Kernel Inception Distance)
- precision & recall
Precision : average sample quality of the sample distribution
Recall : coverage of the sample distribution
2. Precision & RecallPermalink
Precision
- = (REAL의 support에 빠진 FAKE) / (전체 FAKE)
- 직관적 이해 : fraction of generated images that are realistic
Recall
- = (FAKE의 support에 빠진 REAL) / (전체 REAL)
- 직관적 이해 : fraction of training data manifold covered by the generator
3. Improved Precision & Recall using kNNPermalink
key idea : form explicit non-parametric representations of the manifolds of real & generated data
- Xr∼Pr & Xg∼Pg
embed both into high-dimensional feature space using a pre-trained classifier network
- becomes feature vectors by Φr and Φg
- take an equal number of samples from each distribution ( ∣Φr∣=∣Φg∣ )
For each set of feature vectors Φ∈{Φr,Φg}, estimate the corresponding manifold in the feature space
- approximate true manifold using k-NN radi
To determine whether a given sample ϕ is located within this volume….
define a binary function
f(ϕ,Φ)={1, if ∣∣ϕ−ϕ′∣∣2≤∣∣ϕ′−NNk(ϕ′,Φ)∣∣2 for at least one ϕ′∈Φ0, otherwise .
New Metric using kNNPermalink
precision(Φr,Φg)=1∣Φg∣∑ϕg∈Φgf(ϕg,Φr)recall(Φr,Φg)=1∣Φr∣∑ϕr∈Φrf(ϕr,Φg).