Colorization by Patch-Based Local Low-Rank Matrix Completion

Quanming Yao, James T. Kwok

Abstract

Image colorization aims to restore full color to monochrome images using sparse user-provided color hints. While recent state-of-the-art methods treat this as a global matrix completion problem, they often struggle with natural images that lack global structural repetition. This paper proposes Patch-based Local Low-Rank colorization (PaLLR), which applies the low-rank assumption to groups of similar image patches. By adopting an $\ell_2$ loss and an accelerated optimization framework, PaLLR achieves higher quality colorization on natural images with significantly reduced computational overhead.

Introduction

Colorization is a challenging task that involves predicting chrominance channels from a single luminance channel and a small set of colored pixels. Traditional methods often rely on "local color consistency," assuming that neighboring pixels with similar intensities should share similar colors. However, this assumption frequently fails in regions with complex textures.

Recent advancements have modeled colorization as a matrix completion problem using Robust Principal Component Analysis (RPCA). These methods typically assume the entire image is a low-rank matrix. While this holds for images with highly regular patterns, such as architectural facades, it is less applicable to natural scenes.

Singular value spectra for different image types. Structured images (a) show a rapid decay in singular values (b), whereas natural images (c, e) exhibit a much slower decay (d, f), indicating they are not globally low-rank.

As shown in the figure above, the singular value spectrum of a structured building drops sharply, confirming its low-rank nature. In contrast, natural images like a castle or a lake have spectra that decay much more slowly, suggesting that a global low-rank model is insufficient for high-fidelity restoration of natural scenes.

Methodology: Patch-based Local Low-Rank (PaLLR)

The proposed PaLLR method shifts the low-rank assumption from a global to a local context. The process involves three primary stages:

  1. Patch Extraction and Grouping: The input image is decomposed into overlapping patches. For each patch, the algorithm identifies its $k$ most similar counterparts across the image using approximate nearest neighbors, forming a "patch group."
  2. Local Matrix Completion: The core assumption is that these groups of visually similar patches—rather than the whole image—form a low-rank matrix. Matrix completion is then performed on each group to recover missing color information.
  3. Aggregation: Since patches overlap and can belong to multiple groups, the final color for each pixel is calculated as a weighted average of the results from all relevant groups.

Algorithmic Optimization

A key contribution of this work is the optimization strategy. Previous global methods utilized an $\ell_1$ loss, requiring the standard Alternating Direction Method of Multipliers (ADMM) with a convergence rate of $O(1/T)$. By switching to an $\ell_2$ loss, the authors reduced the problem to two variable blocks. This enables the use of Accelerated ADMM, which improves the convergence rate to $O(1/T^2)$.

Furthermore, the authors developed a custom divide-and-conquer algorithm to handle matrix inversions within the ADMM updates. By exploiting the block structure of the matrices, they reduced the time complexity from $O(m^3n^3)$ to $O(mn \log m)$, where $m$ and $n$ relate to patch dimensions.

Experimental Results

The authors evaluated PaLLR on eight standard benchmark images from the Berkeley segmentation dataset, using random color sampling rates between 1% and 10%.

  • Quantitative Performance: PaLLR consistently outperformed existing methods, including Local Color Consistency (LCC), Global Low-Rank (GLR), and Local Low-Rank Matrix Approximation (LLORMA), achieving the highest Peak Signal-to-Noise Ratio (PSNR) across all test cases.
  • Computational Efficiency: The $\ell_2$-based accelerated ADMM solver proved to be approximately four times faster than the $\ell_1$ formulation while maintaining equivalent reconstruction quality.
  • Visual Quality: Qualitatively, PaLLR produces fewer artifacts. Unlike global methods that create structural distortions or LCC which often leads to color "bleeding," PaLLR maintains sharp boundaries and localized color accuracy.

Conclusion

PaLLR demonstrates that natural images are better modeled as locally low-rank rather than globally low-rank. By grouping similar patches and employing an efficient, accelerated optimization framework, the method provides a robust and fast solution for high-quality image colorization.

While the current implementation relies on LCC as a preprocessing step to expand initial color seeds, it establishes a strong foundation for patch-based matrix completion in vision tasks. Future work could explore end-to-end learned approaches to further streamline the pipeline and eliminate reliance on preprocessing heuristics.

Summary updated

BibTeX
@inproceedings{yao2015colorization,
  author = {Quanming Yao and James T. Kwok},
  title = {{Colorization by Patch-Based Local Low-Rank Matrix Completion}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2015},
  doi = {10.1609/aaai.v29i1.9479},
}
Figure