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

Low-Rank Sparse Coding for Image Classification

Tianzhu Zhang, Bernard Ghanem, Si Liu, Changsheng Xu, Narendra Ahuja

Abstract

This paper introduces Low-Rank Sparse Coding (LRSC), a novel framework for image classification that addresses the limitations of independent feature coding in the traditional Bag-of-Words (BoW) pipeline. By leveraging the inherent low-rank structure of local image patches, LRSC jointly encodes features within spatial neighborhoods (superpixels). This approach enforces both sparsity and spatial consistency, leading to improved robustness against noise and significantly higher computational efficiency compared to traditional sparse coding methods. Experimental results across multiple benchmarks demonstrate that LRSC achieves state-of-the-art accuracy while providing a nearly 4x speedup over standard sparse coding techniques.

Introduction

In computer vision, the standard BoW pipeline involves extracting local descriptors (such as SIFT), coding them against a visual dictionary, and pooling them into a final image representation. However, existing coding methods like Sparse Coding (SC) or Locality-constrained Linear Coding (LLC) typically treat every local feature as an independent entity. This ignores the fact that features located near each other in an image—such as patches on the same object or texture—are highly correlated. Independent coding often results in inconsistent codes, where similar patches are represented by different visual words, introducing noise that degrades classification performance.

Methodology: Joint Coding via Superpixels

The core innovation of this work is the Low-Rank Sparse Coding (LRSC) framework. Instead of coding one feature at a time, LRSC processes a group of features from a local spatial neighborhood simultaneously.

  1. Image Partitioning: The image is first segmented into homogeneous regions, or superpixels, using the SLIC algorithm.
  2. Joint Coding: Features within each superpixel are gathered into a matrix $X$. The goal is to find a representation matrix $Z$ such that $X \approx DZ$, where $D$ is the learned codebook.
  3. The Objective Function: LRSC optimizes a function that balances reconstruction error, sparsity ($L_1$ norm), and low-rankness (nuclear norm). Enforcing a low rank on the matrix $Z$ ensures that features in a neighborhood share a similar support, effectively denoising the representation through local consensus.
Comparison of coding methods: (b) SIFT descriptors, (c) standard Sparse Coding, and (d) the proposed Low-Rank Sparse Coding.

The optimization is solved efficiently using the Inexact Augmented Lagrange Multiplier (IALM) method, which allows for closed-form update steps.

Experimental Results

The authors evaluated LRSC on four major benchmarks: UIUC 8-Sport, Scene-13, Caltech-101, and Caltech-256.

Accuracy and Robustness

LRSC consistently outperformed seven popular coding methods across all datasets. For instance, on the Caltech-256 benchmark, it achieved a significant improvement over the next best coding-based competitor. The method also proved robust to variations in superpixel size, maintaining high accuracy across different spatial partitions.

Classification accuracies on a benchmark dataset, showing LRSC outperforming existing methods like LLC and SCSPM.

Computational Efficiency

Despite the added complexity of low-rank constraints, LRSC is remarkably efficient. Because it solves one joint optimization problem per superpixel rather than thousands of individual problems, it achieved a nearly 4x speedup over standard Sparse Coding (SCSPM), reducing coding time from 8.27 seconds to 2.33 seconds on a standard test image.

Conclusion

Low-Rank Sparse Coding represents a significant step forward for BoW-based image classification. By moving from independent to joint neighborhood-aware coding, the framework captures spatial consistency that previous methods missed. While the approach currently depends on an initial superpixel segmentation, future work may explore unified frameworks that optimize partitioning and coding simultaneously to further enhance robustness.

Summary updated

BibTeX
@inproceedings{zhang2013low,
  author = {Tianzhu Zhang and Bernard Ghanem and Si Liu and Changsheng Xu and Narendra Ahuja},
  title = {{Low-Rank Sparse Coding for Image Classification}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2013},
  doi = {10.1109/iccv.2013.42},
}
Figure