Abstract
Sparse Representation for Classification (SRC) has proven effective for tasks like face recognition but faces challenges regarding its unsupervised nature, high computational cost, and the decoupling of dimensionality reduction from the sparse coding process. This paper introduces Supervised and Projected Sparse Coding (SPSC), a unified framework that learns a discriminative low-dimensional subspace and group-sparse representations simultaneously. By incorporating class labels into the projection learning and utilizing structured sparsity, SPSC achieves higher classification accuracy and significantly faster inference than traditional methods. Evaluations on standard benchmarks, including YaleB and USPS, validate the effectiveness of the proposed approach.
Introduction
The success of Sparse Representation for Classification (SRC) in computer vision is well-documented, particularly in robust face recognition. However, its practical application is often hindered by three primary limitations. First, standard SRC is unsupervised, meaning it ignores class labels during the sparse coefficient estimation phase. Second, solving $\ell_1$-minimization problems in high-dimensional spaces is computationally intensive, leading to poor scalability for large-scale datasets. Third, the common practice of applying dimensionality reduction (e.g., PCA or LDA) as a separate preprocessing step is suboptimal, as the resulting subspace is not specifically tailored for the subsequent sparse coding task. The SPSC framework aims to bridge these gaps by creating a unified objective function that optimizes the projection matrix and the sparse coefficients at the same time.
Methodology
The proposed framework addresses the limitations of SRC through two key innovations: Supervised Group Sparse Coding (GSC) and the unified SPSC objective.
Supervised Group Sparse Coding (GSC)
Instead of simple "flat" sparsity, the authors introduce Group Sparse Regularization. By grouping training samples by class and applying an $\ell_{2,1}$-norm, the model encourages structured sparsity. This ensures that a test image is represented by a small number of groups (classes) rather than arbitrary individual samples, significantly enhancing discriminative power.
Supervised and Projected Sparse Coding (SPSC)
The core of the SPSC method is a unified objective function that optimizes the projection matrix $W$ and the sparse coefficients $\beta$ concurrently: $$\min_{W, \beta} \sum \|W^T A_{-i} \beta_i - W^T x_i\|_2^2 + \gamma \|\beta_i\|_g$$ Subject to: $W^T W = I$
Here, $W$ represents the dimensionality reduction matrix, $\beta$ are the sparse coefficients, and $A_{-i}$ denotes the training data excluding the $i$-th sample. This optimization is performed using an iterative alternating approach. In Step A, the projection $W$ is fixed to solve for coefficients $\beta$ using an efficient iterative diagonal matrix method. In Step B, the coefficients $\beta$ are fixed to solve for the optimal projection $W$ via an eigenvalue problem.
Experimental Results
The authors evaluated the framework on four standard benchmarks: Extended YaleB, CMU PIE, USPS, and Semeion. To maintain the over-complete system requirement ($n > m$), images were downsampled to $16 \times 16$ pixels.
As shown in the results, GSC consistently outperforms standard SRC and SVM. For instance, on the YaleB dataset, GSC achieved an accuracy of 91.9%, surpassing SRC's 91.4%. Furthermore, SPSC demonstrates remarkable performance in low-dimensional subspaces. When restricted to low-dimensional projections, SPSC significantly outperformed combinations like LDA+SRC or LPP+SRC. On the USPS dataset with 60 samples, SPSC reached 91.9% accuracy, while the traditional LDA+SRC pipeline achieved only 45.5%.
Beyond accuracy, the computational efficiency of the proposed iterative solver is a significant advantage. The method converges in approximately 20 iterations, whereas standard gradient projection methods can require over 30,000 iterations to reach a comparable objective value. This efficiency makes SPSC a viable candidate for real-time applications.
Key Insights
- Labels in the Subspace: Traditional dimensionality reduction like PCA is unsupervised and focuses on variance. By integrating labels into the learning of $W$, SPSC ensures the resulting subspace maximizes class separability, which is crucial for the subsequent sparse coding step.
- Efficiency through Projection: Performing sparse coding in a projected low-dimensional space reduces the dimensionality of the $\ell_1$ problem, leading to faster classification during inference.
- Robustness to Occlusion: The group-sparse structure provides inherent robustness to noise and contiguous occlusions. By relying on the collective representation of a class group, the model is less sensitive to perturbations in individual pixels or samples.
Conclusion
SPSC provides a robust and efficient framework for image classification by bridging the gap between dimensionality reduction and sparse representation. While the current linear projection model is highly effective, future work could explore kernelized versions to handle non-linear data distributions. Additionally, addressing the over-complete assumption to allow for higher-resolution feature processing remains an area for further investigation.
Summary updated