Improved Precision and Recall Metric for Assessing Generative Models

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

Introduction

The goal of generative methods is to learn the manifold of the training data so that we can subsequently generate novel samples that are indistinguishable from the training set. While the quality of results from generative adversarial networks (GAN) , variational autoencoders (VAE) , autoregressive models , and likelihood-based models have seen rapid improvement recently , the automatic evaluation of these results continues to be challenging.

When modeling a complex manifold for sampling purposes, two separate goals emerge: individual samples drawn from the model should be faithful to the examples (they should be of “high quality”), and their variation should match that observed in the training set. The most widely used metrics, such as Fréchet Inception Distance (FID) , Inception Score (IS) , and Kernel Inception Distance (KID) , group these two aspects to a single value without a clear tradeoff. We illustrate by examples that this makes diagnosis of model performance difficult. For instance, it is interesting that while recent state-of-the-art generative methods claim to optimize FID, in the end the (uncurated) results are almost always produced using another model that explicitly sacrifices variation, and often FID, in favor of higher quality samples from a truncated subset of the domain .

Meanwhile, insufficient coverage of the underlying manifold continues to be a challenge for GANs. Various improvements to network architectures and training procedures tackle this issue directly . While metrics have been proposed to estimate the degree of variation, these have not seen widespread use as they are subjective , domain specific , or not reliable enough .

Recently, Sajjadi et al. proposed a novel metric that expresses the quality of the generated samples using two separate components: precision and recall. Informally, these correspond to the average sample quality and the coverage of the sample distribution, respectively. We discuss their metric (Section 1.1) and characterize its weaknesses that we later demonstrate experimentally. Our primary contribution is an improved precision and recall metric (Section 2) which provides explicit visibility of the tradeoff between sample quality and variety. Source code of our metric is available at https://github.com/kynkaat/improved-precision-and-recall-metric.

We demonstrate the effectiveness of our metric using two recent generative models (Section 3), StyleGAN and BigGAN . We then use our metric to analyze several variants of StyleGAN (Section 4) to better understand the design decisions that determine result quality, and identify new variants that improve the state-of-the-art. We also perform the first principled analysis of truncation methods (Appendix C) . Finally, we extend our metric to estimate the quality of individual generated samples (Section 5), offering a way to measure the quality of latent space interpolations.

Sajjadi et al. introduce the classic concepts of precision and recall to the study of generative models, motivated by the observation that FID and related density metrics cannot be used for making conclusions about precision and recall: a low FID may indicate high precision (realistic images), high recall (large amount of variation), or anything in between. We share this motivation.

From the classic viewpoint, precision denotes the fraction of generated images that are realistic, and recall measures the fraction of the training data manifold covered by the generator (Figure 1). Both are computed as expectations of binary set membership over a distribution, i.e., by measuring how likely is it that an image drawn from one distribution is classified as falling under the support of the other distribution. In contrast, Sajjadi et al. formulate precision and recall through the relative probability densities of the two distributions. The choice of modeling the relative densities comes from an ambiguity, i.e., should the differences between the two distributions be attributed to the generator covering the real distribution inadequately or is the generator producing samples that are unrealistic. The authors resolve this ambiguity by modeling a continuum of precision/recall values where the extrema correspond to the classic definitions. In addition to raising the question of which value to use, their practical algorithm cannot reliably estimate the extrema due to its reliance on relative densities: it cannot, for instance, correctly interpret situations where large numbers of samples are packed together, e.g., as a result of mode collapse or truncation. The kk-nearest neighbors based two-sample test by Lopez-Paz et. al. suffers from the same problem. Parallel with our work, Simon et al. extend Sajjadi’s formulation to arbitrary probability distributions and provide a practical algorithm that estimates precision and recall by training a post hoc classifier.

We argue that the classic definition of precision and recall is sufficient for disentangling the effects of sample quality and manifold coverage. This can be partially justified by observing that precision and recall correspond to the vertical and horizontal extremal cases in Lin et al.’s theoretically founded analysis of mode collapse regions. In order to approximate these quantities directly, we construct adaptive-resolution finite approximations to the real and generated manifolds that are able to answer binary membership queries: “does sample xx lie in the support of distribution PP?”. Together with existing density-based metrics, such as FID, our precision and recall scores paint a highly informative picture of the distributions produced by generative image models. In particular, they make effects in the “null space” of FID clearly visible.

Improved precision and recall metric using 𝒌𝒌\boldsymbol{k}-nearest neighbors

We will now describe our improved precision and recall metric that does not suffer from the weaknesses listed in Section 1.1. The key idea is to form explicit non-parametric representations of the manifolds of real and generated data, from which precision and recall can be estimated.

Similar to Sajjadi et al. , we draw real and generated samples from XrPrX_{r}\sim P_{r} and XgPgX_{g}\sim P_{g}, respectively, and embed them into a high-dimensional feature space using a pre-trained classifier network. We denote feature vectors of the real and generated images by ϕr\boldsymbol{\phi}_{r} and ϕg\boldsymbol{\phi}_{g}, respectively, and the corresponding sets of feature vectors by Φr\boldsymbol{\Phi}_{r} and Φg\boldsymbol{\Phi}_{g}. We take an equal number of samples from each distribution, i.e., Φr=Φg\lvert\boldsymbol{\Phi}_{r}\rvert=\lvert\boldsymbol{\Phi}_{g}\rvert.

For each set of feature vectors Φ{Φr,Φg}\boldsymbol{\Phi}\in\{\boldsymbol{\Phi}_{r},\boldsymbol{\Phi}_{g}\}, we estimate the corresponding manifold in the feature space as illustrated in Figure 2. We obtain the estimate by calculating pairwise Euclidean distances between all feature vectors in the set and, for each feature vector, forming a hypersphere with radius equal to the distance to its kkth nearest neighbor. Together, these hyperspheres define a volume in the feature space that serves as an estimate of the true manifold. To determine whether a given sample ϕ\boldsymbol{\phi} is located within this volume, we define a binary function

where NNk(ϕ,Φ)\text{NN}_{k}\left(\boldsymbol{\phi}^{\prime},\boldsymbol{\Phi}\right) returns kkth nearest feature vector of ϕ\boldsymbol{\phi}^{\prime} from set Φ\boldsymbol{\Phi}. In essence, f(ϕ,Φr)f(\boldsymbol{\phi},\boldsymbol{\Phi}_{r}) provides a way to determine whether a given image looks realistic, whereas f(ϕ,Φg)f(\boldsymbol{\phi},\boldsymbol{\Phi}_{g}) provides a way to determine whether it could be reproduced by the generator. We can now define our metric as

In Equation (2), precision is quantified by querying for each generated image whether the image is within the estimated manifold of real images. Symmetrically, recall is calculated by querying for each real image whether the image is within estimated manifold of generated images. See Appendix A for pseudocode.

In practice, we compute the feature vector ϕ\boldsymbol{\phi} for a given image by feeding it to a pre-trained VGG-16 classifier and extracting the corresponding activation vector after the second fully connected layer. Brock et al. show that the nearest neighbors in this feature space are meaningful in the sense that they correspond to semantically similar images. Meanwhile, Zhang et al. use the intermediate activations of multiple convolutional layers of VGG-16 to define a perceptual metric, which they show to correlates well with human judgment for image corruptions. We have tested both approaches and found that feature space, used by Brock at al., works considerably better for the purposes of our metric, presumably because it places less emphasis on the exact spatial arrangement — sparsely sampled manifolds rarely include near-exact matches in terms of spatial structure.

Like FID, our metric is weakly affected by the number of samples taken (Figure 3a). Since it is standard practice to quote FIDs with 50k samples, we adopt the same design point for our metric as well. The size of the neighborhood, kk, is a compromise between covering the entire manifold (large values) and overestimating its volume as little as possible (small values). In practice, we have found that higher values of kk increase the precision and recall estimates in a fairly consistent fashion, and lower values of kk decrease them, until they start saturating at 1.0 or 0.0 (Figure 3b). Tests with various datasets and GANs showed that k=3k=3 is a robust choice that avoids saturating the values most of the time. Thus we use k=3k=3 and Φ=50000\lvert\boldsymbol{\Phi}\rvert=50000 in all our experiments unless stated otherwise. Figure 3c further shows that the qualitative behavior of our metric is not limited to VGG-16 – which we use in all tests – as Inception-v3 features lead to very similar results. See Appendix B for results using synthetic data.

Precision and recall of state-of-the-art generative models

In this section, we demonstrate that precision and recall computed using our method correlate well with the perceived quality and variation of generated distributions, and compare our metric with Sajjadi et al.’s method as well as the widely used FID metric . For Sajjadi et al.’s method, we use 20 clusters and report F1/8F_{1/8} and F8F_{8} as proxies for precision and recall, respectively, as recommended by the authors. We examine two state-of-the-art generative models, StyleGAN trained with the FFHQ dataset, and BigGAN trained on ImageNet .

Figure 4 shows the results of various metrics in four StyleGAN setups. These setups exhibit different amounts of truncation and training time, and have been selected to illustrate how the metrics behave with varying output image distributions. Setup A is heavily truncated, and the generated images are of high quality but very similar to each other in terms of color, pose, background, etc. This leads to high precision and low recall, as one would expect. Moving to setup B increases variation, which improves recall, while the image quality and thus precision is somewhat compromised. Setup C is the FID-optimized configuration in . It has even more variation in terms of color schemes and accessories such as hats and sunglasses, further improving recall. However, some of the faces start to become distorted which reduces precision. Finally, setup D preserves variation and recall, but nearly all of the generated images have low quality, indicated by much lower precision as expected.

In contrast, the method of Sajjadi et al. indicates that setups B, C and D are all essentially perfect, and incorrectly assigns setup A the lowest precision. Looking at FID, setups B and D appear almost equally good, illustrating how much weight FID places on variation compared to image quality, also evidenced by the high FID of setup A. Setup C is ranked as clearly the best by FID despite the obvious image artifacts. The ideal tradeoff between quality and variation depends on the intended application, but it is unclear which application might favor setup D where practically all images are broken over setup B that produces high-quality samples at a lower variation. Our metric provides explicit visibility on this tradeoff and allows quantifying the suitability of a given model for a particular application.

Figure 5 applies gradually stronger truncation on precision and recall using a single StyleGAN generator. Our method again works as expected, while the method of Sajjadi et al. does not. We hypothesize that their difficulties are a result of truncation packing a large number of generated images into a small region in the embedding space. This may result in clusters that contain no real images in that region, and ultimately causes the metric to incorrectly report low precision. The tendency to underestimate precision can be alleviated by using fewer clusters, but doing so leads to overestimation of recall. Our metric does not suffer from this problem because the manifolds of real and generated images are estimated separately, and the distributions are never mixed together.

BigGAN

Brock et al. recently presented BigGAN , a high-quality generative network able to synthesize images for ImageNet . ImageNet is a diverse dataset containing 1000 classes with \sim1300 training images for each class. Due to the large amount of variation within and between classes, generative modeling of ImageNet has proven to be a challenging problem . Brock et al. list several ImageNet classes that are particularly easy or difficult for their method. The difficult classes often contain precise global structure or unaligned human faces, or they are underrepresented in the dataset. The easy classes are largely textural, lack exact global structure, and are common in the dataset. Dogs are a noteworthy special case in ImageNet: with almost a hundred different dog breeds listed as separate classes, there is much more training data for dogs than for any other class, making them artificially easy. To a lesser extent, the same applies to cats that occupy \sim10 classes.

Figure 6 illustrates the precision and recall for some of these classes over a range of truncation values. We notice that precision is invariably high for the suspected easy classes, including cats and dogs, and clearly lower for the difficult ones. Brock et al. state that the quality of generated samples increases as more truncation is applied, and the precision as reported by our method is in line with this observation. Recall paints a more detailed picture. It is very low for classes such as “Lemon” or “Broccoli”, implying much of the variation has been missed, but FID is nevertheless quite good for both. Since FID corresponds to a Wasserstein-2 distance in the feature space, low intrinsic variation implies low FID even when much of that variation is missed. Correspondingly, recall is clearly higher for the difficult classes. Based on visual inspection, these classes have a lot of intra-class variation that BigGAN training has successfully modeled. Dogs and cats show recall similar to the difficult classes, and their image quality and thus precision is likely boosted by the additional training data.

Using precision and recall to analyze and improve StyleGAN

Generative models have seen rapid improvements recently, and FID has risen as the de facto standard for determining whether a proposed technique is considered beneficial or not. However, as we have shown in Section 3, relying on FID alone may hide important qualitative differences in the results and it may inadvertently favor a particular tradeoff between precision and recall that is not necessarily aligned with the actual goals. In this section, we use our metric to shed light onto some of the design decisions associated with the model itself. Appendix C performs a similar, principled analysis for truncation methods. We use StyleGAN in all experiments, trained with FFHQ at 1024×10241024\times 1024.

To avoid drawing false conclusions when comparing different training runs, we must properly account for the stochastic nature of the training process. For example, we have observed that FID can often vary by up to ±14%\pm 14\% between consecutive training iterations with StyleGAN. The common approach is to amortize this variation by taking multiple snapshots of the model at regular intervals and selecting the best one for further analysis . With our metric, however, we are faced with the problem of multiobjective optimization : the snapshots represent a wide range of different tradeoffs between precision and recall, as illustrated in Figure 7a. To avoid making assumptions about the desired tradeoff, we identify the Pareto frontier, i.e., the minimal subset of snapshots that is guaranteed to contain the optimal choice for any given tradeoff.

Figure 7b shows the Pareto frontiers for several variants of StyleGAN. The baseline configuration (A) has a dedicated minibatch standard deviation layer that aims to increase variation in the generated images . Using our metric, we can confirm that this is indeed the case: removing the layer shifts the tradeoff considerably in favor of precision over recall (B). We observe that R1R_{1} regularization has a similar effect: reducing the γ\gamma parameter by 100×100\times shifts the balance even further (C). Karras et al. argue that their progressive growing technique improves both quality and variation, and indeed, disabling it reduces both aspects (D). Moreover, we see that randomly translating the inputs of the discriminator by 1616-16\ldots 16 pixels improves precision (E), whereas disabling instance normalization in the AdaIN operation , unexpectedly, improves recall (F).

Figure 7c shows the best FID obtained for each configuration; the corresponding snapshots are highlighted in Figure 7a,b. We see that FID favors configurations with high recall (A, F) over the ones with high precision (B, C), and the same is also true for the individual snapshots. The best configuration in terms of recall (F) yields a new state-of-the-art FID for this dataset. Random translation (E) is an exceptional case: it improves precision at the cost of recall, similar to (B), but also manages to slightly improve FID at the same time. We leave an in-depth study of these effects for future work.

Estimating the quality of individual samples

While our precision metric provides a way to assess the overall quality of a population of generated images, it yields only a binary result for an individual sample and therefore is not suitable for ranking images by their quality. Here, we present an extension of the classification function ff (Equation 1) that provides a continuous estimate of how close a given sample is to the manifold of real images.

We define a realism score RR that increases the closer an image is to the manifold and decreases the further an image is from the manifold. Let ϕg\boldsymbol{\phi}_{g} be a feature vector of a generated image and ϕr\boldsymbol{\phi}_{r} a feature vector of a real image from set Φr\boldsymbol{\Phi}_{r}. Realism score of ϕg\boldsymbol{\phi}_{g} is calculated as

This is a continuous extension of f(ϕg,Φr)f(\boldsymbol{\phi}_{g},\boldsymbol{\Phi}_{r}) with the simple relation that f(ϕg,Φr)=1f(\boldsymbol{\phi}_{g},\boldsymbol{\Phi}_{r})=1 iff R(ϕg,Φr)1R(\boldsymbol{\phi}_{g},\boldsymbol{\Phi}_{r})\geq 1. In other words, when R1R\geq 1, the feature vector ϕg\boldsymbol{\phi}_{g} is inside the (kk-NN induced) hypersphere of at least one ϕr\boldsymbol{\phi}_{r}.

With any finite training set, the kk-NN hyperspheres become larger in regions where the training samples are sparse, i.e., regions with low representation. When measuring the quality of a large population of generated images, these underrepresented regions have little impact as it is unlikely that too many generated samples land there — even though the hyperspheres may be large, they are sparsely located and cover a small volume of space in total. However, when computing the realism score for a single image, a sample that happens to land in such a fringe hypersphere may obtain a wildly inaccurate score. Large errors, even if they are rare, would undermine the usefulness of the metric. We tackle this problem by discarding half of the hyperspheres with the largest radii. In other words, the maximum in Equation 3 is not taken over all ϕrΦr\boldsymbol{\phi}_{r}\in\boldsymbol{\Phi}_{r} but only over those ϕr\boldsymbol{\phi}_{r} whose associated hypersphere is smaller than the median. This pruning yields an overconservative estimate of the real manifold, but it leads to more consistent realism scores. Note that we use this approach only with RR, not with ff.

Figure 8 shows example images from BigGAN with high and low realism. In general, the samples with high realism display a clear object from the given class, whereas the object is often distorted to unrecognizable for the low realism images. Appendix D provides more examples.

An interesting application for the realism score is to evaluate the quality of interpolations. We do this with StyleGAN using linear interpolation in the intermediate latent space W\mathcal{W} as suggested by Karras et al. . Figure 9 shows four example interpolation paths with randomly sampled latent vectors as endpoints. Paths A appears to be located completely inside the real manifold, path D completely outside it, and paths B and C have one endpoint inside the real manifold and one outside it. The realism scores assigned to paths A–D correlate well with the perceived image quality: Images with low scores contain multiple artifacts and can be judged to be outside the real manifold, and vice versa for high-scoring images. See Appendix D for additional examples.

We can use interpolations to investigate the shape of the subset of W\mathcal{W} that produces realistic-looking images. In this experiment, we sampled without truncation 1M latent vectors in W\mathcal{W} for which R1R\geq 1, giving rise to 500k interpolation paths with both endpoints on the real manifold. It would be unrealistic to expect all intermediate images on these paths to also have R1R\geq 1, so we chose to consider an interpolation path where more than 25% of the intermediate images have R<0.9R<0.9 as straying too far from the real manifold. Somewhat surprisingly, we found that only 2.4% of the paths crossed unrealistic parts of W\mathcal{W} under this definition, suggesting that the subset of W\mathcal{W} on the real manifold is highly convex. We see potential in using the realism score for measuring the shape of this region in W\mathcal{W} with greater accuracy, possibly allowing the exclusion of unrealistic images in a more refined manner than with truncation-like methods.

Conclusion

We have demonstrated through several experiments that the separate assessment of precision and recall can reveal interesting insights about generative models and can help to improve them further. We believe that the separate quantification of precision can also be useful in the context of image-to-image translation , where the quality of individual images is of great interest.

Using our metric, we have identified previously unknown training configuration-related effects in Section 4.1, raising the question whether truncation is really necessary if similar tradeoffs can be achieved by modifying the training configuration appropriately. We leave the in-depth study of these effects for future work.

Finally, it has recently emerged that density models can be incapable of assessing whether a given example belongs to the training distribution . By explicitly modeling the real manifold, our metrics may provide an alternative way for estimating this.

Acknowledgements

We thank David Luebke for helpful comments; Janne Hellsten, and Tero Kuosmanen for compute infrastructure.

References

Appendix A Pseudocode and implementation details

Algorithm 1 shows the pseudocode for our method. The main function Precision-Recall evaluates precision and recall for given sets of real and generated images, XrX_{r} and XgX_{g}, by embedding them in a feature space defined by F\mathcal{F} (lines 2–3) and estimating the corresponding manifolds using Manifold-Estimate (lines 4–6). The helper function Manifold-Estimate takes two sets of feature vectors Φa,Φb\boldsymbol{\Phi}_{a},\boldsymbol{\Phi}_{b} as inputs. It forms an estimate for the manifold of Φa\boldsymbol{\Phi}_{a} and counts how many points from Φb\boldsymbol{\Phi}_{b} are located within the manifold. Estimating the manifold requires computing the pairwise distances between all feature vectors ϕΦa\boldsymbol{\phi}\in\boldsymbol{\Phi}_{a} and, for each ϕ\boldsymbol{\phi}, tabulating the distance to its kk-th nearest neighbor (lines 9–11). These distances are then used to determine the fraction of feature vectors ϕΦb\boldsymbol{\phi}\in\boldsymbol{\Phi}_{b} that are located within the manifold (lines 13–17). Note that in the pseudocode feature vectors ϕ\boldsymbol{\phi} are processed one by one on lines 9 and 14 but in a practical implementation they can be processed in mini-batches to improve efficiency.

We use NVIDIA Tesla V100 GPU to run our implementation. A high-quality estimate using 50k images in both XrX_{r} and XgX_{g} takes \sim\,8 minutes to run on a single GPU. For comparison, evaluating FID using the same data takes \sim\,4 minutes and generating 50k images (1024×10241024\times 1024) with StyleGAN using one GPU takes \sim14 minutes. Our implementation can be found at https://github.com/kynkaat/improved-precision-and-recall-metric.

Appendix B Precision and recall with synthetic dataset

In Figure 10 we replicate the mode dropping and invention experiment from , albeit with a 10-class 2D Gaussian mixture model instead of CIFAR-10 images. As in , the real data covers five modes, and we measure precision and recall when 1–10 of the modes are covered by a hypothetical generator that draws samples from the corresponding Gaussian distributions. In Figure 10b we see that our method yields the correct values for precision and recall in all cases: when not all modes are being generated, precision is perfect and recall measures the fraction of modes covered, and when extraneous modes are generated, recall remains perfect while precision measures the fraction of real vs. generated modes. Figure 10c illustrates that the method of Sajjadi et al. performs similarly except for artifacts from kk-means clustering.

Appendix C Analysis of truncation methods

Many generative methods employ some sort of truncation trick to allow trading variation for quality after the training, which is highly desirable when, e.g., showcasing uncurated results. However, quantitative evaluation of these tricks has proven difficult, and they are largely seen as an ad-hoc way to fine-tune the perceived quality for illustrative purposes. Using our metric, we can study these effects in a principled way.

StyleGAN is well suited for comparing different truncation strategies because it has an intermediate latent space W\mathcal{W} in addition to the input latent space Z\mathcal{Z}. We evaluate four primary strategies illustrated in Figure 11a: A) generating random latent vectors in W\mathcal{W} via the mapping network and rejecting ones that are too far from their mean with respect to a fixed threshold, B) approximating the distribution of latent vectors with a multivariate Gaussian and rejecting the ones that correspond to a low probability density, C) clamping low-density latent vectors to the boundary of a higher-density region by finding their closest points on the corresponding hyperellipsoid , and D) interpolating all latent vectors linearly toward the mean . We also consider three secondary strategies: E) interpolating the latent vectors in Z\mathcal{Z} instead of W\mathcal{W}, F) truncating the latent vector distribution in Z\mathcal{Z} along the coordinate axes , and G) replacing a random subset of latent vectors with the mean of the distribution. As suggested by Karras et al. , we also tried applying truncation to only some of the layers, but this did not have a meaningful impact on the results.

Figure 11b shows the precision and recall of each strategy for different amounts of truncation. Strategies that operate in Z\mathcal{Z} yield a clearly inferior tradeoff (E, F), confirming that the sampling density in Z\mathcal{Z} is not a good predictor of image quality. Rejecting latent vectors by density (B) is superior to rejecting them by distance (A), corroborating the Gaussian approximation as a viable proxy for image quality. Clamping outliers (C) is considerably better than rejecting them, because it provides better coverage around the extremes of the distribution. Interpolation (D) appears very competitive with clamping, even though it ought to perform no better than rejection in terms of covering the extremes. The important difference, however, is that it affects all latent vectors equally — unlike the other strategies (A–C) that are only concerned with the outliers. As a result, it effectively increases the average density of the latent vectors, countering the reduced recall by artificially inflating precision. Random replacement (G) takes this to the extreme: removing a random subset of the latent vectors does not reduce the support of the distribution but inserting them back at the highest-density point increases the average quality.Interestingly, random replacement (G) actually leads to a slight increase in recall. This is an artifact of our kk-NN manifold approximation, which becomes increasingly conservative as the density of samples decreases.

Our findings highlight that recall alone is not enough to judge the quality of the distribution — it only measures the extent. To illustrate the difference, we replace recall with FID in Figure 11c. Our other observations remain largely unchanged, but interpolation and random replacement (D, G) become considerably less desirable as we account for the differences in probability density. Clamping (C) becomes a clear winner in this comparison, because it effectively minimizes the Wasserstein-2 distance between the truncated distribution and the original one in W\mathcal{W}. We have inspected the generated images visually and confirmed that clamping appears to generally yield the best tradeoff.

Appendix D Quality of samples and interpolations

Figure 12 shows BigGAN-generated images for which the estimated realism score is very high or very low. Images with high realism score contain a clear object from the given class, whereas low-scoring images generally lack such object or the object is distorted in various ways. High and low quality images for each class were obtained from 1k generated samples.

Figure 13 demonstrates StyleGAN-generated images that have very high or very low realism score. Some variation in backgrounds, accessories, etc. is lost in high quality samples. We hypothesize that the generator could not realistically recreate these features, and thus they are not observed in high quality samples, whereas low quality samples often contain hats, microphones, occlusions, and varying backgrounds that are challenging for the generator to model. High and low quality images were obtained from 1k generated samples.

Figure 14 presents further examples of high and low quality interpolations. High-quality interpolations consist of images with high perceptual quality and coherent background despite the endpoints being potentially quite different from each other. On the contrary, low-quality interpolations are usually significantly distorted and contain incoherent patterns in the image background.