TL;DR
DDColor is a novel end-to-end framework that achieves state-of-the-art image colorization by employing a dual-decoder architecture. By combining a spatial pixel decoder with a query-based color decoder, the model produces vivid, semantically consistent results while significantly reducing the "color bleeding" artifacts common in previous transformer-based approaches.
What Problem Does This Paper Address?
Image colorization is a classic "ill-posed" problem: a single grayscale value could represent many plausible colors (e.g., a shirt could be blue, red, or green). Early deep learning attempts using CNNs often produced dull, unsaturated, or semantically incorrect colors because they lacked a global understanding of the scene.
Recent Transformer-based methods improved results but introduced new headaches. They often suffer from color bleeding—where color spills across object boundaries—and frequently rely on hand-crafted priors (like pre-calculated color distributions from specific datasets). These priors make the models difficult to generalize to new types of images. DDColor aims to provide a prior-free, end-to-end solution that produces photo-realistic and vivid colors.
Methods
The core innovation of DDColor is its Dual Decoder architecture, which splits the task of restoring an image into two specialized paths:
- Backbone (Encoder): The authors use ConvNeXt to extract a hierarchy of semantic features from the grayscale input.
- Pixel Decoder: This module focuses on spatial resolution. It uses a series of upsampling layers (specifically PixelShuffle) and shortcut connections from the encoder to restore the image's fine-grained structural details.
- Color Decoder: This is a query-based transformer. Instead of relying on manual priors, it learns a set of "color queries." These queries interact with multi-scale visual features from the pixel decoder via cross-attention. This allows the model to learn semantic-aware color representations (e.g., "this shape is a leaf, so it should be green") at various scales.
- Fusion Module: Finally, the outputs of both decoders are combined via a simple dot product and a 1x1 convolution to produce the final chrominance (AB) channels.
To further boost the "pop" of the images, the authors introduce a Colorfulness Loss. This loss encourages the model to generate a wider, more vivid distribution of colors, preventing the "washed-out" look common in models trained solely on standard distance metrics.
Datasets
The researchers evaluated DDColor on three major benchmarks:
- ImageNet: The primary training and evaluation set (1.3M images).
- COCO-Stuff: Used to test the model's generalization ability on complex natural scenes without fine-tuning.
- ADE20k: A scene-centric dataset used for further zero-shot generalization testing.
Key Insights and Ideas
- Multi-Scale is the Antidote to Bleeding: The authors found that color bleeding often happens when transformers only look at single-scale feature maps. By feeding the color decoder features from three different scales (1/4, 1/8, and 1/16 resolution), the model better identifies semantic boundaries.
- Queries over Priors: By using learnable queries that adapt to the image features, the model avoids the rigidity of hand-crafted color histograms. This makes the system more robust across different datasets.
- Efficiency Matters: Despite using transformers, the end-to-end nature of DDColor makes it significantly faster than iterative or multi-stage transformer models like ColTran, achieving up to 96x speedup in inference.
Key Results
DDColor achieves state-of-the-art performance across several metrics:
- Quantitative: It reached the lowest FID (Frechet Inception Distance) on ImageNet, indicating its generated images are distributionally closest to real photos. It also achieved the lowest $\Delta$CF, meaning its colorfulness levels most closely match ground truth images.
- Qualitative: As seen in Figure 3, DDColor avoids the red artifacts seen in GAN-based methods (like BigColor) and the unsaturated tones of CNN methods (like DeOldify).
- User Preference: In a subjective study, human observers preferred DDColor's results over other leading methods by a significant margin.
Limitations and Future Work
While DDColor excels at natural scenes, the authors note two main limitations:
- Translucent Objects: The model still struggles with transparent or translucent materials (like glassware), which may require additional semantic supervision to master.
- Lack of User Control: The current model is fully automatic. The authors suggest that future iterations could incorporate user inputs, such as text prompts or "color graffiti," to allow for creative guidance over the final output.
Summary updated