Learning structured prediction models for image labeling

Xuming He2008

Abstract

Semantic image labeling—the task of assigning a category to every pixel in an image—is often hindered by local ambiguity. This work presents a series of structured prediction models designed to capture context at multiple scales. We introduce the Multiscale Conditional Random Field (mCRF) for capturing label patterns, the Mixture of Conditional Random Fields (MoCRF) for scalable scene-specific labeling, and the Latent Topic Random Field (LTRF) for learning from weakly supervised data. Our results demonstrate that incorporating global context and leveraging coarse labels can significantly improve labeling accuracy while reducing the need for exhaustive manual annotation.

Introduction

In computer vision, the "ambiguity problem" arises when local image patches lack sufficient information for correct classification. For instance, a patch of blue pixels could represent sky or water depending on its position in the scene. Humans resolve this ambiguity using context: we recognize that sky typically appears at the top of an image, while water or grass appears lower down.

This research addresses three primary challenges in image labeling: representation of multi-scale context, computational complexity in large-scale models, and the scarcity of pixel-perfect training data. By developing models that integrate local, regional, and global information, we provide a robust framework for semantic scene understanding.

Proposed Model Architectures

Multiscale Conditional Random Fields (mCRF)

Traditional Conditional Random Fields (CRFs) typically model dependencies between immediate neighbors. The mCRF extends this by using "label templates" that capture patterns at various scales. These templates use latent variables to encode frequent spatial arrangements of labels. To train these models efficiently, we adapted the unsupervised Contrastive Divergence algorithm into a supervised learning framework, allowing the model to learn complex spatial dependencies.

Mixture of Conditional Random Fields (MoCRF)

To address the computational burden of pixel-level CRFs, the MoCRF employs a "divide-and-conquer" strategy. First, pixels are grouped into "super-pixels" (coherent patches that share similar visual characteristics). This drastically reduces the number of variables in the graphical model. Second, the model uses a gating function to identify the global context of the image (e.g., "arctic" vs. "tropical"). Based on this classification, a specialized CRF module tailored to that specific environment is applied, ensuring that the labeling process is contextually relevant.

Latent Topic Random Field (LTRF)

The LTRF is a hybrid generative-discriminative model designed to handle data scarcity. It incorporates "topics" (statistical groupings of co-occurring features) to capture the thematic content of an image. A key advantage of the LTRF is its ability to learn from a combination of a few detailed, pixel-labeled images and many "coarsely-labeled" images. In coarse labeling, regions are tagged with broad categories (e.g., "animal") rather than precise boundaries, making data collection significantly cheaper.

Experimental Evaluation

The proposed models were evaluated on three standard benchmarks:

  1. Corel Dataset: Focused on wildlife scenes with 7 semantic classes.
  2. Sowerby Dataset: Focused on suburban road scenes with 7-8 classes.
  3. MSRC (Microsoft Research Cambridge): A complex dataset with 16 classes, used to evaluate hierarchical label handling and weak supervision.

Results and Discussion

The experiments highlighted the critical role of context and the efficiency of structured prediction. On the Corel dataset, the mCRF achieved an accuracy of 80.0%, a substantial improvement over standard pixel-wise classifiers (66.9%) and traditional MRFs (66.2%). This demonstrates that capturing multi-scale dependencies is essential for resolving local ambiguities.

Furthermore, the MoCRF proved that scalability does not have to come at the cost of accuracy. By reducing the state space from 20,000 variables to roughly 300 through super-pixel grouping, the model remained viable for large datasets while maintaining performance comparable to the mCRF.

Perhaps the most significant finding involves the LTRF and weak supervision. In the MSRC experiments, a model trained on only 10% detailed data achieved 57.7% accuracy. By augmenting this with 50% coarsely-labeled data, accuracy jumped to 68.6%. This 11% boost confirms that coarse labels act as a powerful semantic anchor, preventing overfitting and guiding the model toward more accurate global interpretations.

Conclusion and Future Work

This work demonstrates that structured prediction models effectively integrate multi-scale context to solve the ambiguity problem in image labeling. However, limitations remain. Current models primarily rely on texture and color, lacking explicit geometric object models. Additionally, the "bag of features" approach in topic modeling ignores precise spatial relationships within objects. Future research will explore even weaker forms of supervision, such as learning from image captions, and the integration of non-parametric Bayesian models to handle an evolving set of object categories.

Summary updated

BibTeX
@misc{he2008learning,
  author = {Xuming He},
  title = {{Learning structured prediction models for image labeling}},
  year = {2008},
}
Figure