Connecting the Dots: Image Classification via Sparse Representation from a Constrained Subspace Perspective

Liang Liao, Stephen J. Maybank, Haichang Ye, Xin Liu, Xinqiang Wang2018

Abstract

This paper presents a classifier design framework based on a constrained subspace model. By modeling data points as a union of affine subspaces—specifically affine hulls spanned by training samples—the authors argue that the intrinsic dimension of these subspaces should align with that of the underlying data manifold. This perspective provides a unified geometric interpretation of classical classifiers like Nearest Neighbor (NN), Nearest Feature Line (NFL), and Nearest Subspace (NS), as well as modern Sparse Representation Classifiers (SRC). The proposed NCSC-CSR classifier demonstrates superior accuracy and robustness on the Extended Yale B database.

Introduction: The Geometric Challenge of Image Classification

In computer vision, high-dimensional images of objects, such as faces, are theorized to lie on low-dimensional nonlinear manifolds. While the Nearest Manifold (NM) classifier is conceptually ideal, the finite nature of training data makes perfect manifold reconstruction impossible. Existing methods like Nearest Neighbor (NN) and Sparse Representation Classifiers (SRC) attempt to approximate these manifolds. However, a theoretical bridge connecting these disparate approaches has been missing, leaving the exceptional performance of SRC somewhat mysterious.

The Constrained Subspace Framework

The authors introduce the Constrained Subspace Model, which represents each class as a union of affine hulls. These hulls are small, flat "patches" spanned by a specific number of training samples, denoted by the sparsity parameter $\kappa$.

A Unified Theory

By varying $\kappa$, the framework encompasses several classical geometric classifiers:

  • $\kappa = 1$: Reduces to the Nearest Neighbor (NN) classifier.
  • $\kappa = 2$: Corresponds to the Nearest Feature Line (NFL) classifier.
  • $\kappa = N_i$: Equivalent to the Nearest Subspace (NS) classifier.

The NCSC-CSR Classifier

The "Nearest Constrained Subspace Classifier via Constrained Sparse Representation" (NCSC-CSR) utilizes a greedy optimizer called Constrained Orthogonal Matching Pursuit (COMP). It solves a least-squares problem subject to two critical constraints:

  1. Sparsity ($\Vert\alpha\Vert_0 \le \kappa$): Limits the number of training samples used for representation.
  2. Affine Constraint ($1^T\alpha = 1$): Ensures the weights sum to unity, forcing the query point to lie within the affine hull of the selected samples.

The authors posit that for optimal performance, $\kappa$ should be tuned to match the intrinsic dimension ($id$) of the data manifold ($\kappa = id + 1$).

Experimental Results and Discussion

The model was evaluated using the Extended Yale B database, containing 2,414 face images across 38 individuals. Images were downsampled to various feature dimensions (30 to 504) to observe scaling behavior.

Accuracy and Sparsity Dynamics

On 504-dimensional features, NCSC-CSR (with $\kappa=100$) achieved an accuracy of 0.927, outperforming standard SRC-L1 (0.905) and Yang’s variant (0.906). A key finding is that the optimal $\kappa$ is not static; it increases with the feature dimension. As the dimensionality of the input space grows, the model can capture more complex manifold structures, requiring a higher number of basis samples.

Classification accuracy vs. feature dimension for various sparsity levels (κ).

Robustness to Noise

The NCSC-CSR model exhibits remarkable resilience to corruption. In tests where 10% of pixels were replaced with random noise, it maintained 0.730 accuracy, while competing methods like SRC plummeted to approximately 0.31. Interestingly, the authors found that reducing $\kappa$ in high-noise scenarios can act as a geometric filter, compensating for accuracy loss by enforcing stricter sparsity.

Conclusion

The constrained subspace perspective clarifies the success of sparse representation in image classification. It suggests that sparsity is a tool for local manifold approximation rather than just data compression. While the current need for manual $\kappa$ tuning and the computational demands of COMP are areas for future improvement, the framework provides a powerful unified theory for geometric classification. Future work may explore automated estimation of local intrinsic dimensions and the application of these principles to deep learning embeddings.

Summary updated

Abstract

We consider the problem of classifier design via sparse representation based on a constrained subspace model. We argue that the data points in the linear span of the training samples should be constrained in order to yield a more accurate approximation to the corresponding data manifold. For this purpose, the constrained set of data points is formulated as a union of affine subspaces in the form of affine hulls spanned by training samples. We argue that the intrinsic dimension of the affine subspaces should be equal to that of data manifold. Thus, a classifier based on this model has a high classification accuracy similar to that of the conceptual NM (Nearest Manifold) classifier. Based on this model, we connect the dots of some classical classifiers including NN (Nearest Neighbor), NFL (Nearest Feature Line), NS (Nearest subspace) and the recently emerged state-of-the-art SRC (Sparse Representation Classifiers) and interpret the mechanism of SRC and Yang's variant of the SRC using the constrained subspace perspective. Experiments on the Extended Yale B database for image classification corroborate our claims and demonstrate the possibility of a proposed classifier called NCSC-CSR which has higher classification accuracy and robustness.
BibTeX
@misc{liao2018connecting,
  author = {Liang Liao and Stephen J. Maybank and Haichang Ye and Xin Liu and Xinqiang Wang},
  title = {{Connecting the Dots: Image Classification via Sparse Representation from a Constrained Subspace Perspective}},
  year = {2018},
  doi = {10.2991/msam-18.2018.65},
}

Loading related content...

Figure