Skip to main content
QUICK REVIEW

[Paper Review] Controlling Structured Output Representations from Attributes using Conditional Generative Models

Mohamed Debbagh|arXiv (Cornell University)|Apr 30, 2023
Generative Adversarial Networks and Image SynthesisComputer Science5 citations
TL;DR

This paper proposes a Conditional Variational Auto-encoder (CVAE) framework for controlled image generation from attribute inputs, leveraging disentangled latent representations to produce diverse, structured outputs. By conditioning on one-hot-encoded attributes and optimizing a weighted variational lower bound, the model achieves improved sample quality and disentanglement, especially at higher regularization weights (β = 0.9), though challenges remain in capturing high-frequency details in sparse datasets.

ABSTRACT

Structured output representation is a generative task explored in computer vision that often times requires the mapping of low dimensional features to high dimensional structured outputs. Losses in complex spatial information in deterministic approaches such as Convolutional Neural Networks (CNN) lead to uncertainties and ambiguous structures within a single output representation. A probabilistic approach through deep Conditional Generative Models (CGM) is presented by Sohn et al. in which a particular model known as the Conditional Variational Auto-encoder (CVAE) is introduced and explored. While the original paper focuses on the task of image segmentation, this paper adopts the CVAE framework for the task of controlled output representation through attributes. This approach allows us to learn a disentangled multimodal prior distribution, resulting in more controlled and robust approach to sample generation. In this work we recreate the CVAE architecture and train it on images conditioned on various attributes obtained from two image datasets; the Large-scale CelebFaces Attributes (CelebA) dataset and the Caltech-UCSD Birds (CUB-200-2011) dataset. We attempt to generate new faces with distinct attributes such as hair color and glasses, as well as different bird species samples with various attributes. We further introduce strategies for improving generalized sample generation by applying a weighted term to the variational lower bound.

Motivation & Objective

  • To develop a conditional generative model that enables controlled, disentangled image synthesis from attribute inputs rather than raw images.
  • To address the ambiguity and blurriness in deterministic models like CNNs by introducing a probabilistic approach using deep conditional generative models.
  • To improve generalization in image synthesis by modulating the trade-off between reconstruction and regularization in the variational lower bound.
  • To evaluate the model’s performance on two diverse datasets—CelebA (faces with 40 attributes) and CUB-200-2011 (bird species with attributes)—under varying training conditions.
  • To investigate the impact of the β-weighted loss term on sample quality, disentanglement, and structural fidelity in generated images.

Proposed method

  • The model employs a Conditional Variational Auto-encoder (CVAE) architecture that conditions the prior distribution of the latent space on one-hot-encoded attribute vectors.
  • The recognition model is trained to infer the posterior distribution of the latent code given both the input image and its corresponding attributes.
  • A weighted variational lower bound is used, where the regularization term (KL divergence) is scaled by a hyperparameter β to balance reconstruction accuracy and latent space regularization.
  • The generator network decodes the sampled latent code along with the attribute condition to produce high-dimensional, structured image outputs.
  • The model is trained on two datasets: CelebA (40 facial attributes) and CUB-200-2011 (200 bird species with descriptive attributes), using supervised attribute labels.
  • Training involves optimizing the evidence lower bound (ELBO) with a β-weighted reconstruction and KL loss to encourage disentangled and diverse generation.

Experimental results

Research questions

  • RQ1How does conditioning the CVAE on attribute vectors rather than input images affect the quality and controllability of generated images?
  • RQ2What is the impact of varying the β-hyperparameter in the variational lower bound on reconstruction accuracy and sample diversity?
  • RQ3Can the CVAE framework generate disentangled, semantically meaningful image variations for the same attribute condition across different datasets?
  • RQ4How do high-frequency details and structural clarity in generated images vary with different β values, especially in low-data regimes?
  • RQ5To what extent can the model generalize to unseen attribute combinations or rare attribute combinations not fully represented in the training data?

Key findings

  • The model trained with β = 0.9 achieved the highest sample quality and structural clarity, producing smoother, more realistic images with fewer artifacts, despite slightly higher reconstruction error.
  • At β = 0.25, the model achieved the lowest mean squared error (70,444 on CelebA), indicating strong reconstruction, but generated unrealistic, blurry, and ambiguous samples during generation.
  • The CVAE successfully generated diverse, attribute-controlled face samples on CelebA, including variations in hair color, glasses, and facial expressions, with consistent attribute alignment.
  • On the CUB-200-2011 dataset, the model captured general color and structural attributes of bird species, though high-frequency details remained underdeveloped, especially at low β values.
  • Increasing β improved generalization by reducing overfitting to training data structures, favoring a more regularized latent space that supports diverse sampling.
  • The qualitative results show that higher β values lead to more natural and structurally coherent samples, confirming that the primary goal of image synthesis is better served by regularization than by exact reconstruction.

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.