ColorizeDiffusion v2: Enhancing Reference-based Sketch Colorization Through Separating Utilities

Dingkun Yan, Xinrui Wang, Yusuke Iwasawa, Yutaka Matsuo, Suguru Saito, Jiaxian GuoarXiv 2025 · DOI

Introduction

Reference-based sketch colorization is a critical task in digital illustration, allowing artists to transfer color and style from existing images to new line art. However, real-world application often faces the challenge of "spatial entanglement." Most diffusion models are trained on perfectly aligned triplets (sketch, reference, and ground truth), but in practice, an artist's reference image rarely matches the exact pose or background of their sketch. This distribution shift causes models to hallucinate extra limbs or background artifacts as they attempt to force misaligned features onto the new sketch.

Reference images used for colorization, including a character and a stylistic background (The Great Wave).

ColorizeDiffusion v2 addresses these issues by explicitly separating the processing of style, foreground, and background features. By utilizing a novel split cross-attention mechanism and dedicated encoders, the framework achieves state-of-the-art, artifact-free anime colorization even with highly mismatched references.

Methodology: A "Divide and Conquer" Framework

To provide sharp details without structural hallucinations, the authors propose a modular architecture that separates different "utilities" of the reference image.

Split Cross-Attention

Instead of treating the reference image as a monolithic input, the model uses spatial masks to isolate the foreground (character) from the background. These embeddings are injected into the diffusion backbone separately using region-specific LoRAs. This physical separation prevents the "leakage" of structural elements—such as a reference character's arm—into the sketch's background.

Dedicated Encoders

The system incorporates two specialized modules to handle fine-grained details:

  • Background Encoder: Injects high-detail background features directly into the U-Net's skip connections, allowing for complex environment transfer.
  • Style Encoder: Extracts global texture and stylistic information, applying it via adaptive layer normalization to ensure aesthetic consistency without overriding the sketch's semantics.
The ColorizeDiffusion v2 pipeline, illustrating the progression from basic colorization to style, background, and full enhancement modes.

Training and Preprocessing

The model is trained in stages to prevent "forgetting" sketch line interpretation. Key preprocessing techniques include character-mask merging, which forces the background encoder to learn seamless inpainting, and background bleaching, which prevents noise when using solid-color references.

Experimental Results

Datasets

The model was trained on a curated dataset of over 6 million image triples derived from the Danbooru database. Sketches were synthetically generated using SketchKeras and adversarial adaptation, while masks were produced via a fine-tuned anime-segmentation network.

Performance Metrics

ColorizeDiffusion v2 significantly outperforms existing baselines, including IP-Adapter and AnimeDiffusion, across several key metrics:

  • Aesthetic Score: 5.18 (Highest in class)
  • FID: 5.63 (Next best was 9.64)
  • PSNR: 29.36
  • CLIP Similarity: 0.90

Qualitatively, the model eliminates the "floating heads" and extra limbs common in previous adapter methods. In user studies, participants overwhelmingly preferred ColorizeDiffusion v2 for both overall visual quality and geometric preservation of the original sketch.

Insights and Future Work

A core insight of this research is that the "carrier" (the type of latent representation) dictates the resulting artifacts. High-level CLIP embeddings are structurally safe but blurry, while low-level features are texturally rich but structurally dangerous. By separating these utilities, the model allows artists to choose different inference modes—Vanilla, Style Enhance, Background Enhance, or Full Enhance—depending on their specific workflow needs.

Despite its success, the model occasionally misses tiny details like specific eye colors due to the resolution limits of the CLIP image encoder. Future research will focus on improving identity consistency, integrating text-based prompt editing, and extending the framework to video colorization for animation production.

Summary updated

BibTeX
@misc{yan2025colorizediffusion,
  author = {Dingkun Yan and Xinrui Wang and Yusuke Iwasawa and Yutaka Matsuo and Suguru Saito and Jiaxian Guo},
  title = {{ColorizeDiffusion v2: Enhancing Reference-based Sketch Colorization Through Separating Utilities}},
  year = {2025},
  eprint = {2504.06895},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2504.06895},
}
Figure