Skip to main content
QUICK REVIEW

[Paper Review] Learning Generative Models with Visual Attention

Yichuan Tang, Nitish Srivastava|arXiv (Cornell University)|Dec 20, 2013
Generative Adversarial Networks and Image SynthesisComputer Science32 references86 citations
TL;DR

This paper proposes an attention-based deep generative model that learns to localize and generate facial images from large, uncurated scenes without manual cropping. By combining convolutional neural networks for approximate inference with Hamiltonian Monte Carlo sampling, the model dynamically attends to object regions, achieving state-of-the-art generative performance on face datasets even when training data lacks localization labels.

ABSTRACT

Attention has long been proposed by psychologists as important for effectively dealing with the enormous sensory stimulus available in the neocortex. Inspired by the visual attention models in computational neuroscience and the need of object-centric data for generative models, we describe for generative learning framework using attentional mechanisms. Attentional mechanisms can propagate signals from region of interest in a scene to an aligned canonical representation, where generative modeling takes place. By ignoring background clutter, generative models can concentrate their resources on the object of interest. Our model is a proper graphical model where the 2D Similarity transformation is a part of the top-down process. A ConvNet is employed to provide good initializations during posterior inference which is based on Hamiltonian Monte Carlo. Upon learning images of faces, our model can robustly attend to face regions of novel test subjects. More importantly, our model can learn generative models of new faces from a novel dataset of large images where the face locations are not known.

Motivation & Objective

  • Address the challenge of training generative models on large, uncurated images where object locations are unknown.
  • Enable object-centered generative modeling by dynamically routing relevant visual features to a canonical representation.
  • Overcome limitations of traditional generative models that require curated, cropped data for high-quality learning.
  • Integrate attention mechanisms inspired by visual neuroscience to improve robustness to background clutter and occlusions.
  • Demonstrate the feasibility of end-to-end learning of generative models from raw, large-scale images using weak supervision or no labels.

Proposed method

  • Use a Gaussian Restricted Boltzmann Machine (GRBM) as the core generative model to capture complex data distributions in visible units.
  • Implement a 2D similarity transformation (scaling, rotation, translation) to align region-of-interest features to a canonical object representation.
  • Train a convolutional neural network (ConvNet) to provide initializations for posterior inference, estimating the attention location (u) in the image.
  • Apply Hamiltonian Monte Carlo (HMC) sampling to explore the complex posterior distribution over attention locations and hidden variables.
  • Use a two-stage training process: pre-train the ConvNet on labeled data (e.g., 10% of CMU faces), then fine-tune the generative model using inferred attention locations.
  • Leverage variational lower bounds and Annealed Importance Sampling (AIS) to estimate model log-likelihood and evaluate performance.

Experimental results

Research questions

  • RQ1Can an attention mechanism enable deep generative models to learn from large, uncurated images without manual object localization?
  • RQ2How effective is a hybrid approach combining ConvNets for inference and HMC for sampling in modeling complex posterior distributions?
  • RQ3To what extent can a generative model trained on one dataset (e.g., Caltech) generalize to a different dataset (e.g., CMU) when object locations are unknown?
  • RQ4Does conditioning the attention mechanism on a canonical object representation improve localization accuracy and generative quality?
  • RQ5Can the model robustly attend to multiple faces in a single image when the canonical face is varied?

Key findings

  • The model achieves a variational lower-bound of 387 nats per test image on the CMU validation set when trained using inferred attention locations without manual labels—up from 85 nats when trained only on Caltech data.
  • With full supervision (manual localization labels), the model reaches 503 nats per image, demonstrating the potential of weakly supervised learning to approach fully supervised performance.
  • Samples generated after fine-tuning on CMU data show significantly greater diversity and realism compared to those from the Caltech-only model.
  • The attention mechanism successfully shifts focus to different faces in a scene depending on the conditioned canonical face, even with identical initial gaze positions.
  • The model robustly localizes faces in novel test images, including those with complex backgrounds and occlusions, without requiring prior cropping.
  • The combination of ConvNet-based approximate inference and HMC sampling enables effective exploration of the high-dimensional posterior, leading to stable and high-quality generative results.

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.