Deep Edge-Aware Interactive Colorization against Color-Bleeding Effects

Eungyeup Kim, Sanghyeon Lee, Jeonghoon Park, Somi Choi, Choonghyun Seo, Jaegul Choo · OpenReview

TL;DR

This paper introduces an interactive, edge-aware "add-on" network designed to eliminate "color-bleeding"—the messy spreading of color across object boundaries—in AI-generated images. By allowing users to provide minimal scribbles on problematic edges, the model refines internal neural features to produce sharp, realistic color transitions with significantly less effort than traditional manual colorization.

What Problem Does This Paper Address?

Deep learning has made automatic image colorization (turning grayscale photos or sketches into color) impressively realistic. However, these models frequently suffer from color-bleeding artifacts. This happens when color "leaks" across the boundaries of adjacent objects, especially when those objects have similar grayscale intensities or low contrast.

While some automatic methods try to sharpen edges, they often fail in complex scenes or require predefined object categories. Existing interactive methods often demand high user effort, requiring people to meticulously paint in colors. The authors identify a gap: we need a way to fix these specific boundary errors with minimal human intervention, regardless of the object type.

Methods

The authors propose a novel Edge-Enhancing Network ($E$) that acts as a modular component for existing colorization backbones (like DeOldify or Zhang et al.’s models).

The Edge-Enhancing Network (E) architecture, showing how it integrates with existing colorization backbones to refine feature maps via residual learning and specific loss functions.
  1. Interactive Refinement: Instead of re-coloring the whole image, the user draws simple scribbles over the "bleeding" edges. The network takes these scribbles and the intermediate feature maps (activations) from the base colorization model's encoder as inputs.
  2. Residual Learning: The network calculates an "edge-corrective representation" and adds it back to the original feature maps via a residual connection. This allows the model to "fix" the boundaries while keeping the rest of the colorization intact.
  3. Pseudo-Scribble Generation: To train the model without needing thousands of real human scribbles, the authors developed a way to automatically generate "pseudo-scribbles." They compare the edges of a ground-truth image with the edges of a "bleeding" initial output to identify where the model failed, then simulate rough user strokes in those areas.
  4. Triple Loss Function:
    • Edge-Enhancing Loss ($\mathcal{L}_{edge}$): Uses Sobel filters to ensure the color gradients in the output match the sharp edges of the ground truth.
  5. Feature-Regularization Loss ($\mathcal{L}_{reg}$): Prevents the enhancement from distorting the overall feature maps too much.
  6. Consistency Loss ($\mathcal{L}_{con}$): Ensures that colors outside the target scribble area remain unchanged.

Key Insights and Ideas

  • The Encoder Advantage: The researchers found that applying edge enhancement to the encoder layers of a neural network is more effective than applying it to the decoder. Refining the "understanding" of the image early on allows subsequent layers to propagate the corrected colors more naturally.
  • Standard Metrics are Blind to Bleeding: Traditional metrics like PSNR (Peak Signal-to-Noise Ratio) can be misleading. A "bleeding" image might have a better PSNR than a sharp image if the sharp image uses a slightly different hue than the ground truth.
  • The CDR Metric: To solve the measurement problem, the authors introduced the Cluster Discrepancy Ratio (CDR). This metric specifically measures how well colors stay within their intended boundaries by looking at super-pixel clusters, providing a much more accurate reflection of "bleeding" than standard pixel-wise comparisons.
  • Robustness to "Messy" Input: By using "width augmentation" during training (simulating scribbles of varying thickness), the model became robust to real-world user behavior, where scribbles are rarely pixel-perfect.

Key Results

Visual results show a dramatic reduction in color leakage, particularly in challenging areas like the edges of clothing, food, or complex background objects. As shown in Figure 1, minimal user scribbles are sufficient to guide the model toward sharp, realistic boundaries.

Visual demonstration of color bleeding artifacts, the user-provided scribbles, and the resulting enhanced images with sharp boundaries.
  • Quantitative Improvement: On the ImageNet dataset, the method improved local PSNR by roughly 1.0 to 2.0 dB and significantly boosted CDR scores across all tested baseline models.
  • Efficiency: A user study with 13 participants showed that users could achieve satisfactory results in just 17.6 seconds on average, requiring only about 3 scribbles per image. This represents a massive reduction in labor compared to manual interactive colorization.

Limitations and Future Work

While the method is highly effective, it is currently interactive, meaning it still requires a human "in the loop" to identify where the bleeding occurs. The authors note that while the effort is minimal, the ultimate goal would be a fully automatic system that can detect and fix its own bleeding artifacts.

Additionally, the performance is somewhat tied to the quality of the base colorization model; if the base model produces a completely nonsensical color, sharpening the edge won't fix the underlying color choice. Future work could involve integrating this edge-awareness directly into the initial training of colorization models rather than as a post-processing step.

Summary updated

BibTeX
@misc{kim2021deep,
  author = {Eungyeup Kim and Sanghyeon Lee and Jeonghoon Park and Somi Choi and Choonghyun Seo and Jaegul Choo},
  title = {{Deep Edge-Aware Interactive Colorization against Color-Bleeding Effects}},
  year = {2021},
  eprint = {2107.01619},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2107.01619},
}
Figure