Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

A Style-Based Generator Architecture for Generative Adversarial Networks

  • Problem Generator latent spaces are hard to compare, and the input latent space is tied to the training data density, which the authors argue entangles its factors of variation.
  • Method The method replaces the input layer with a learned constant, maps the latent code into an intermediate space W whose styles control AdaIN after each convolution, adds per-layer noise, and introduces perceptual path length and linear separability as encoder-free metrics.
  • Results Reached an FID of 4.42 on FFHQ for configuration E, against 5.25 for the improved traditional baseline B.

Why the input latent space limits control

Generators for GANs remain hard to inspect, and the structure of their latent spaces is poorly understood. Latent space interpolations are the usual way to look at a latent space, but they give no quantity for ranking one generator against another. The authors also argue that the input latent space has to follow the density of the training data, so some degree of entanglement there cannot be avoided.

The discriminator and the loss function are left unchanged, so the study isolates a change in how the generator consumes the latent code. Instead of feeding the latent code only through an input layer, the generator maps it into an intermediate space and lets it steer every convolution layer through styles, with noise added per layer. Two metrics, perceptual path length and linear separability, are proposed because earlier disentanglement metrics need an encoder that a GAN lacks.

How styles replace the input layer

A latent code z from the input space Z passes through a non-linear mapping network f that produces w in the intermediate space W. The mapping network has 8 layers, and both spaces are set to 512 dimensions. Learned affine transformations turn w into styles y = (ys, yb), and these styles drive the adaptive instance normalization after each convolution.

The synthesis network does not receive z at its start; it begins from a learned 4×4×512 constant.

At generation time the random inputs are the latent code z and the per-layer noise images, and the learned weights stay fixed.

AdaIN normalizes each feature map by its own mean and standard deviation, then scales and shifts it with the matching components of the style. \[ \mathrm{AdaIN}(x_i, y) = y_{s,i}\,\frac{x_i-\mu(x_i)}{\sigma(x_i)} + y_{b,i} \] Here x_i is one feature map, y_{s,i} and y_{b,i} are its scale and bias taken from the style, and the style has twice as many entries as the layer has feature maps.

Because the normalization removes the incoming channel statistics, each style sets the statistics that the next convolution sees, and the next AdaIN overrides them. The authors use this to explain why the effect of each style stays local to part of the network. Style transfer takes its style statistics from an example image, whereas here the style is computed from w by learned affine maps.

The authors reuse the word style because similar architectures already appear in feedforward style transfer, unsupervised image-to-image translation and domain mixing.

Per-layer noise for stochastic detail

Explicit noise inputs are single-channel images of uncorrelated Gaussian noise, with one image fed to each synthesis layer.

In a traditional generator the only input arrives at the input layer, so the network has to produce spatially varying pseudorandom numbers from earlier activations, which uses capacity and often leaves repeated patterns. Supplying fresh noise to every layer removes the incentive to build stochastic detail out of earlier activations, which the authors use to explain why the noise effect stays localized.

Changing the noise input alters fine stochastic details such as the placement of individual hairs, while the overall composition and high-level aspects stay in place. In the noise ablation, removing the noise gives a featureless painterly look, noise only in coarse layers causes large-scale curling of hair and larger background features, and noise only in fine layers adds finer hair curls, background detail and skin pores.

Style acts on whole feature maps, so pose, lighting and background can be set consistently across the image, while per-pixel noise suits variation that should not be globally consistent.

Ablation of FID across configurations

The FIDs are computed from 50,000 images drawn from the training set, and the lowest distance seen during training is reported. Configuration A is the Progressive GAN setup of Karras et al., and configuration B adds bilinear up/downsampling, longer training and tuned hyperparameters. CelebA-HQ uses WGAN-GP, while FFHQ uses WGAN-GP for A and the non-saturating loss with R1 regularization for B to F.

On FFHQ, FID goes from 5.25 in B to 4.85 in C after adding the mapping network and styles, then to 4.88 in D after removing the input layer, to 4.42 in E after adding noise inputs, and to 4.40 in F with mixing regularization. On CelebA-HQ the same steps run 6.11, 5.34, 5.07 and 5.06, and F rises to 5.17. Mixing regularization therefore helps on FFHQ but not on CelebA-HQ, where F scores 5.17 against 5.06 for E.

The authors describe the improvement of the style-based configuration E over the traditional baseline B as almost 20%.

Removing the traditional input did not hurt, and the synthesis network still produced meaningful results with its input arriving only through the styles. All FIDs in the paper are computed without the truncation trick, which is used only for the illustrative Figure 2 and the video.

Style mixing and localization

Mixing regularization generates a given share of training images from two latent codes, switching from w1 to w2 at a randomly chosen crossover point in the synthesis network. Training this way keeps the network from assuming that neighboring styles are correlated.

Table 2 stress-tests networks E and F by mixing one to four latents at test time, with the crossover points between them randomized. With one latent, E scores 4.42 and F with 90% mixing scores 4.40, while with four latents E reaches 17.41 and F at 90% reaches 9.03. F trained with 100% mixing scores 4.83 with one latent and 8.40 with four, and E trained with 50% mixing reaches 11.61 with four latents.

The authors read this as mixing regularization improving the tolerance of the trained network to mixing at test time.

Figure 3 builds its images from two sources, A and B, by copying a chosen subset of styles from B into images otherwise generated from A.

The FFHQ dataset

The study introduces Flickr-Faces-HQ (FFHQ), a human-face dataset that is released publicly together with code and pre-trained networks. It is presented as higher in quality and wider in variation than existing high-resolution face datasets. The images vary in age, ethnicity, viewpoint, lighting and image background, as the figure caption describes.

Measuring curvature with perceptual path length

Linear interpolation between two latent vectors can produce changes that look non-linear, with features absent at both ends appearing in the middle of the path. The authors measure this by summing a perceptual distance over short linear segments of an interpolation path. The distance is a weighted difference of two VGG16 embeddings, with weights fitted so that the metric agrees with human perceptual similarity judgments.

For Z, endpoints z1 and z2 are drawn from P(z), t is drawn uniformly from (0,1), and the subdivision step ε is 10−4. \[ l_Z = \mathbb{E}\left[\frac{1}{\epsilon^2}\, d\bigl(G(\mathrm{slerp}(z_1,z_2;t)),\; G(\mathrm{slerp}(z_1,z_2;t+\epsilon))\bigr)\right] \] G is the generator, which for style-based networks is g composed with f, and d is the perceptual distance between the two resulting images.

The images are cropped to the face before the distance is taken, and the expectation is estimated from 100,000 samples.

For W the same measure is computed with linear interpolation of f(z1) and f(z2), and the formula is written as follows. \[ l_W = \mathbb{E}\left[\frac{1}{\epsilon^2}\, d\bigl(g(\mathrm{lerp}(f(z_1),f(z_2);t)),\; g(\mathrm{lerp}(f(z_1),f(z_2);t+\epsilon))\bigr)\right] \] Interpolation uses lerp in W because vectors in W are not normalized, while spherical interpolation suits the normalized input space Z.

Restricting the measure to endpoints, with t in {0, 1}, is expected to give a smaller value for W, since W may contain regions off the input manifold that the generator reconstructs badly.

Measuring linear separability

Auxiliary classifiers label generated images for 40 binary attributes, and their architecture matches the discriminator. The classifiers are trained on CelebA-HQ, which keeps the 40 attributes available in CelebA. For each attribute, 200,000 images are generated and classified, the least confident half is removed, and 100,000 labeled latent vectors remain.

A linear SVM is fitted per attribute, on z for the traditional generator and on w for style-based generators, and the points are classified by its hyperplane. The conditional entropy H(Y|X) measures how much information is still needed to find the true class once the side of the hyperplane is known. \[ \text{separability} = \exp\Bigl(\sum_i H(Y_i \mid X_i)\Bigr) \] Here i runs over the 40 attributes, and the exponentiation puts the score on a linear scale; lower values mean better separability.

Path length and separability results

Table 3 gives full-path, endpoint and separability values for traditional and style-based generators on FFHQ. The traditional generator measures 412.0 full-path, 415.3 endpoint and 10.78 separability in Z. Configuration E in W measures 200.5 full-path, 160.6 endpoint and 3.54 separability. Adding 50% mixing to E gives 231.5, 182.1 and 3.51, while F with 90% mixing gives 234.0, 195.9 and 3.79.

The authors note that the full-path measure is slightly biased in favor of Z.

For the traditional generator the endpoint and full-path values are close, which matches the absence of a visible difference between the two sampling schemes in Z. Table 4 varies the depth of the mapping network for both generator types on FFHQ. With an 8-layer mapping network, the traditional generator measures 896.2 full-path and 902.0 endpoint in Z, with separability 170.29, while W gives 324.5, 212.2 and 6.52 with the same FID of 4.87.

Adding a mapping network in front of a traditional generator severely lowers separability in Z but improves it in W, and FID improves as well.

For style-based networks, separability is 9.88 for depth 0 in Z, 6.81 for depth 1 in W, 6.25 for depth 2 in W and 3.79 for depth 8 in W. FIDs for the style-based depths are 5.06, 4.60, 4.43 and 4.40 in the same order. The authors conclude that a deeper mapping network generally improves path length, separability and FID together. Across the tables, the W measurements have lower separability values than the Z measurements.

Limitations

The authors read this as FID gains coming at the cost of a more entangled representation, and they leave open whether the trade-off can be avoided.

Mixing regularization appears to distort W somewhat, as separability rises from 3.54 for E to 3.79 for F. The authors hypothesize that mixing makes it harder for W to encode factors of variation that span multiple scales. At one latent, 100% mixing gives 4.83 against 4.42 for E, so the test-time gain with several latents is not free at every setting.

The separability score uses only the 40 CelebA attributes, and its classifiers are trained on CelebA-HQ. On CelebA-HQ, configuration F does not improve on E in FID. The truncation trick is not used for any reported FID, so the illustrative images do not change the quantitative comparisons.

The authors suspect that the BEDROOM results are approaching the limits of the training data, since many images show compression artifacts inherited from it.

Paper info

Authors
Karras, Tero, Laine, Samuli, Aila, Timo
Venue
arXiv · Preprint
First published
2018-12-12
Added
2026-10-20
Updated
2019-3-29
Version
v3
arXiv
1812.04948
Original paper terms
arXiv non-exclusive 1.0
What we show
Paper info and commentary

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Quote from the paper

Karras, Tero, Laine, Samuli, Aila, Timo (2018). A Style-Based Generator Architecture for Generative Adversarial Networks. arXiv:1812.04948v3. https://arxiv.org/abs/1812.04948v3

BibTeX
@misc{tero2018style,
  title = {{A Style-Based Generator Architecture for Generative Adversarial Networks}},
  author = {Karras, Tero and Laine, Samuli and Aila, Timo},
  year = {2018},
  eprint = {1812.04948},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1812.04948v3}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up