Abstract
Reference-based sketch colorization is a critical task in digital illustration, yet existing methods often suffer from "spatial entanglement," where the geometry of a reference image inadvertently distorts the target sketch. This paper introduces a multi-stage diffusion-based framework that decouples reference information into high-level semantic embeddings and low-level feature representations. By separating these components and employing a modular training strategy, the proposed system achieves state-of-the-art anime-style colorization that faithfully transfers style and texture while preserving the original sketch's structural integrity.
Introduction
In professional animation and digital illustration, coloring sketches based on reference character sheets is a labor-intensive process. While automated AI models have been developed to assist, they frequently struggle with spatial entanglement. This phenomenon occurs when a model, trained on perfectly aligned data, fails to handle real-world references with different poses or backgrounds. The result is often "ghosting"—the appearance of extra limbs or distorted geometry from the reference image appearing in the final output. This research aims to solve this by decoupling what color to use from where it should be placed.
Proposed Methodology
The core of the proposed framework is a modular workflow built upon a Latent Diffusion Model (LDM) backbone. The system utilizes three specialized encoders to handle different aspects of the reference image:
- CLIP Image Encoder: Extracts spatially agnostic semantic embeddings (e.g., color schemes and lighting) to provide a base colorization without structural interference.
- Background Encoder: A dedicated module for transferring fine-grained environmental details.
- Style Encoder: Captures global textures and stroke styles without carrying over the reference's shapes.
To manage these inputs, the model employs Split Cross-Attention, using spatial masks to segment foreground and background processing. This prevents color bleeding between the character and the environment.
Multi-Stage Training
To ensure the modules do not interfere with one another, the authors adopted a sequential training strategy:
- Stage 1: Training the basic colorization backbone using semantic embeddings.
- Stage 2: Freezing the backbone to train the Background Encoder and split-attention modules.
- Stage 3: Optimizing the Style Encoder to refine global textures while keeping other components frozen.
Experimental Results
The researchers trained the model on a massive dataset of over 6 million triples (sketch, color image, and segmentation mask) derived from the Danbooru dataset. Quantitative evaluations demonstrated that the proposed method significantly outperforms existing baselines like ColorizeDiffusion and MangaNinja.
| Metric | Proposed Method | Baseline (Best) |
|---|---|---|
| Aesthetic Score | 5.1859 | < 5.0 |
| FID | 5.6330 | > 6.0 |
| CLIP Similarity | 0.9056 | < 0.88 |
Qualitatively, the model exhibits a total absence of ghosting artifacts. It excels at "cross-content" transfer, such as applying a traditional Japanese art style to a modern anime sketch without distorting the character's form.
Conclusion
By separating reference representations into semantic and feature-based components, this framework effectively resolves the issue of spatial entanglement in sketch colorization. The modular design allows for flexible inference modes, giving artists greater control over the final output. Future work will focus on improving high-precision character details and ensuring identity consistency across animation sequences.
Summary updated