Introduction: The Autoregressive Speed Tax
Autoregressive models like PixelCNN are considered the gold standard for density estimation, excelling at capturing the complex, high-dimensional distributions of natural images. However, this impressive capability comes with a massive "speed tax." Because these models predict each pixel sequentially based on all previously generated pixels (typically in raster order), synthesizing an image requires $N$ sequential network evaluations for $N$ pixels.
For a modest $256 \times 256$ image, this translates to over 65,000 sequential steps. While the training phase can be efficiently parallelized, inference remains agonizingly slow. This paper tackles the challenge of maintaining the high-quality synthesis of autoregressive models while accelerating the generation process to make it practical for real-world, high-resolution applications. The authors introduce a parallelized, multiscale version of the PixelCNN that slashes image generation time from linear $O(N)$ to logarithmic $O(\log N)$ relative to the number of pixels.
Methods: Multiscale Group Structure
The core innovation of this work is the introduction of a multiscale group structure. Instead of generating pixels one by one in a strict sequence, the model generates them in a coarse-to-fine hierarchy.
The generation process relies on several key mechanisms:
- Pixel Grouping: The image is conceptually tiled into $2 \times 2$ blocks. The four corners of these blocks form four distinct groups (upper-left, upper-right, lower-left, lower-right).
- Conditional Independence: The model assumes that pixels within a specific group are conditionally independent given the previously generated groups and a lower-resolution version of the image. This crucial assumption allows all pixels in a single group to be generated simultaneously in one network pass.
- Upscaling Networks: To move from coarse to fine resolutions, the authors propose two types of upscaling architectures:
- Type-A: A deep ResNet that directly maps a low-resolution image to a higher-resolution group.
- Type-B: A more sophisticated architecture that uses a ResNet to extract features, which are then fed into a "shallow" PixelCNN to capture finer local dependencies.
- Logarithmic Complexity: By doubling the resolution at each step, the model only requires a constant number of passes per scale. This structural change results in $O(\log N)$ total steps to produce a complete image, drastically reducing inference time.
Key Insights
The "aha moment" of this architecture is the realization that while neighboring pixels are highly correlated, they can be treated as independent if provided with enough global context (i.e., the low-resolution "sketch"). By using a sub-sampling pyramid, the model captures global structure at low resolutions and fills in local textures at high resolutions. This mimics how humans often draw—sketching the broad outline before detailing the finer elements.
Naturally, there is a trade-off between parallelism and expressivity. By "cutting" some dependencies to allow for parallel generation, the model becomes slightly less expressive than a full, sequentially evaluated PixelCNN. However, the authors demonstrate that this degradation is minimal compared to the massive gains in speed.
Datasets and Key Results
The multiscale model was evaluated across a diverse range of challenging tasks, including class-conditional image generation on ImageNet (1,000 classes), text-to-image synthesis on CUB and MPII Human Pose, image generation from segmentation masks on MS-COCO, and action-conditional video generation on the Google Robot Pushing dataset.
The results highlight several major breakthroughs:
- Massive Speedups: On a $32 \times 32$ ImageNet task, the multiscale model was 100x faster than the standard PixelCNN. For video generation ($64 \times 64$), the speedup reached over 5000x (0.38 seconds vs. 1929 seconds per frame).
- High-Resolution Synthesis: The newfound efficiency allowed the authors to generate $512 \times 512$ images, a feat previously considered impractical for standard autoregressive models.
- Competitive Quality: Quantitatively, the Negative Log-Likelihood (NLL) scores remained very close to the state-of-the-art PixelCNN and were significantly better than non-autoregressive models like Real NVP or ConvDRAW.
- Video Coherence: In the robot pushing task, the model successfully generalized to novel objects, producing sharp future frames by conditioning on previous high-resolution frames.
Limitations and Future Work
Despite the impressive speedups, the multiscale model still slightly underperforms the full sequential PixelCNN in terms of pure density estimation (likelihood), reflecting the cost of the independence assumptions. Additionally, the authors noted a color palette sensitivity: the low-resolution base sample strongly dictates the color palette of the final high-res image. If the base sample is slightly "off," the upscaling networks cannot easily correct it.
In video tasks, the models showed some signs of overfitting to specific camera angles and robot arm configurations present in the training set. For future work, the authors suggest that increasing model capacity (e.g., adding more layers or parameters) without sacrificing the $O(\log N)$ structure is a promising path to closing the remaining quality gap with fully sequential models.
Summary updated