Sparse Representation-Based Open Set Recognition

He Zhang, Vishal M. Patel

TL;DR

Standard Sparse Representation-based Classification (SRC) models assume a "closed world" where all classes encountered during testing were already seen during training. This paper introduces Sparse Representation-based Open Set Recognition (SROSR), a method that uses Extreme Value Theory (EVT) to model the tail distributions of reconstruction errors, allowing the algorithm to accurately classify known classes while confidently rejecting unseen, "open set" classes.

What Problem Does This Paper Address?

Most image classification algorithms operate under a closed-world assumption: if you train a model on dogs and cats, it will stubbornly classify a test image of a horse as either a dog or a cat. In the real world, models frequently encounter data from classes they have never seen. The ability to say "I don't know" or reject a sample is known as open set recognition.

Sparse Representation-based Classification (SRC) is a powerful technique that classifies a test sample by finding its sparsest linear representation among the training samples. However, SRC traditionally struggles with open set recognition. Previous attempts to add rejection rules to SRC (like the Sparsity Concentration Index, or SCI) were highly specific to face recognition and fail to generalize to broader object recognition tasks. This paper aims to bridge that gap by developing a generalized, statistically grounded rejection framework for SRC.

Methods

The authors build upon the standard SRC algorithm, which assigns a test sample to the class that yields the lowest reconstruction error. To handle unknown classes, they introduce a two-stage process leveraging Extreme Value Theory (EVT), a branch of statistics used to model abnormally high or low data values (the "tails" of a distribution).

  1. Modeling Error Distributions (Training): The authors use an iterative cross-validation approach on the training data to generate a pool of reconstruction errors. They focus on two specific metrics:
  2. Matched reconstruction error: The error from the predicted (correct) class.
  3. Sum of non-matched reconstruction errors: The combined errors from all other classes. They then fit a Generalized Pareto Distribution (GPD) to the tails of these two error distributions.

  4. Fusing Scores for Rejection (Testing): When a new test sample arrives, the model calculates its sparse coefficients and reconstruction errors. These errors are fed into the learned GPDs to generate probability scores. The scores are weighted based on the expected "Openness" of the environment and fused. If the fused score exceeds a learned threshold, the sample is rejected as an unknown class; otherwise, it is classified normally.

Datasets

The authors evaluated their method on four publicly available datasets, varying the level of "Openness" (the ratio of unknown test classes to known training classes) in each:

  • Extended Yale B Dataset: 38 classes of frontal face images under varying lighting.
  • MNIST: 10 classes of handwritten digits.
  • UIUC Attribute Dataset: Object images from a-Pascal (used as knowns) and a-Yahoo (used as unknowns).
  • Caltech-256: A challenging dataset of 257 object categories.

Key Insights and Ideas

  • Non-matched errors are a goldmine for novelty detection: The most surprising insight is how SROSR utilizes the sum of non-matched errors. Because of SRC's self-expressiveness property, an open set sample cannot be cleanly represented by any single known class. Instead, its sparse coefficients spread widely across the entire training set. Consequently, the distribution of non-matched errors for an unknown class looks fundamentally different than it does for a known class.
  • Fusing distributions is critical: The authors demonstrated that relying solely on the matched reconstruction error distribution is insufficient. Fusing the matched error tail with the non-matched error tail significantly boosts the model's ability to distinguish between knowns and unknowns.
  • EVT is ideal for boundary problems: Because open set recognition is essentially a problem of defining the boundary between "normal" and "anomalous," fitting a distribution to the entire dataset is unnecessary and often inaccurate. EVT elegantly solves this by only modeling the extreme tails of the error distributions.

Key Results

  • Superiority over baselines: SROSR consistently outperformed existing sparsity-based rejection methods (SCI and Ratio) and a "Naive" thresholding baseline across all datasets.
  • State-of-the-art performance: SROSR beat the highly competitive Weibull-calibrated SVM (W-SVM), which is considered a benchmark in open set recognition.
  • Robustness to Openness: As the environment became more "open" (i.e., more unknown classes were introduced during testing), SROSR maintained higher F-measures and Accuracy scores than competing methods. For example, on the challenging Caltech-256 dataset (with openness varying from ~25% to 29%), SROSR achieved the highest F-measure, proving its viability for general object recognition.

Limitations and Future Work

  • Dependence on Self-Expressiveness: The SRC algorithm relies on the assumption that test samples can be linearly represented by training samples. If a dataset contains extreme, unrepresented variations in pose, illumination, or resolution, this property breaks down, and SROSR will fail.
  • Data Hungry: To achieve good recognition and rejection performance, the training set must be large enough to span the conditions likely to appear in the test set.
  • Future Directions: The authors suggest developing kernel-based SROSR methods to handle highly non-linear data in high-dimensional spaces. They also highlight few-shot open set recognition (where only one or two images per class are available for training) and directly optimizing dictionary learning for open set risk as promising areas for future research.

Summary updated

BibTeX
@article{zhang2017sparse,
  author = {He Zhang and Vishal M. Patel},
  title = {{Sparse Representation-Based Open Set Recognition}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2017},
  url = {https://openreview.net/forum?id=R23C5kLX8A},
}

Loading related content...

Figure