Abstract
Image colorization is an inherently ambiguous task due to the one-to-many mapping from grayscale to color. We present the Multi-Modal Colorization (MMC) framework, which leverages natural language descriptions to guide the colorization process. By decomposing the task into instance-level colorization and global scene fusion, MMC achieves superior color consistency and realism. Our approach utilizes a multi-task learning objective that combines color prediction with object classification, ensuring semantic grounding. Experimental results on the MS-COCO-QA dataset demonstrate that MMC outperforms state-of-the-art methods in both quantitative metrics and human perceptual studies.
Introduction
Image colorization is a classic "ill-posed" problem. Grayscale pixels lack inherent information to distinguish between various plausible colorings—for instance, a car in a black-and-white photo could have been red, blue, or green. Traditional deep learning models often struggle with this ambiguity, resulting in "color bleeding" across object boundaries or "washed-out" images where the model defaults to a desaturated average to minimize error.
The MMC framework addresses this by incorporating human-like context through textual descriptions (e.g., "a red ball on a green field"). By providing a semantic "cheat sheet," the model drastically reduces the search space and ensures the output aligns with the intended reality.
Methodology
The MMC architecture employs a hierarchical, multi-modal pipeline divided into two primary stages: Instance Object Colorization and Scene Fusion.
Instance Object Colorization (IOC) Module
The IOC module focuses on individual objects within the scene. First, Mask R-CNN identifies and masks specific objects. Simultaneously, textual descriptions of these objects are encoded into vectors using a pre-trained BERT model.
As shown in the architecture diagram above, the system utilizes a multi-task learning approach. The IOC module, built on a U-Net-like structure, simultaneously predicts color channels ('ab' in the CIE Lab space) and classifies the object. This dual objective forces the network to learn strong associations between an object's identity and its typical color palette.
Fusion and Loss Functions
Once individual objects are colorized, they are re-integrated into their original spatial positions. A second Fusion Module processes this partial colorization alongside a global scene description to fill in background elements (like sky or grass) and ensure seamless transitions. To prevent muted results, the authors introduce a Colorfulness Loss based on Kullback–Leibler (KL) divergence, which encourages the generated image's color histogram to match the vibrancy of the ground truth.
Experimental Results
The model was trained and evaluated on the MS-COCO-QA dataset, comprising over 42,000 image-text pairs.
Quantitative and Qualitative Performance
MMC significantly outperformed existing state-of-the-art (SOTA) methods across several key metrics:
- LPIPS: 0.120 (lower is better, indicating higher perceptual similarity).
- PSNR: 28.214 dB.
- SSIM: 0.938.
Qualitatively, the results are highly convincing. In a human perceptual study, viewers could only distinguish colorized images from real ones 53.41% of the time—nearly equivalent to random guessing. Furthermore, the text-conditioned nature of the model allows for "re-colorization," where users can modify the output simply by updating the text prompt (e.g., changing "green motorcycle" to "blue motorcycle").
Conclusion
By treating objects as individual instances and using text as a powerful semantic prior, the MMC framework effectively resolves the mathematical ambiguity of grayscale-to-color mapping. While the model's performance is currently dependent on the quality and detail of input descriptions, it represents a significant step toward more controllable and realistic automated image colorization.
Summary updated