NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Learning Representations for Automatic Colorization

Gustav Larsson, Michael Maire, Gregory Shakhnarovich

Introduction

Colorization is a classic "ill-posed" inverse problem. While certain natural elements like the sky or grass have predictable hues, many objects—such as cars, clothing, or buildings—can realistically appear in a wide variety of colors. For traditional computer vision models, this ambiguity often leads to "mean-seeking" behavior, where the system predicts a desaturated, muddy gray to minimize average error. Larsson et al. address this by proposing a fully automatic system that leverages deep semantic features and treats colorization as a classification task rather than a simple regression problem.

Technical Approach: Beyond Simple Regression

The core of the proposed method is a deep convolutional neural network (CNN) based on the VGG-16 architecture. To overcome the limitations of standard colorization techniques, the authors introduced two primary innovations:

Hypercolumns for Multi-Scale Context

The model utilizes "hypercolumns"—feature vectors that concatenate information from multiple layers of the network. By combining low-level edge and texture data with high-level semantic information about object parts, the model can make color decisions that are both locally consistent and globally plausible.

Histogram Prediction and Multimodality

Rather than predicting a single $a, b$ value in the Lab color space, the network outputs a probability distribution (a histogram) over possible colors for every pixel. This allows the model to represent multimodality—the idea that an object could be one of several distinct colors.

Automatic colorization must handle objects like buses that can plausibly take on multiple distinct colors, a challenge addressed by predicting color histograms rather than single values.

By treating colorization as a classification problem, the model avoids the "graying out" effect. It is incentivized to pick a vibrant, likely color from the distribution rather than an "average" color that may not exist in reality.

Semantics as a Driver for Colorization

A key insight of the paper is that successful colorization requires an understanding of what is in the image. By using a network pre-trained on ImageNet, the model learns to recognize specific textures and objects—such as human skin, foliage, or metallic surfaces—and applies the appropriate color palettes based on these semantic categories.

Furthermore, the authors demonstrate that colorization itself is a powerful self-supervised task. Because color images are abundant and do not require manual labeling, "learning to color" can serve as a proxy for learning general visual representations. The features learned through this process were shown to transfer effectively to other complex tasks, such as semantic segmentation on the PASCAL VOC dataset.

Experimental Results

The system was evaluated on large-scale datasets including ImageNet and the SUN scene database. Quantitatively, the method outperformed previous state-of-the-art techniques across standard metrics like RMSE and PSNR.

Comparison of original grayscale inputs and the colorized outputs produced by the model across diverse categories, demonstrating its ability to handle complex scenes and textures.

Qualitatively, the model produces strikingly realistic results. As shown in the comparison above, the system successfully identifies and colorizes diverse subjects—from the intricate patterns of a butterfly to the dynamic environment of a sports match—with high fidelity. In self-supervision tests, the "Colorizer" reached a mean Intersection over Union (mIU) of 50.2% on PASCAL VOC segmentation, significantly outperforming random initialization and competing self-supervised methods of the time.

Conclusion and Future Directions

While the model represents a significant leap forward in automatic colorization, some challenges remain. "Color bleeding" across object boundaries and occasional texture confusion (e.g., misidentifying a patterned rug as a landscape) are known failure modes. Future work may explore interactive "human-in-the-loop" systems, where users can guide the model's predictions by sampling from its internal probability distributions to explore different plausible artistic outcomes.

Summary updated

BibTeX
@inproceedings{larsson2016learning,
  author = {Gustav Larsson and Michael Maire and Gregory Shakhnarovich},
  title = {{Learning Representations for Automatic Colorization}},
  booktitle = {European Conference on Computer Vision},
  year = {2016},
  doi = {10.1007/978-3-319-46493-0\_35},
}
Figure