What is: Path Length Regularization?
Source | Analyzing and Improving the Image Quality of StyleGAN |
Year | 2000 |
Data Source | CC BY-SA - https://paperswithcode.com |
Path Length Regularization is a type of regularization for generative adversarial networks that encourages good conditioning in the mapping from latent codes to images. The idea is to encourage that a fixed-size step in the latent space results in a non-zero, fixed-magnitude change in the image.
We can measure the deviation from this ideal empirically by stepping into random directions in the image space and observing the corresponding gradients. These gradients should have close to an equal length regardless of or the image-space direction, indicating that the mapping from the latent space to image space is well-conditioned.
At a single the local metric scaling properties of the generator mapping are captured by the Jacobian matrix . Motivated by the desire to preserve the expected lengths of vectors regardless of the direction, we formulate the regularizer as:
where are random images with normally distributed pixel intensities, and , where are normally distributed.
To avoid explicit computation of the Jacobian matrix, we use the identity , which is efficiently computable using standard backpropagation. The constant is set dynamically during optimization as the long-running exponential moving average of the lengths , allowing the optimization to find a suitable global scale by itself.
The authors note that they find that path length regularization leads to more reliable and consistently behaving models, making architecture exploration easier. They also observe that the smoother generator is significantly easier to invert.