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

Learning locality-constrained collaborative representation for robust face recognition

Xi Peng, Lei Zhang, Zhang Yi, Kok Kiong Tan

Abstract

This paper introduces Locality-Constrained Collaborative Representation (LCCR), a novel face recognition algorithm that bridges the gap between manifold learning and sparse representation. By enforcing local consistency—requiring similar inputs to have similar codes—and leveraging a computationally efficient $\ell_2$-norm minimization, LCCR achieves state-of-the-art accuracy. The approach is remarkably robust against noise and physical occlusions (e.g., sunglasses or scarves) and is significantly faster than traditional sparse-coding methods due to its closed-form analytical solution.

Introduction

Face recognition in real-world environments faces significant hurdles, including varying illumination, changing expressions, and physical occlusions. Historically, two models have been prominent: Manifold Learning, which assumes data lies on a low-dimensional surface where nearby points share properties, and Sparse Representation (SRC), which represents a face as a linear combination of training samples.

However, standard SRC often ignores the local geometric structure and is computationally expensive. Manifold learning, while capturing local structure, often relies on simple distances that miss underlying subspace complexities. LCCR addresses these gaps by integrating local consistency directly into a collaborative representation framework.

Conceptual overview of locality-constrained representation (a) and its application to facial images (b).

Methodology

The core of LCCR is its unique objective function. Unlike SRC, which seeks a sparse vector to reconstruct a single input, LCCR seeks a representation that simultaneously reconstructs the input and its $K$-nearest neighbors (KNN).

Key Technical Features

  • Locality Constraint: The objective function penalizes reconstruction errors in the input's neighborhood, reflecting the biological principle that similar visual stimuli should trigger similar neural codes.
  • $\ell_2$-Norm Minimization: The authors posit that the "collaborative" nature of the representation—using all classes to represent the input—is more critical for recognition than the mathematical sparsity of the $\ell_1$-norm.
  • Analytical Solution: The quadratic nature of the objective function allows for a closed-form solution. This enables finding the optimal representation via matrix algebra, making it hundreds of times faster than iterative optimization methods.
The LCCR pipeline for face recognition under occlusion, demonstrating the use of K-nearest neighbors to reconstruct a clean face from an occluded input.

The Two-Step Process

  1. Neighborhood Identification: Find the $K$-nearest neighbors of the test image within the training set.
  2. Optimal Coding: Project the test image and its neighborhood onto a pre-calculated projection matrix to derive the optimal representation.

Experimental Results

LCCR was evaluated across four major facial databases: ORL (basic recognition), AR (occlusions), Extended Yale B (illumination), and Multiple PIE (large-scale variations).

  • Accuracy: LCCR consistently outperformed SRC and CRC-RLS. On the ORL database, LCCR achieved 98% accuracy, significantly higher than SRC's 92%.
  • Robustness to Occlusion: LCCR maintained high accuracy even with 50% block occlusion, outperforming SRC by over 15%. On the AR dataset, it achieved 93% accuracy on faces with sunglasses, nearly doubling the performance of competing methods.
  • Efficiency: The analytical solution allows LCCR to operate at speeds suitable for real-time applications, a major advantage over $\ell_1$-based methods.

Discussion and Conclusion

The primary insight of this work is that locality is more discriminative than global sparsity for face recognition. By preserving local structure, the model becomes less sensitive to outliers. If a test image is occluded, its clean neighbors "steer" the representation toward the correct identity.

While LCCR is highly effective, it does require tuning parameters like neighborhood size ($K$) and locality importance ($\gamma$). Future work may involve integrating dictionary learning to optimize the basis vectors further, potentially enhancing performance beyond the use of raw training data.

Summary updated

BibTeX
@article{peng2014learning,
  author = {Xi Peng and Lei Zhang and Zhang Yi and Kok Kiong Tan},
  title = {{Learning locality-constrained collaborative representation for robust face recognition}},
  journal = {Pattern Recognition},
  year = {2014},
  doi = {10.1016/j.patcog.2014.03.013},
}
Figure