Scene Labeling Using Sparse Precision Matrix

Nasim Souly, Mubarak ShahCVPR 2016

Abstract

Scene labeling task is to segment the image into meaningful regions and categorize them into classes of objects which comprised the image. Commonly used methods typically find the local features for each segment and label them using classifiers. Afterwards, labeling is smoothed in order to make sure that neighboring regions receive similar labels. However, these methods ignore expressive connections between labels and non-local dependencies among regions. In this paper, we propose to use a sparse estimation of precision matrix (also called concentration matrix), which is the inverse of covariance matrix of data obtained by graphical lasso to find interaction between labels and regions. To do this, we formulate the problem as an energy minimization over a graph, whose structure is captured by applying sparse constraint on the elements of the precision matrix. This graph encodes (or represents) only significant interactions and avoids a fully connected graph, which is typically used to reflect the long distance associations. We use local and global information to achieve better labeling. We assess our approach on three datasets and obtained promising results.

Introduction

Scene labeling involves assigning a semantic category (such as "sky," "road," or "building") to every pixel in an image. A common approach uses Conditional Random Fields (CRFs) to ensure spatial consistency. However, standard CRFs often suffer from "local myopia," focusing only on immediate neighbors and missing long-range context (e.g., the relationship between "sky" and "sea"). While fully connected CRFs attempt to capture these distant relationships, they are computationally expensive and often introduce noise through irrelevant connections.

This paper proposes a "Goldilocks" graph structure: one that is expressive enough to capture significant non-local dependencies but sparse enough to remain efficient and accurate. By learning a sparse precision matrix, the model identifies the most informative interactions between labels and regions, avoiding the pitfalls of both overly local and overly dense models.

Methodology

The proposed framework operates in three main stages: unary potential calculation, sparse graph structure learning, and energy minimization.

The proposed framework for scene labeling using sparse precision matrices.

1. Unary Potential

The image is first partitioned into super-pixels. For each super-pixel, a Random Forest classifier predicts initial labels based on local features like SIFT, color histograms, and texture. To incorporate global context, GIST features are used to retrieve similar images from a training set, and their label distributions refine the local scores.

2. Sparse Graph Structure

The core innovation lies in learning the graph structure from data using the Graphical Lasso (glasso) algorithm. Glasso estimates a sparse precision matrix (the inverse of the covariance matrix). In this context, zeros in the precision matrix represent conditional independence. By enforcing sparsity, the model automatically focuses on statistically significant interactions—such as the strong correlation between "building" and "window"—while ignoring coincidental or noisy relationships.

3. Energy Minimization

The final labeling is formulated as an energy minimization problem over the learned sparse graph. The $\alpha$-expansion algorithm is employed for MAP inference to find the most likely label configuration across the entire scene.

Experimental Results

The approach was evaluated on three standard benchmarks: the Stanford Background dataset (715 images, 8 classes), SIFTflow (2,488 images, 33 classes), and MSRC2 (591 images, 23 classes).

Qualitative comparison of the proposed method against standard spatial smoothing.

Quantitatively, the method achieved state-of-the-art performance at the time of publication:

  • Stanford Background: 84.6% average accuracy.
  • SIFTflow: 80.6% accuracy, representing a 9% improvement over a simple local classifier.
  • MSRC2: 84.1% accuracy.

Qualitative results demonstrate that the sparse precision matrix approach produces cleaner boundaries and better recognizes objects that are typically misclassified by purely local or spatial models.

Discussion and Conclusion

The use of a precision matrix is fundamentally more effective for building Markov Random Fields than a standard covariance matrix because it captures relationships between labels after accounting for all other variables. Sparsity acts as a denoising tool, allowing the model to ignore irrelevant connections that often plague fully connected graphs. Furthermore, this approach prevents over-smoothing, preserving small objects (like a person on a sidewalk) that might otherwise be washed out by traditional spatial filters.

While the method depends on the quality of initial super-pixel segmentation and assumes a Gaussian distribution for the graphical lasso, it provides a robust framework for capturing long-range dependencies. Future work could involve integrating this sparse structure directly into deep learning architectures to learn features and graph structures end-to-end.

Summary updated

BibTeX
@inproceedings{souly2016scene,
  author = {Nasim Souly and Mubarak Shah},
  title = {{Scene Labeling Using Sparse Precision Matrix}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2016},
  url = {https://openreview.net/forum?id=BJ-QNyG_WH},
}
Figure