Abstract
Traditional Sparse Coding (SC) often fails to preserve image structure due to vectorization and suffers from dictionary redundancy. This paper proposes Two-Dimensional Sparse Coding (2DSC), a framework that represents images as third-order tensors. By employing a tensor-product based on circular convolution, 2DSC achieves shift invariance and produces concise dictionaries. Experimental results demonstrate that 2DSC significantly outperforms existing methods in multi-spectral image denoising while being nearly 8x faster than previous tensor-based approaches.
The Limitations of Traditional Sparse Coding
Standard Sparse Coding is a cornerstone of unsupervised feature extraction, yet it faces two critical hurdles when applied to visual data:
- Structural Destruction: SC typically requires "vectorizing" an image, flattening a 2D grid into a 1D line. This process destroys the spatial proximity of pixels and the underlying object structures.
- The Curse of Dimensionality: To capture features at various positions, SC often learns redundant, shifted versions of the same base pattern. This results in massive, overcomplete dictionaries that are computationally expensive to train.
While methods like Tensor Sparse Coding (TenSR) and Convolutional Sparse Coding (CSC) have been developed, they often ignore relationships between data dimensions or suffer from extreme memory requirements.
The 2DSC Framework
The proposed 2DSC framework treats images as third-order tensors and introduces the Tensor-Linear Combination. The core innovation is the use of a circular convolution operator within the tensor product. This allows a single dictionary "atom" to represent all its possible circular shifts simultaneously, effectively providing shift invariance for free.
Because of this property, the dictionary does not need to store redundant patterns. The authors demonstrate that an $m \times k$ image space can be spanned by just $m$ tensor bases, whereas traditional SC would require $m \times k$ bases to achieve similar coverage.
Methodology and Optimization
To solve the 2DSC problem efficiently, the authors developed a two-step alternating minimization process:
- ISTA-T: A specialized version of the Iterative Shrinkage Thresholding Algorithm designed for tensor products to learn sparse coefficients.
- Frequency Domain Dictionary Learning: By transforming the dictionary learning step into the frequency domain using Discrete Fourier Transforms (DFT), complex tensor operations are converted into element-wise multiplications. This drastically reduces the number of variables and computational overhead.
Experimental Results
The model was evaluated using natural images and the Columbia MSI Database (a multi-spectral image dataset). Key findings include:
- Dictionary Quality: For large $32 \times 32$ patches where traditional SC fails (producing noise-like dictionaries), 2DSC successfully extracts clear, structured Gabor-like filters.
- Denoising Performance: In multi-spectral image denoising, 2DSC outperformed five state-of-the-art methods, including TenSR, in terms of Structure Similarity Index (SSIM) and Peak Signal-to-Noise Ratio (PSNR), particularly at high noise levels.
- Computational Speed: In a benchmark with ~21,000 patches, 2DSC completed coefficient learning in just 23 seconds, compared to 189 seconds for TenSR—a nearly 8x speedup.
Conclusion
2DSC offers a mathematically principled and computationally efficient alternative to traditional sparse coding for 2D data. By preserving local proximity and leveraging the efficiency of the Fourier domain, it achieves superior performance in image restoration tasks. Future work may involve incorporating additional structural priors or applying the framework to image clustering.
Summary updated