Paper · PixelCNN++: Improving the PixelCNN with Discretized Logistic Mixture Likelihood and Other Modifications
Open the sourceThis co-authored paper (Salimans, Karpathy, Chen, Kingma) presents PixelCNN++, a released implementation of PixelCNN with five modifications: a discretized logistic mixture likelihood, conditioning on whole pixels, downsampling, extra short-cut connections, and dropout. The authors argue these changes simplify the model and speed training, and they support each change with ablation experiments and state-of-the-art CIFAR-10 log-likelihood (2.92 bits per sub-pixel).
- The authors replace the 256-way softmax with a discretized mixture of logistics, which produces denser gradients and faster convergence. - They condition on whole pixels and model the color channels with simple linear dependencies, arguing the added complexity of sub-pixel conditioning is unnecessary. - Downsampling with strided convolutions gives multi-resolution processing more cheaply than dilated convolutions, and short-cut connections compensate for the information it loses. - Ablations show the model fails to train without short-cut connections and overfits badly without dropout. - They report that a PixelCNN with a small receptive field can reach competitive likelihood if it has enough capacity, although its samples lack global structure. - They are careful about scope, stating they cannot be sure their gains transfer to the original architecture.
Based on Andrej Karpathy's public content. Not affiliated with or endorsed by Andrej Karpathy.
Supports these rules
Quotes from this video
“With the standard parameterization, the model does not know that a value of 128 is close to a value of 127 or 129, and this relationship first has to be learned before the model can move on to higher level structures.”
“the conditional distributions of the pixels. The output of our network is thus of much lower dimension, yielding much denser gradients of the loss with respect to our parameters.”
“This added complexity seems to be unnecessary as the dependencies between the color channels of a pixel are likely to be relatively simple and do not require a deep network to model.”
“In order to test the effect of our modifications to PixelCNN, we run a number of ablation experiments where for each experiment we remove a specific modification.”
“The downside of using downsampling is that it loses information, but we can compensate for this by introducing additional short-cut connections into the network as explained in the next section.”
“Since our architecture differs from that of van den Oord et al. (2016c) in other ways as well, we cannot say whether this would also apply to their”
“Using dropout allows us to successfully train high capacity models while avoiding overfitting and producing high quality generations (compare figure 8 and figure 3).”