Fast Convolutional Sparse Coding in the Dual Domain

Lama Affara, Bernard Ghanem, Peter WonkaarXiv 2017

Abstract

Convolutional Sparse Coding (CSC) is a powerful framework for signal representation, yet its computational intensity has long hindered its scalability to high-dimensional data. We present a novel optimization framework that reformulates the CSC problem in the dual domain. By shifting the computational burden from the primal to the dual, we reduce the complexity of the underlying linear systems, achieving up to a 20x speedup for high-dimensional data like RGB videos while maintaining state-of-the-art accuracy.

Introduction: The Challenge of Scalable CSC

Convolutional Sparse Coding (CSC) has become a cornerstone of computer vision, offering a translation-invariant alternative to traditional patch-based sparse coding. By modeling an entire image as a sum of dictionary elements (filters) convolved with sparse feature maps, CSC captures global latent structures similar to the hierarchical features learned by Convolutional Neural Networks (CNNs).

Overview of Convolutional Sparse Coding (CSC) where an image is reconstructed from a dictionary of filters and sparse feature maps.

Despite its theoretical elegance, CSC is computationally expensive. The primary bottleneck lies in solving massive linear systems during the optimization process. Even when performed in the Fourier domain—where convolution simplifies to element-wise multiplication—the resulting systems are "fat." Specifically, the number of parameters to solve ($DK$) significantly exceeds the image dimensions ($D$), making the process difficult to scale for large datasets or multi-channel inputs like color video.

Methodology: Shifting to the Dual Domain

The proposed framework addresses these bottlenecks through two primary technical innovations:

1. Dual Domain ADMM

The core insight is the reformulation of the "coding" subproblem—the task of finding sparse maps—into its dual form. In the primal domain, solvers must handle $DK$ variables. By transitioning to the dual domain, the problem is reduced to solving for only $D$ variables. Utilizing the Alternating Direction Method of Multipliers (ADMM) in this dual space allows for significantly smaller and faster linear system solutions. This "less is more" approach leverages the Woodbury inversion formula more efficiently than previous primal-based methods.

2. Higher-Order Tensor Extension (TCSC)

To handle modern data formats, the dual formulation was extended to tensors. This Higher-Order Tensor CSC (TCSC) allows the model to process correlated dimensions—such as RGB channels or temporal video frames—simultaneously. This holistic approach is more effective than treating multi-channel data as a series of independent grayscale problems.

Experimental Results

The framework was evaluated on standard benchmarks, including the Fruit, City, and House image datasets, as well as temporal data from the OTB50 basketball video sequence.

Speed and Scalability

The dual formulation demonstrated a 2.5x speedup over the previous state-of-the-art (Heide et al.) for standard 2D CSC. The performance gains were even more pronounced for higher-dimensional data, where the TCSC reached speeds up to 20x faster than existing tensor-based solvers.

Comparison of convergence time per iteration between the proposed dual-domain method and the state-of-the-art Heide et al.

Convergence and Accuracy

Because the subproblems are convex, the duality gap is zero, ensuring that the dual approach yields the same mathematical solution as the primal approach, but with far greater efficiency. As shown in the convergence analysis, the dual method typically reaches a lower objective value (indicating better reconstruction) in fewer iterations than primal methods. Furthermore, the use of coordinate ascent with "warm starts" for dictionary learning allows computation time to drop drastically after initial iterations.

Limitations and Future Directions

While the dual domain approach offers significant advantages, it currently relies on circular boundary conditions to facilitate Fourier transform operations. While the impact on small filters is negligible, it can occasionally introduce artifacts at image edges. Future research may explore more complex regularizers, such as the nuclear norm, to better capture repetitive patterns by enforcing low-rank constraints on the sparse maps. Additionally, further optimization for specific GPU architectures could potentially push the observed speedups even further.

Summary updated

BibTeX
@misc{affara2017fast,
  author = {Lama Affara and Bernard Ghanem and Peter Wonka},
  title = {{Fast Convolutional Sparse Coding in the Dual Domain}},
  year = {2017},
  eprint = {1709.09479},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1709.09479},
}
Figure