Bayesian Joint Modelling for Object Localisation in Weakly Labelled Images.

Zhiyuan Shi, Timothy M. Hospedales, Tao Xiang · DOI

TL;DR

This paper introduces a novel Bayesian joint topic model for weakly supervised object localization, enabling models to learn from images with only class-level labels (e.g., "this image contains a cat") rather than precise bounding boxes. By jointly modeling all object classes and backgrounds, the approach effectively resolves ambiguities and leverages shared visual information, achieving state-of-the-art results on challenging benchmarks.

What Problem Does This Paper Address?

Object localization, the task of drawing bounding boxes around objects in images, typically requires extensive manual annotation. This is a laborious and time-consuming process, hindering the scalability of object detection to a vast number of classes. Weakly supervised object localization (WSOL) aims to overcome this by learning from weaker forms of supervision, such as image-level labels. Existing WSOL methods often treat each object class independently, failing to exploit crucial information like object co-occurrence (e.g., horses and people often appear together) and shared background patterns. This paper addresses this limitation by proposing a unified framework that models all object classes and backgrounds jointly.

Methods

The core of this paper is a novel Bayesian joint topic model. Unlike traditional topic models that factorize documents into topics, this model extends the concept to images, factoring them into latent "topics" that represent object classes and background elements. Key methodological contributions include:

  • Joint Modeling: All foreground object classes and background types are modeled within a single generative model. This allows for "explaining away" inference, where the presence of one object can help disambiguate the localization of another.
  • Shared Background Modeling: A single set of background topics is learned and shared across all object classes. This leverages the fact that background elements (sky, grass, etc.) are consistent across images, regardless of the foreground objects.
  • Bayesian Formulation: The Bayesian approach allows for the principled integration of prior knowledge. This includes:
  • Geometry Priors: Objects are spatially compact relative to the background.
  • Appearance Priors: Incorporating knowledge about typical object appearances.
  • Inter-Category Appearance Similarity: Leveraging relationships between object classes (e.g., "bike" and "motorbike" are visually similar), learned from resources like WordNet.
  • Semi-Supervised Learning (SSL): The generative framework naturally accommodates unlabelled data, allowing the model to learn from vast amounts of readily available internet images alongside the weakly labelled data.
  • Bayesian Domain Adaptation: The model can adapt knowledge learned from one domain (e.g., images) to another (e.g., videos) by transferring learned parameters as priors.

Inference is performed using variational message passing (VMP), and object localization is achieved through Gaussian means or heat-map sampling.

Datasets

The proposed model was evaluated on several standard datasets:

  • PASCAL VOC 2007: Used in various configurations (VOC07-20, VOC07-6x2, VOC07-14) to benchmark performance on object localization and detection.
  • ImageNet: Evaluated on a large-scale subset (3624 object categories) to assess performance in a more challenging, larger-scale setting.
  • YouTube-Object (YTO): A dataset of weakly annotated video clips, used to evaluate performance on video data and domain transfer capabilities.

Key Insights and Ideas

  • Joint modeling is crucial for disambiguation: The paper strongly argues that modeling object classes together, rather than independently, significantly improves localization accuracy by allowing objects to "explain away" each other.
  • Background modeling is a powerful, underutilized cue: Explicitly modeling background topics, even without supervision, helps to reduce confusion with foreground objects and improve localization.
  • Bayesian priors offer a flexible way to inject knowledge: The framework's Bayesian nature allows for the seamless integration of various forms of prior knowledge, from simple geometric constraints to complex inter-class appearance similarities derived from external resources like WordNet.
  • Unlabelled data is a valuable resource: The model's ability to leverage unlabelled data, even when mixed with irrelevant information, is a significant advantage for learning in data-scarce scenarios.
  • Domain adaptation is effective for WSOL: The Bayesian approach facilitates transferring learned models across different domains (image to video, etc.), a critical step for building generalizable recognition systems.

Key Results

  • State-of-the-art performance: The proposed Bayesian joint model consistently outperformed existing state-of-the-art methods on PASCAL VOC 2007 and ImageNet datasets for weakly supervised object localization. For instance, on PASCAL VOC 2007, the "Our-Gaussian+prior" method achieved accuracies significantly higher than competitors, with initial annotation accuracy reaching up to 66.7% on the 20-class dataset.
  • Improved detection from weak labels: By achieving better initial localization, the model enabled the training of weakly supervised detectors that significantly closed the gap with fully supervised detectors.
  • Effective domain transfer: On the YouTube-Object dataset, the model achieved 32.2% accuracy with its "Our-Smooth" variant, closely approaching the theoretical upper bound. Cross-domain transfer experiments showed significant benefits, especially when target domain data was limited.
  • Robustness to unlabelled data: In semi-supervised learning experiments, adding unlabelled data (even irrelevant data) improved performance, especially when labelled data was scarce.

Limitations and Future Work

  • Limitations:
    • The model's performance can be affected when background clutter or objects of no interest dominate the image, leading to false positives (e.g., a bridge structure resembling a boat).
  • For very large-scale datasets like ImageNet, processing all classes simultaneously in memory can be a challenge, requiring batch processing which limits the model's full potential.
  • The current model assumes a 1:1 correspondence between foreground topics and object classes, though extensions for 1:N correspondence are mentioned.
  • Future Work:
    • Automatically determining the optimal number of topics.
  • Learning deeper, hierarchical models that incorporate object parts and attributes.
  • Learning object-appearance similarity directly from data rather than relying on external resources like WordNet.
  • Learning from realistically noisy, non-purpose collected labels.

Summary updated

BibTeX
@article{shi2015bayesian,
  author = {Zhiyuan Shi and Timothy M. Hospedales and Tao Xiang},
  title = {{Bayesian Joint Modelling for Object Localisation in Weakly Labelled Images.}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2015},
  doi = {10.1109/tpami.2015.2392769},
}
Figure