Are sparse representations really relevant for image classification?

Roberto Rigamonti, Matthew A. Brown, Vincent LepetitCVPR 2011

Abstract

Recent years have seen an increasing interest in sparse representations for image classification and object recognition, probably motivated by evidence from the analysis of the primate visual cortex. It is still unclear, however, whether or not sparsity helps classification. In this paper we evaluate its impact on the recognition rate using a shallow modular architecture, adopting both standard filter banks and filter banks learned in an unsupervised way. In our experiments on the CIFAR-10 and on the Caltech-101 datasets, enforcing sparsity constraints actually does not improve recognition performance. This has an important practical impact in image descriptor design, as enforcing these constraints can have a heavy computational cost.

Introduction

Sparse representations have become a cornerstone of modern computer vision, largely inspired by the sparse coding observed in the primate visual cortex. The prevailing hypothesis is that sparse features are more separable in high-dimensional space, leading to better classification. However, enforcing sparsity during inference is computationally expensive, often requiring complex iterative optimization. This paper investigates whether this high cost is justified by improvements in recognition accuracy.

Methodology

To isolate the effect of sparsity, the authors developed a modular "shallow" architecture. The pipeline consists of five distinct stages: pre-processing (grayscale and whitening), feature extraction, non-linearity, pooling, and classification.

The modular architecture used to isolate and evaluate the impact of sparsity on classification performance.

The study compared three feature extraction methods:

  1. SPARSEGD: Enforcing $\ell_1$ sparsity via Gradient Descent.
  2. SPARSEMP: Enforcing $\ell_0$ sparsity via Matching Pursuit.
  3. CONV: Simple convolution without sparsity constraints.

These methods were tested using learned filters (Olshausen & Field), handcrafted filters (Leung-Malik), and random filters. By swapping the feature extraction method while keeping the rest of the pipeline identical, the researchers could measure the specific impact of sparsity.

Results and Analysis

The experimental results on CIFAR-10 and Caltech-101 challenge the necessity of sparsity for classification. On the CIFAR-10 dataset, simple convolution (CONV) achieved a recognition rate of 69.44%. As the sparsity constraint ($\lambda_{extract}$) was increased, the performance of the SPARSEGD method consistently declined, dropping significantly at high sparsity levels.

Recognition rate on CIFAR-10 as a function of the sparsity constraint ($\lambda_{extract}$) for various filter types. Note that increasing sparsity generally leads to lower performance compared to simple convolution (dashed lines).

A key finding is that while sparsity is essential for learning meaningful filters (like Gabor-like edge detectors), enforcing it during the inference phase does not provide a benefit for clean images. Sparsity only showed a clear advantage in scenarios with high Gaussian noise, where the constraint acted as a denoising regularizer. Furthermore, the researchers found that data whitening was a non-negotiable step; without it, performance plummeted regardless of the filters or sparsity constraints used.

Conclusion

The study concludes that for standard image classification tasks on clean datasets, the computational overhead of enforcing sparsity during feature extraction is not rewarded with higher accuracy. Simple, fast convolutions with well-learned filters are sufficient and often superior. This suggests that the focus in descriptor design should be on the quality of the learned filters and robust pre-processing rather than the sparsity of the final representation. These findings are highly relevant to the design of modern deep learning architectures, which rely heavily on efficient convolutional operations.

Summary updated

BibTeX
@inproceedings{rigamonti2011are,
  author = {Roberto Rigamonti and Matthew A. Brown and Vincent Lepetit},
  title = {{Are sparse representations really relevant for image classification?}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2011},
  url = {https://openreview.net/forum?id=ry4uYhZ_ZB},
}
Figure