PixColor: Pixel Recursive Colorization

Sergio Guadarrama, Ryan Dahl, David Bieber, Jonathon Shlens, Mohammad Norouzi, Kevin Murphy

Abstract

Image colorization is an inherently ambiguous task where a single grayscale input can correspond to multiple plausible color outputs. Traditional methods often produce desaturated results due to averaging effects or lack global coherence. We present PixColor, a two-stage approach that decouples color selection from spatial refinement. By employing a conditional PixelCNN to generate a low-resolution color palette autoregressively, followed by a refinement network for high-resolution synthesis, PixColor produces diverse and globally consistent colorizations. Our method achieves a 33.9% success rate in the Visual Turing Test, significantly outperforming previous state-of-the-art models.

Introduction

Colorization is a "one-to-many" problem. A grayscale photo of a car could realistically be red, blue, or silver. Traditional deep learning approaches often struggle with this ambiguity. When trained with standard loss functions like Mean Squared Error (MSE), models tend to predict the "average" color, resulting in "washed-out" or sepia-toned images.

Furthermore, many existing models predict the color of each pixel independently, leading to a lack of global coherence. Without a mechanism to maintain consistency, a model might color different parts of the same object inconsistently. While Generative Adversarial Networks (GANs) can produce sharp images, they often suffer from "mode collapse," where they stop generating diverse options and settle on a single predictable output.

Methods

PixColor leverages the insight that human vision is more sensitive to luminance (brightness) than chrominance (color). This allows the task to be split into a probabilistic stage for color selection and a deterministic stage for spatial refinement.

Two-Stage Architecture

  1. The Coloring Network (Conditional PixelCNN): Instead of generating a high-resolution color image directly, PixColor uses a PixelCNN to generate a low-resolution (28x28) color map. Because PixelCNNs are autoregressive—predicting pixels one by one conditioned on previous choices—they ensure that colors are chosen consistently across the image. This stage is conditioned on features extracted from the high-resolution grayscale image using a ResNet-101.
  2. The Refinement Network: A standard feedforward CNN takes the low-resolution color "hint" and the original high-resolution grayscale image as inputs. Its role is to refine and upscale the low-resolution color map into a full-resolution (224x224) output, ensuring colors align perfectly with the image's structural details.
Figure 1: PixColor generates diverse, globally coherent colorizations for a single grayscale input, demonstrating its ability to handle the one-to-many nature of the task.

Key Insights

By using a 28x28 grid for the probabilistic model, PixColor captures the "intent" of the colorization efficiently. The autoregressive nature of the PixelCNN ensures that if the model decides a bird is yellow, the entire bird remains yellow, solving the coherence problem found in independent pixel prediction models.

Experimental Results

The model was primarily trained and evaluated on ImageNet (1.2M images), with the conditioning network pre-trained on COCO for image segmentation tasks.

Visual Turing Test (VTT)

Since standard metrics like PSNR do not account for the validity of multiple color choices, the authors utilized human raters. In the VTT, raters were shown a real color photo and a generated one for one second each and asked to identify the original. PixColor achieved a score of 33.9%, meaning humans picked the fake image over the ground truth about a third of the time, outperforming previous benchmarks like LRAC (30.9%) and CIC (29.2%).

Diversity and Statistics

When tested in an "Oracle" setting—where a human picks the best of three generated samples—the VTT score jumped to 38.3%. This suggests the model is capable of near-perfect colorization if selection mechanisms are improved. Additionally, PixColor’s outputs closely match the empirical distribution of colors found in real-world images (Lab color space), avoiding the conservative "gray-heavy" bias of previous methods.

Conclusion and Future Work

PixColor demonstrates that decoupling color selection from spatial refinement is a powerful strategy for image colorization. However, limitations remain. PixelCNNs are inherently sequential and slower than pure feedforward networks. Furthermore, the gap between standard and Oracle scores highlights the need for automated ways to rank or select the most plausible generated samples. Future work may also address occasional "color bleeding" or incorrect semantic assignments in complex scenes.

Summary updated

BibTeX
@inproceedings{guadarrama2017pixcolor,
  author = {Sergio Guadarrama and Ryan Dahl and David Bieber and Jonathon Shlens and Mohammad Norouzi and Kevin Murphy},
  title = {{PixColor: Pixel Recursive Colorization}},
  booktitle = {BMVC},
  year = {2017},
  url = {https://openreview.net/forum?id=xtQHnuAoJBg},
}
Figure