TL;DR
This paper introduces the novel task of language-conditioned automatic image colorization, allowing users to manipulate the color palette of a greyscale image via text captions. By introducing two neural architectures—CONCAT and FiLM—the authors demonstrate that natural language can successfully localize and color specific objects within an image, significantly outperforming language-agnostic baselines.
What Problem Does This Paper Address?
Automatic image colorization (adding color to a greyscale image) is inherently underspecified. While we know grass is green and the sky is blue, foreground objects like a car, a bird's feathers, or a person's shirt could plausibly be almost any color.
Prior interactive colorization methods rely on user clicks or brush strokes to resolve these ambiguities. However, natural language offers a more flexible and intuitive interface. The challenge is that language is a much weaker source of supervision: it lacks pixel-level ground-truth coordinates. To color an image from a caption like "a blue motorcycle parked next to sedans," a model must solve two difficult sub-problems:
- Semantic Localization: Find the motorcycle in the image.
- Contextual Colorization: Apply an appropriate shade of blue to that specific object while keeping the rest of the scene natural.
Methods
The authors build upon a baseline fully-convolutional network (FCNN) that treats colorization as a classification task in the CIE $Lab$ color space. Given the lightness channel ($L$), the network predicts quantized color values for the $a$ (green-to-red) and $b$ (blue-to-yellow) channels.
To condition this network on text, captions are first encoded into a continuous vector representation $h$ using the final hidden state of a bi-directional LSTM. The authors propose and compare two distinct architectures to integrate this language vector into the FCNN:
- CONCAT: A straightforward approach where the language embedding $h$ is replicated and concatenated to the feature map channels at every spatial location across all convolutional blocks. This method is effective but highly parameter-heavy.
- FiLM (Feature-wise Linear Modulation): A more parameter-efficient alternative that applies a feature-wise affine transformation to the output of each convolutional block. The transformation weights (scaling factor $\gamma$ and shift $\beta$) are linearly projected directly from the language embedding $h$.
Datasets
- MSCOCO: The primary dataset used for training and evaluation, consisting of 82,783 training images, each paired with five crowdsourced captions.
- ImageNet: Used to pretrain the baseline FCNN weights. Training from scratch on MSCOCO yielded poor results due to its high visual complexity and relatively small size compared to ImageNet, necessitating a transfer learning approach.
Key Insights and Ideas
- Implicit Visual Attention: One of the most striking findings is that the FiLM layers automatically learn spatial attention without explicit supervision. Visualizing intermediate layer activations reveals that earlier layers (e.g., Block 6) focus heavily on the foreground object mentioned in the caption, while later layers (e.g., Block 8) shift focus entirely to the background.
- The Double-Edged Sword of Prior Knowledge: The models successfully leverage language-color correlations inherent in natural images (e.g., knowing that stop signs are red). However, this creates a strong bias against unnatural descriptions. For instance, forcing a "yellow sky" caption can cause the model to output blue artifacts because skies are overwhelmingly blue in the training data.
Key Results
The models were evaluated using both automated color-space accuracy ($ab$ accuracy) and crowdsourced human evaluations on Amazon Mechanical Turk/Crowdflower.
- Quantitative Accuracy: FiLM achieved the highest performance in $ab$ accuracy, significantly outperforming both the CONCAT model and the language-agnostic FCNN baseline.
- FiLM: Top-1 Accuracy = 23.7%, Top-5 Accuracy = 60.5%
- CONCAT: Top-1 Accuracy = 17.9%, Top-5 Accuracy = 50.3%
- FCNN (Baseline): Top-1 Accuracy = 15.4%, Top-5 Accuracy = 45.8%
- Human Evaluation: In a "plausibility given caption" test, human evaluators preferred the language-conditioned models over the baseline FCNN roughly 80% of the time.
- Caption Manipulation: To verify if the models were truly listening to the text, the authors swapped color words in captions (e.g., changing "blue bus" to "red bus"). Human judges correctly identified the intended image 81.2% of the time for FiLM and 77.4% for CONCAT, proving robust language control.
Limitations and Future Work
- Color Bleeding: The models occasionally suffer from color "bleeding," where color from a large object leaks into adjacent smaller objects or background elements.
- Lightness Constraints: Because the model is strictly bound by the original greyscale image's lightness channel ($L$), it cannot perform drastic luminance shifts, such as turning a black object white.
- Abstract Language: The current framework relies heavily on explicit color words. The authors note that moving toward abstract or emotional language (e.g., "a raging fire" implying reds/oranges) is an exciting future direction, potentially utilizing narrative or dialogue-heavy datasets like COMICS.
Summary updated