Abstract
Convolutional Sparse Coding (CSC) provides a robust framework for representing images as a sum of local filters convolved with sparse feature maps. However, traditional optimization techniques, often based on the Alternating Direction Method of Multipliers (ADMM) in the Fourier domain, suffer from high memory requirements and sensitivity to parameter tuning. This paper presents Local Block Coordinate Descent (LoBCoD), a spatial-domain algorithm that decomposes the global CSC problem into local, patch-sized "needle" updates. This approach eliminates auxiliary variables, facilitates parallelization, and enables online dictionary learning. Our results show that LoBCoD outperforms state-of-the-art methods in speed and accuracy for tasks such as image inpainting and multi-focus fusion.
Introduction
The Convolutional Sparse Coding (CSC) model is designed to represent an entire image by convolving a set of local filters with sparse feature maps. Unlike traditional patch-based sparse coding, which processes image patches independently and often ignores boundary effects, CSC maintains global consistency. Despite its advantages, solving the CSC optimization problem is computationally challenging.
Most existing solvers utilize ADMM in the Fourier domain to handle convolutions. While efficient for global operations, this approach has significant drawbacks: it ignores local image statistics, requires substantial memory for auxiliary variables, and necessitates manual tuning of the ADMM penalty parameter. Furthermore, Fourier-based methods are typically restricted to batch learning. This work introduces LoBCoD to address these limitations by providing a memory-efficient, parameter-free, and locally adaptive solution in the spatial domain.
Proposed Method: Local Block Coordinate Descent (LoBCoD)
The core innovation of LoBCoD is the decomposition of the global sparse representation into local vectors termed "needles." Instead of updating the entire image's feature maps simultaneously, the algorithm updates these needles sequentially or in parallel.
Pursuit and Dictionary Learning
For the pursuit stage, LoBCoD employs standard algorithms like Least Angle Regression (LARS) to update individual needles while keeping others fixed. A key observation is that needles corresponding to non-overlapping regions in the image are mathematically independent, allowing for efficient parallel processing across multiple CPU cores.
For dictionary learning, the authors propose Stochastic-LoBCoD. This variant utilizes Stochastic Gradient Descent (SGD) to update dictionary filters. Unlike batch methods that require a full pass over the dataset, Stochastic-LoBCoD updates the filters immediately after processing a "layer" of non-overlapping needles. This enables online learning, where the model can adapt to a single image as it processes it.
Experimental Evaluation
The performance of LoBCoD was evaluated across several datasets and tasks:
- Fruit Dataset: Used for benchmarking run-time and baseline dictionary training.
- MIRFLICKR-1M: A subset was used to evaluate online learning capabilities.
- Standard Benchmarks: Classic images (e.g., Barbara, Lena) were used for inpainting tasks.
- Multi-focus Datasets: Synthetic and real-world image pairs were used to test image fusion.
Results and Discussion
LoBCoD demonstrates superior convergence properties compared to leading batch and online methods. By operating in the spatial domain, the algorithm effectively adapts to local image complexity, a feature lacking in global Fourier-based approaches.
In image inpainting experiments, Stochastic-LoBCoD consistently outperformed the state-of-the-art SBDL algorithm. For the "Peppers" image, it achieved a PSNR of 34.48 dB, surpassing SBDL's 34.03 dB. In multi-focus fusion, the method produced sharper edges and fewer artifacts, achieving higher PSNR values on synthetic datasets (e.g., 42.27 dB on "Barbara").
The memory efficiency of LoBCoD is another significant advantage. By avoiding ADMM, the algorithm eliminates the need for auxiliary variables per patch, resulting in a memory footprint that scales linearly with image size.
Conclusion and Future Work
LoBCoD provides a flexible and efficient framework for Convolutional Sparse Coding. Its ability to perform online learning on a single image and its parallelizable nature make it a powerful tool for large-scale image processing tasks. While the local pursuit stage remains computationally intensive, the method's parameter-free nature and memory efficiency offer clear advantages over traditional solvers. Future work may explore adaptive sparsity levels across different image regions and extending the model to video or 3D data.
Summary updated