Skip to main content
QUICK REVIEW

[Paper Review] Unsupervised and interpretable scene discovery with Discrete-Attend-Infer-Repeat

Duo Wang, Mateja Jamnik|arXiv (Cornell University)|Mar 14, 2019
Advanced Image and Video Retrieval TechniquesComputer Science21 references3 citations
TL;DR

This paper proposes Discrete-Attend-Infer-Repeat (Discrete-AIR), an end-to-end trainable variational autoencoder that disentangles scene representations into interpretable discrete categorical (category), continuous attribute, and spatial attention variables. It achieves state-of-the-art unsupervised scene discovery on Multi-MNIST and Multi-Sprites datasets with a single categorical latent variable and high correspondence accuracy (0.871) while enabling controlled generation of objects with disentangled attributes.

ABSTRACT

In this work we present Discrete Attend Infer Repeat (Discrete-AIR), a Recurrent Auto-Encoder with structured latent distributions containing discrete categorical distributions, continuous attribute distributions, and factorised spatial attention. While inspired by the original AIR model andretaining AIR model's capability in identifying objects in an image, Discrete-AIR provides direct interpretability of the latent codes. We show that for Multi-MNIST and a multiple-objects version of dSprites dataset, the Discrete-AIR model needs just one categorical latent variable, one attribute variable (for Multi-MNIST only), together with spatial attention variables, for efficient inference. We perform analysis to show that the learnt categorical distributions effectively capture the categories of objects in the scene for Multi-MNIST and for Multi-Sprites.

Motivation & Objective

  • To develop an unsupervised, interpretable scene discovery model that disentangles object categories and attributes from spatial features.
  • To extend the Attend-Infer-Repeat (AIR) model by replacing the entangled continuous latent code with a structured, interpretable latent space containing discrete categories and continuous attributes.
  • To enable end-to-end training without relying on pre-defined graphics engines or hand-designed decoders.
  • To demonstrate effective disentanglement and generation on multi-object datasets such as Multi-MNIST and Multi-Sprites.
  • To provide a foundation for downstream tasks like visual reasoning and symbolic VQA by learning disentangled, symbolic representations from unlabeled data.

Proposed method

  • Discrete-AIR uses a recurrent variational autoencoder with a structured latent distribution composed of a discrete categorical variable $ z_{cat} $, a continuous attribute variable $ z_{attr} $, and spatial attention parameters $ z_{where} $.
  • The model employs an amortized inference network $ q_{\phi}(z|x) $ to infer the latent codes, with $ z_{pres} $ indicating object presence at each time step.
  • The generative model samples $ z_{cat} $, $ z_{attr} $, and $ z_{where} $ from standard normal priors and generates objects using a differentiable decoder.
  • Disentanglement is encouraged through architectural inductive bias rather than additional objectives like mutual information.
  • The model uses the standard Variational Lower Bound (ELBO) objective for training, with attention mechanisms guiding the recurrent inference over image regions.
  • Object generation proceeds iteratively: at each step, the model attends to a region, infers object category and attributes, and generates the corresponding object.

Experimental results

Research questions

  • RQ1Can a fully differentiable, end-to-end trainable autoencoder disentangle object categories and attributes in multi-object scenes without relying on pre-defined graphics engines?
  • RQ2Does structuring the latent space into discrete categories and continuous attributes improve interpretability while maintaining reconstruction quality?
  • RQ3Can Discrete-AIR achieve competitive performance in object count and category correspondence compared to the original AIR model?
  • RQ4To what extent can the learned attribute variables capture non-affine visual properties, such as shape details like hook size in digits?
  • RQ5Can the model be used as a pre-training method to reduce reliance on labeled data in downstream visual reasoning tasks?

Key findings

  • Discrete-AIR achieves a category correspondence rate of 0.871 on the Multi-MNIST dataset, demonstrating effective discovery of object categories in unsupervised settings.
  • The model achieves a mean squared error (MSE) of 0.134 on Multi-MNIST, comparable to the original AIR model (0.107), indicating strong reconstruction performance.
  • Count accuracy reaches 0.984, showing that Discrete-AIR can accurately infer the number of objects in a scene, matching the performance of the original AIR model.
  • The attribute variable $ z_{attr} $ captures non-affine visual properties such as the size of the hook in digit '5', which cannot be modeled by spatial transformations alone.
  • Generated images show controlled, disentangled manipulation of category and attribute variables, confirming that $ z_{cat} $ and $ z_{attr} $ encode distinct, interpretable factors.
  • The model successfully disentangles object representations across multiple objects in scenes, as shown in qualitative generation samples on both Multi-MNIST and Multi-Sprites datasets.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.