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

DDColor: Towards Photo-Realistic Image Colorization via Dual Decoders

Xiaoyang Kang, Tao Yang, Wenqi Ouyang, Peiran Ren, Lingzhi Li, Xuansong Xie

Abstract

Image colorization is a challenging problem due to multi-modal uncertainty and high ill-posedness. Directly training a deep neural network usually leads to incorrect semantic colors and low color richness. While transformer-based methods can deliver better results, they often rely on manually designed priors, suffer from poor generalization ability, and introduce color bleeding effects. To address these issues, we propose DDColor, an end-to-end method with dual decoders for image colorization. Our approach includes a pixel decoder and a query-based color decoder. The former restores the spatial resolution of the image, while the latter utilizes rich visual features to refine color queries, thus avoiding hand-crafted priors. Our two decoders work together to establish correlations between color and multi-scale semantic representations via cross-attention, significantly alleviating the color bleeding effect. Additionally, a simple yet effective colorfulness loss is introduced to enhance the color richness. Extensive experiments demonstrate that DDColor achieves superior performance to existing state-of-the-art works both quantitatively and qualitatively.

Introduction: The Challenge of Colorization

Image colorization is a classic "ill-posed" problem: a single grayscale value could represent many different colors (e.g., a shirt could be blue, red, or green). This is known as multi-modal uncertainty.

Existing approaches often fall into three traps:

  1. CNN-based methods often lack a global understanding of the scene, leading to "drab" or semantically incorrect colors.
  2. GAN-based methods rely on pre-trained generative priors that struggle with complex scenes containing multiple diverse objects.
  3. Transformer-based methods often suffer from color bleeding—where color from one object spills over into another—and frequently rely on "hand-crafted priors" (manually designed color palettes) that do not generalize well to new types of images.
Comparison of existing transformer-based colorization methods showing issues like color bleeding and incorrect semantics.

Methodology: The Dual-Decoder Architecture

The core innovation of DDColor is its Dual Decoder architecture, which separates the task of restoring spatial detail from the task of deciding which colors go where.

  • The Encoder: Uses a high-performance backbone (like ConvNeXt) to extract multi-scale semantic features from the grayscale input.
  • The Pixel Decoder: This module focuses on the "where." It uses PixelShuffle upsampling to restore the spatial resolution of the image, ensuring sharp edges and clear structures.
  • The Query-based Color Decoder: This is the "what." Instead of using fixed color palettes, it employs a transformer that learns a set of color queries. These queries interact with the image features via cross-attention to "pick" the most appropriate colors based on the scene's context.
  • Multi-Scale Fusion: By pulling features from different layers of the encoder (1/4, 1/8, and 1/16 scales), the color decoder can accurately color both large backgrounds and tiny, intricate objects.
  • Colorfulness Loss: To prevent the model from "playing it safe" with muted, grayish tones, the authors introduced a specific loss term that encourages higher color variance and saturation.

Experimental Results

DDColor was evaluated on standard benchmarks including ImageNet, COCO-Stuff, and ADE20k. The model demonstrated exceptional generalization, handling diverse real-world scenes "zero-shot" without fine-tuning.

Quantitative Performance

DDColor achieves state-of-the-art (SOTA) performance across multiple metrics:

  • FID (Frechet Inception Distance): It achieved the lowest FID on ImageNet (3.92), indicating the highest image quality and realism.
  • Colorfulness (ΔCF): It scored best on measuring how closely the generated colorfulness matches the ground truth.
  • Efficiency: Despite using transformers, DDColor is roughly 96x faster than previous state-of-the-art transformer methods like ColTran.

Qualitative Comparison

Visual comparisons show that DDColor handles complex scenes—like a plate of mixed fruits or a busy street—with much better semantic consistency than competitors. It avoids the "red artifacts" common in GAN methods and the "dullness" of early CNN methods.

Qualitative comparison of DDColor against CNN-based, Transformer-based, and GAN-prior methods. DDColor produces the most realistic and semantically accurate results.

Conclusion

DDColor represents a significant advancement in image colorization by leveraging a dual-decoder strategy. By decoupling spatial restoration from semantic color query learning, it effectively mitigates color bleeding and produces more vivid, context-aware results. While challenges remain regarding transparent objects and user-guided control, DDColor sets a new benchmark for photo-realistic, end-to-end colorization.

The codes and models are publicly available at https://github.com/piddnad/DDColor.

Summary updated

BibTeX
@inproceedings{kang2023ddcolor,
  author = {Xiaoyang Kang and Tao Yang and Wenqi Ouyang and Peiran Ren and Lingzhi Li and Xuansong Xie},
  title = {{DDColor: Towards Photo-Realistic Image Colorization via Dual Decoders}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2023},
  url = {https://openreview.net/forum?id=AqX8o1uIti},
}
Figure