Generative Modeling of Infinite Occluded Objects for Compositional Scene Representation

Jinyang Yuan, Bin Li, Xiangyang Xue

Humans possess an innate ability to look at a chaotic visual scene and instantly parse it into distinct, conceptual entities—even when those objects overlap and partially hide one another. In AI, this is known as the perceptual grouping problem.

While recent deep generative models like Neural Expectation Maximization (N-EM) and Attend-Infer-Repeat (AIR) have made strides in unsupervised scene decomposition, they struggle with static images containing overlapping objects. N-EM entangles object properties (making it hard to generalize) and cannot dynamically determine the number of objects. AIR can count objects but fails to output pixel-level segmentations and degrades significantly when objects occlude one another.

This paper bridges that gap by proposing a deep generative model that learns compositional scene representations from static images without supervision, explicitly accounting for object occlusions. By disentangling object properties and using an infinite-dimensional latent space, the model can automatically determine the number of objects, segment them at the pixel level, and accurately infer the shapes of occluded regions.

Methodology

The authors propose a deep generative model trained via variational inference that introduces several key innovations:

  • Disentangled Representations: Instead of a single complex vector for an object, the model uses separate latent variables for an object's location/size, shape, and appearance.
  • Infinite Capacity via Indian Buffet Process: To handle an unknown number of objects per scene, the model uses an infinite-dimensional binary vector based on a stick-breaking construction (a technique from Bayesian non-parametrics). This allows the model to dynamically infer how many objects are actually present.
  • Explicit Occlusion Modeling: The generative process explicitly models depth ordering. It generates a binary mask for each object and stacks them. When rendering the final image, only the "forefront" object at any given pixel contributes to the visual output.
  • Sequential Inference: Inspired by the psychological Feature Integration Theory (which suggests humans attend to locations sequentially), the model uses Long Short-Term Memory (LSTM) networks to infer objects one by one. This approximates coordinate ascent for variational inference, stabilizing the learning process.
Comparison of scene representation approaches: N-EM, AIR, and the Proposed method handling a visual scene with occlusions.

Datasets

The model is evaluated on a series of custom 48x48 multi-object datasets derived from publicly released datasets. These include Shapes (images containing 2 to 4 hollow geometric shapes) and MNIST (images containing 2 to 4 handwritten digits). The datasets are split into grayscale and various RGB colored versions to test the model's robustness to varying background and object colors.

Key Insights

  • "Imagining" the Unseen: By forcing the generative model to explicitly compute which object is in front, the model naturally learns to infer the hidden, occluded parts of background objects. It understands that a shape continues to exist even if it is visually blocked.
  • Disentanglement Aids Generalization: Separating shape from appearance allows the model to recognize a shape even if it appears in a novel color or texture. This makes the learned representations highly reusable for novel scenes.
  • Structure is Crucial for Static Scenes: Previous models relied heavily on motion (video) to figure out occlusions. This paper proves that with a strict enough structural prior (explicit depth ordering and disentanglement), models can successfully parse occlusions from single, static frames.

Results and Limitations

The proposed method was evaluated against N-EM and AIR using Adjusted Mutual Information (AMI) for segmentation, Mean Squared Error (MSE) for reconstruction, and Object Counting Accuracy (OCA).

Superiority in Occluded Scenes: The proposed method significantly outperforms baselines when objects overlap. For example, on the RGB1-Shapes dataset with occlusions, it achieved an AMI of 98.3% (vs. AIR's 95.3% and N-EM's 81.8%) and an OCA of 95.1% (vs. AIR's 88.8% and N-EM's 74.2%). Because it explicitly models occlusion, the model successfully estimates the relative depth/order of objects, achieving up to 95.3% Object Ordering Accuracy on simple shape datasets. Qualitatively, the pixel-level segmentations produced are noticeably sharper than N-EM, directly resulting from the disentangled shape and appearance representations.

Limitations: While highly effective on geometric shapes, the model's counting and ordering performance degrades on highly complex, heavily occluded objects (like overlapping MNIST digits). Because handwritten digits exhibit high structural variance, it is exceedingly difficult for the model to accurately guess the occluded parts using normal distributions alone.

For future work, the authors suggest integrating stronger prior knowledge—such as Learnable Deep Priors (LDP)—to capture more sophisticated spatial dependencies. This would help the model scale to complex, real-world scenes where object shapes are highly irregular.

Summary updated

BibTeX
@inproceedings{yuan2019generative,
  author = {Jinyang Yuan and Bin Li and Xiangyang Xue},
  title = {{Generative Modeling of Infinite Occluded Objects for Compositional Scene Representation}},
  booktitle = {International Conference on Machine Learning},
  year = {2019},
}
Figure