Introduction
Sparse representation-based classification (SRC) has long been a cornerstone of computer vision, predicated on the idea that sparsity is the key to robust recognition. However, recent research suggests that non-sparse ($l_2$-norm) collaborative representation can achieve comparable or even superior accuracy with significantly lower computational costs. This paper addresses a fundamental debate in the field: when should researchers choose sparse vs. non-sparse methods? We introduce a predictive scoring function to determine dataset preference a priori and propose a novel Non-Sparse Dictionary Learning (DL-NSCR) model that maximizes efficiency.
The Case for Non-Sparse Representation
Collaborative Representation based Classification (CRC) reconstructs a test sample using a linear combination of training samples. While $l_1$-norm regularization (SRC) promotes sparsity, it is computationally intensive due to the iterative solvers required. In contrast, $l_2$-norm regularization (CRC_$l_2$) offers a closed-form solution, providing a massive speed advantage. The core insight of this work is that the "collaborative" nature of the representation—using all classes to represent a sample—is often more critical for classification performance than the sparsity constraint itself. Sparsity may be a byproduct of high-dimensional data rather than the primary driver of accuracy.
Predicting Performance: The Scoring Function
To avoid the trial-and-error process of training and testing both $l_1$ and $l_2$ models, we propose an analytic scoring function to predict which regularization will perform better for a given dataset:
$$S(l_2, l_1) = \frac{FDR \times d}{n}$$
Where:
- FDR (Feature Discrimination Rate): A measure of the inherent discriminative power of the features.
- $d$: The dimensionality of the feature space.
- $n$: The total number of training samples.
Datasets with high scores—characterized by highly discriminative, high-dimensional features and relatively scarce training data—tend to favor non-sparse $l_2$ regularization. This is because less redundancy in the training data naturally leads to denser, more collaborative coefficients.
DL-NSCR: Efficient Dictionary Learning
While dictionary learning (DL) has traditionally focused on sparse models, we introduce Dictionary Learning for Non-Sparse Collaborative Representation (DL-NSCR). This is the first DL model designed specifically for $l_2$-norm representations. The DL-NSCR objective function is formulated to minimize the reconstruction error of the entire training set while ensuring that each class-specific sub-dictionary is effective at representing its own class and ineffective at representing others (the "confusion factor").
Because it relies entirely on Frobenius and $l_2$ norms, both dictionary updates and coefficient calculations have efficient closed-form solutions. This bypasses the need for the slow, iterative solvers that plague sparse dictionary learning models like FDDL or LC-KSVD.
Experimental Evaluation
We evaluated our methods across 13 configurations from 9 benchmark datasets, covering tasks such as face recognition, texture recognition, and person re-identification.
Predictive Accuracy
The proposed $FDR \times d/n$ metric showed a strong correlation with the Error Reduction Rate (ERR) when switching from $l_1$ to $l_2$. As shown in the results, the simple non-sparse CRC_$l_2$ outperformed the sparse CRC_$l_1$ in 11 out of 13 cases, validating the predictive power of our scoring function. In datasets like iLIDS-AA46 where the score was low, the sparse model maintained its edge, as predicted.
Classification Performance and Speed
DL-NSCR consistently outperformed state-of-the-art sparse dictionary learning models in both accuracy and speed. The computational efficiency is particularly striking when compared to iterative sparse models.
On the Extended Yale B dataset, DL-NSCR achieved a testing time of just 4.4 milliseconds per sample, compared to 1257 ms for the popular sparse FDDL model—a speedup of several orders of magnitude. This makes DL-NSCR highly suitable for real-time applications where sparse models are too slow.
Conclusion
The debate between sparse and non-sparse collaborative representation is clarified by considering feature discrimination and data density. Our predictive scoring function allows for informed model selection before training begins. Furthermore, DL-NSCR demonstrates that non-sparse dictionary learning can shatter the computational bottlenecks of traditional sparse methods without sacrificing state-of-the-art accuracy. This work suggests that the community's heavy focus on sparsity may be misplaced for many practical classification tasks.
Summary updated