NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Sparse representation or collaborative representation: Which helps face recognition?

Lei Zhang, Meng Yang, Xiangchu Feng

Introduction

For years, the computer vision community believed that the success of Sparse Representation-based Classification (SRC) in face recognition was due to the "magic" of $l_1$-norm sparsity. This paper challenges that assumption, demonstrating that the real power comes from collaborative representation—using all training classes together to represent a query—and that a much simpler $l_2$-regularized approach (CRC_RLS) achieves similar accuracy while being up to 1,600 times faster.

Face recognition (FR) often suffers from the "small-sample-size" problem: we have very few training images per person compared to the high dimensionality of the images. SRC emerged as a robust solution, coding a query face as a sparse linear combination of all training samples. However, SRC relies on $l_1$-minimization, which is computationally expensive. The prevailing theory was that the $l_1$-norm's ability to produce sparse coefficients was the essential ingredient for high accuracy. This research asks: Is it really the sparsity that matters, or is it the fact that we are representing the query image using a "collaboration" of all available classes?

Methods: Collaborative Representation-based Classification

The authors propose Collaborative Representation-based Classification with Regularized Least Square (CRC_RLS). Unlike SRC, which uses the $l_1$-norm to enforce strict sparsity, CRC_RLS uses the $l_2$-norm (Tikhonov regularization). The objective function is defined as: $$\min_{\rho} \|y - X\rho\|_2^2 + \lambda \|\rho\|_2^2$$

Geometric interpretation of the collaborative representation framework.

Because the $l_2$-norm is used, the solution is analytical and can be derived via a closed-form equation: $\hat{\rho} = (X^T X + \lambda I)^{-1} X^T y$. This is a game-changer for efficiency. The term $(X^T X + \lambda I)^{-1} X^T$ can be pre-calculated as a projection matrix $P$. When a new query image $y$ arrives, classification becomes a simple matrix-vector multiplication ($\hat{\rho} = Py$), followed by calculating class-specific residuals.

Experimental Setup

The approach was evaluated on three standard benchmarks:

  • Extended Yale B: Frontal face images of 38 individuals under significantly varying lighting conditions.
  • AR Database: Images with different facial expressions and real-world occlusions (sunglasses and scarves).
  • Multi-PIE: A large-scale dataset with 337 subjects captured across multiple sessions with variations in pose, expression, and illumination.

Key Insights

  • Sparsity is Overrated: While $l_1$ produces much sparser coefficients than $l_2$, the recognition rates are nearly identical. This suggests that "strict" sparsity isn't the primary driver of performance in face recognition.
  • The Power of Collaboration: The "Collaborative" part means using the entire training set $X$ to represent query $y$. This allows the system to "double-check" the identity by looking for a representation where the correct class is significantly more helpful than the "collaboration" of all other classes.
  • Discrimination via Regularization: Even though $l_2$ doesn't force coefficients to zero, the regularization term $\lambda \|\rho\|_2^2$ provides enough stability and "weak sparsity" to make the representation discriminative.

Results and Discussion

CRC_RLS performed competitively with SRC across all datasets. In some cases, such as the AR database with scarf occlusions, CRC_RLS actually outperformed SRC by a significant margin (90.5% vs 59.5% for non-partitioned images).

Recognition rates of $l_1$ and $l_2$ regularized minimization under different $\lambda$ values.

As shown in the figure above, the recognition rate for $l_2$-regularized minimization is stable and comparable to $l_1$ across a wide range of $\lambda$ values, even outperforming it as $\lambda$ increases. This directly challenges the notion that $l_1$ sparsity is essential for high accuracy.

The most significant advantage is speed. On the Extended Yale B dataset, CRC_RLS was 1,636 times faster than the standard $l_1\_ls$ solver used in SRC. Even compared to the fastest $l_1$ solvers, CRC_RLS remained significantly faster while maintaining high accuracy. This speed advantage becomes even more pronounced as database size increases.

Conclusion

This work demonstrates that collaborative representation, rather than $l_1$-norm sparsity, is the key to the success of representation-based face recognition. By moving from iterative $l_1$ solvers to a closed-form $l_2$ projection, the authors turned a computationally heavy process into one suitable for real-time, large-scale applications. Future work may explore whether this "collaboration over sparsity" principle applies to other pattern classification tasks.

Summary updated

BibTeX
@inproceedings{zhang2011sparse,
  author = {Lei Zhang and Meng Yang and Xiangchu Feng},
  title = {{Sparse representation or collaborative representation: Which helps face recognition?}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2011},
  doi = {10.1109/iccv.2011.6126277},
}
Figure