Modeling Images using Transformed Indian Buffet Processes

Ke Zhai, Yuening Hu, Sinead Williamson, Jordan Boyd-Graber

TL;DR

This paper extends the Transformed Indian Buffet Process (tIBP) to handle real-valued color images by introducing two new likelihood models: one additive and one that accounts for object occlusion. Crucially, the authors overcome the severe computational bottleneck of previous approaches by using classical image cross-correlation to drive a highly efficient inference algorithm.

What Problem Does This Paper Address?

When humans look at a series of images, we easily recognize the same object even if it moves, changes size, or gets partially hidden behind something else. Standard latent feature models, like the Indian Buffet Process (IBP), struggle with this because they assume a feature must look identical every time it appears. If a ball rolls across the screen, a naive model treats the ball at position A and the ball at position B as two completely separate features.

The Transformed Indian Buffet Process (tIBP) was invented to solve this by allowing features to undergo transformations (like translation, rotation, and scaling). However, early versions of tIBP were limited to binary (black-and-white) images and were computationally crushing. To find where an object was, the algorithm had to explicitly calculate the likelihood of every possible transformation for every single feature—a brute-force approach that makes analyzing real-world video or large images impossible.

Methods

The authors introduce two new formulations of the tIBP designed for real-valued, multi-channel (RGB) images:

  1. Linear Gaussian tIBP (LG-tIBP): Features are real-valued vectors combined additively with Gaussian noise.
  2. Masked tIBP (M-tIBP): A more realistic model for vision that accounts for occlusion. Features consist of both a color profile and a shape mask. Features are arranged in a layered ordering (like layers in Photoshop or "sprites" in video games); the final color of a pixel is determined solely by the uppermost unmasked feature.
Figure 1. Generative process of the linear Gaussian IBP (IBP), the linear Gaussian tIBP (LG-tIBP) and the masked tIBP (M-tIBP). All models share features ak across the dataset, and observation- specific indicators znk determine which features contribute to a data point xn. In the tIBP models, transformations rnk change where features appear in the observation. In the IBP and LG-tIBP, features are combined additively. In the M-tIBP, only one feature contributes to each pixel of a final image. Together, a global ordering ω over features and a local binary mask sn,k determine which feature is responsible for the appearance of a given pixel.

To make inference scalable, they replace the standard, slow Gibbs sampling approach with a Metropolis-Hastings (MH) step. Instead of guessing transformations blindly, they use cross-correlation (via the Fast Fourier Transform) between the current feature and the image residual to create a data-driven proposal distribution. This instantly highlights the most plausible locations and orientations for a feature.

Figure 2. We use cross-correlation as our proposal distribution for the per-image, per-feature translation r. Here, we propose a translation rnk of a feature ak that best explains the residual ˜xn,k. Note that rnk need not lie within the boundaries of the image, so the borders for ak and ˜xn,k indicate the range of possible rnk.

Datasets

The models were evaluated on both synthetic and real-world datasets:

  • Synthetic Data: $9 \times 9$ and $15 \times 15$ pixel images containing four colorful shapes ("T", ">", "u", "×") subjected to translation, rotation, and scaling.
  • Donkey Kong (DNK): 171 screenshots from the 1981 arcade game, featuring static backgrounds and moving sprites (Mario, fireballs).
  • Super Mario Bros (SMB): 200 screenshots from the 1985 NES game, featuring a dynamic side-scrolling background.
  • Traffic (TFC): 186 frames from a real-world intersection traffic camera.
  • Walker (WLK): 226 frames of pedestrians walking through a shopping center in Lisbon.

Key Insights and Ideas

  • Bridging Classical CV and Bayesian Nonparametrics: The "aha moment" of the paper is realizing that cross-correlation—a classical, deterministic computer vision technique for pattern matching—can be used to construct a highly effective proposal distribution within a probabilistic framework.
  • Occlusion Matters for Unsupervised Learning: Additive models (like LG-tIBP) fail when objects overlap because they try to blend colors together. By explicitly modeling occlusion layers (M-tIBP), the model naturally learns cleaner, more distinct object boundaries without any human supervision.

Key Results

  • Massive Speedups: The cross-correlation MH sampler achieves a massive theoretical and practical speedup over standard Gibbs sampling. As shown in the training likelihood curves, the proposed method converges in a tiny fraction of the CPU time required by the baseline.
Figure 4. A run-time and likelihood comparison of using a Metropolis Hastings sampling of R and Z vs. Gibbs Sampling of R and Z. MH9 and Gibbs9 used a synthetic dataset with 9 by 9 pixel images, while MH15 and Gibbs15 used 15 by 15 pixels.
  • Superior Reconstruction: Both LG-tIBP and M-tIBP successfully discover underlying features and generalize across transformations, significantly outperforming standard IBP. On complex datasets like Super Mario Bros, M-tIBP successfully isolates distinct elements like the "100 points" text popup and individual background blocks.
Figure 5. Evaluation of LG-tIBP and M-tIBP on synthetic data (image size 15 × 15) with translation, rotation and scaling.

Limitations and Future Work

  • Single Instance Constraint: The current tIBP framework assumes a feature can only appear once per image. In a real scene (e.g., a crowd of people or multiple fireballs), the same feature needs to be instantiated multiple times. The authors suggest extending this using an infinite gamma-Poisson process.
  • Temporal Independence: The model treats each image frame as independent. For video data, incorporating temporal correlation (knowing that Mario's position in frame $t$ is highly correlated with his position in frame $t-1$) would drastically improve tracking and further optimize the search space.

Summary updated

BibTeX
@inproceedings{zhai2012modeling,
  author = {Ke Zhai and Yuening Hu and Sinead Williamson and Jordan Boyd-Graber},
  title = {{Modeling Images using Transformed Indian Buffet Processes}},
  booktitle = {International Conference on Machine Learning},
  year = {2012},
}
Figure