Abstract
In this paper we present a new approach of incorporating kernels into dictionary learning. The kernel K-SVD algorithm (KKSVD), which has been introduced recently, shows an improvement in classification performance, with relation to its linear counterpart K-SVD. However, this algorithm requires the storage and handling of a very large kernel matrix, which leads to high computational cost, while also limiting its use to setups with small number of training examples. We address these problems by combining two ideas: first we approximate the kernel matrix using a cleverly sampled subset of its columns using the Nyström method; secondly, as we wish to avoid using this matrix altogether, we decompose it by SVD to form new "virtual samples," on which any linear dictionary learning can be employed. Our method, termed "Linearized Kernel Dictionary Learning" (LKDL) can be seamlessly applied as a pre-processing stage on top of any efficient off-the-shelf dictionary learning scheme, effectively "kernelizing" it. We demonstrate the effectiveness of our method on several tasks of both supervised and unsupervised classification and show the efficiency of the proposed scheme, its easy integration and performance boosting properties.
Introduction: The Scalability Bottleneck in Kernel DL
Dictionary Learning (DL) is a fundamental technique in sparse representation, aiming to find a set of atoms that can efficiently represent a dataset. While linear DL methods like K-SVD are computationally efficient, they often struggle with the complex, non-linear structures inherent in real-world data such as facial images or handwritten digits.
To overcome this, Kernel Dictionary Learning (KKSVD) was introduced, utilizing the "kernel trick" to map data into a high-dimensional feature space where it becomes more separable. However, this comes at a significant cost. Standard kernel methods require the computation and storage of an $N \times N$ kernel matrix, where $N$ is the number of training samples. For large datasets like MNIST ($N=60,000$), this matrix becomes prohibitively large.
As shown in the complexity comparison below, kernelized pursuit algorithms (KOMP) scale with the number of training samples $N$, whereas linear pursuit (OMP) scales with the signal dimension $p$. In large-scale scenarios where $N \gg p$, the kernelized approach becomes a computational nightmare.
Methodology: The LKDL Framework
The authors propose Linearized Kernel Dictionary Learning (LKDL), a framework that "linearizes" the kernel trick into a pre-processing stage. This allows the use of kernels without the $O(N^2)$ overhead during the dictionary learning phase itself. The process involves three main steps:
- Nyström Approximation: Instead of the full kernel matrix, LKDL samples a small subset of $c$ columns ($c \ll N$). The paper highlights that sampling strategy is vital; techniques like k-means clustering or "coresets" (focusing on unique samples) significantly outperform simple uniform sampling.
- Virtual Sample Creation: The approximated matrix is decomposed via Singular Value Decomposition (SVD) to generate "virtual samples." These vectors represent a low-dimensional projection of the data within the kernel's feature space.
- Plug-and-Play Integration: The resulting virtual samples are linear vectors. This means they can be fed into any standard, efficient linear DL algorithm (e.g., LC-KSVD, FDDL) to achieve kernelized performance at linear speeds.
Key Results and Performance
The LKDL framework was evaluated on benchmarks including USPS, MNIST, Extended YaleB, and the AR Face Database. The results demonstrate that LKDL provides the benefits of non-linear kernels with the efficiency of linear models:
- Efficiency: On the MNIST dataset, LKDL achieved a 19x speedup over the state-of-the-art KKSVD while maintaining comparable accuracy.
- Accuracy Boost: LKDL consistently improved classification performance over linear counterparts. For instance, on the Extended YaleB database, it boosted the accuracy of LC-KSVD from 94.49% to 96.33%.
- Robustness and Compactness: LKDL showed superior resilience to noise and missing pixels. Furthermore, it allowed for more compact dictionaries; a dictionary with only 7 atoms per class using LKDL matched the performance of a linear dictionary with 15 atoms per class.
Conclusion
LKDL bridges the gap between the representational power of kernels and the scalability of linear dictionary learning. By shifting the kernelization to a pre-processing "virtual sample" generation phase, it enables the application of kernel methods to large-scale datasets that were previously inaccessible. Future work may explore extending this linearization to online dictionary learning and applying kernels directly to sparse coefficients.
Summary updated