NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

FineGAN: Unsupervised Hierarchical Disentanglement for Fine-Grained Object Generation and Discovery

Krishna Kumar Singh, Utkarsh Ojha, Yong Jae Lee

Abstract

We propose FineGAN, a novel unsupervised GAN framework, which disentangles the background, object shape, and object appearance to hierarchically generate images of fine-grained object categories. To disentangle the factors without supervision, our key idea is to use information theory to associate each factor to a latent code, and to condition the relationships between the codes in a specific way to induce the desired hierarchy. Through extensive experiments, we show that FineGAN achieves the desired disentanglement to generate realistic and diverse images belonging to fine-grained classes of birds, dogs, and cars. Using FineGAN's automatically learned features, we also cluster real images as a first attempt at solving the novel problem of unsupervised fine-grained object category discovery.

Introduction

Fine-grained object recognition—distinguishing between highly similar categories such as specific bird species—is a challenging task that traditionally necessitates large-scale datasets annotated by domain experts. The cost of such expertise creates a significant bottleneck for scaling training data. While unsupervised methods have succeeded in separating broad categories (e.g., cars vs. dogs), discovering fine-grained categories without labels is significantly more difficult because objects share similar global structures and backgrounds, differing only in subtle details.

Fine-grained categories often share similar shapes but differ in minute details, making unsupervised discovery challenging.

FineGAN addresses this by hypothesizing that a generative model capable of hierarchically decomposing an image into background, shape, and appearance can learn internal features suitable for clustering real images into fine-grained categories without human supervision.

Methods

FineGAN employs a three-stage hierarchical pipeline to generate images, disentangling visual factors through specific latent codes:

  1. Background Stage: A latent background code conditions the generation of a background canvas, trained using patches from outside real-image bounding boxes.
  2. Parent Stage (Shape): A "parent" latent code generates a hollow object shape (foreground mask and textureless object), which is then integrated with the background.
  3. Child Stage (Appearance): A "child" latent code fills the generated shape with specific colors and textures.
FineGAN's hierarchical generation process: background, parent (shape), and child (appearance) codes are disentangled to build the final image.

To enforce this hierarchy without labels, FineGAN leverages information theory by maximizing mutual information between latent codes and generated images. Crucially, a bottleneck is introduced: the number of parent codes is smaller than child codes, and multiple child codes are tied to a single parent. This forces the parent code to capture broad structural features (shape) shared across sub-categories, while the child code captures the differentiating fine-grained details (texture).

Unsupervised Discovery

Once trained, the GAN's synthetic images serve as a training set for a feature-extractor network. This network learns to predict the parent and child codes from synthetic data. Real images are then passed through this extractor, and the resulting features are used for k-means clustering to discover fine-grained categories.

Results and Insights

FineGAN was evaluated on the CUB (birds), Stanford Dogs, and Stanford Cars datasets.

Image Generation Quality: FineGAN achieved state-of-the-art results in unconditional generation. On the CUB dataset, it reached an Inception Score (IS) of 52.53 and a Frechet Inception Distance (FID) of 11.25, outperforming baselines like InfoGAN and StackGAN-v2.

Unsupervised Clustering: The model significantly outperformed existing deep clustering methods. On CUB, it achieved a Normalized Mutual Information (NMI) of 0.403, compared to 0.290 for the previous best baseline (DEPICT).

Disentanglement and Mix-and-Match: Qualitative results demonstrate successful disentanglement. Swapping latent codes during inference allows for novel combinations, such as applying one bird's texture to another's shape. The use of automatically generated foreground masks prevents background bias, ensuring the model focuses on the object itself.

Discussion and Limitations

While FineGAN represents a major step forward, several challenges remain. The number of parent and child codes must be pre-specified, which is difficult when the true number of categories is unknown. Additionally, unsupervised clustering sometimes aligns with visually dominant features (like car color) rather than human-defined semantic categories (like car model). Finally, while the performance gap between unsupervised and supervised methods has narrowed, it remains substantial. Future work may focus on removing the reliance on bounding boxes by approximating backgrounds from image borders.

Summary updated

BibTeX
@inproceedings{singh2019finegan,
  author = {Krishna Kumar Singh and Utkarsh Ojha and Yong Jae Lee},
  title = {{FineGAN: Unsupervised Hierarchical Disentanglement for Fine-Grained Object Generation and Discovery}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2019},
  url = {https://openreview.net/forum?id=iKhLzcxBktN},
}
Figure