SetVAE: Learning Hierarchical Composition for Generative Modeling of Set-Structured Data

Jinwoo Kim, Jaehoon Yoo, Juho Lee, Seunghoon Hong

Abstract

Generative modeling of set-structured data, such as point clouds, requires reasoning over local and global structures at various scales. However, adopting multi-scale frameworks for ordinary sequential data to a set-structured data is nontrivial as it should be invariant to the permutation of its elements. In this paper, we propose SetVAE, a hierarchical variational autoencoder for sets. Motivated by recent progress in set encoding, we build SetVAE upon attentive modules that first partition the set and project the partition back to the original cardinality. Exploiting this module, our hierarchical VAE learns latent variables at multiple scales, capturing coarse-to-fine dependency of the set elements while achieving permutation invariance. We evaluate our model on point cloud generation task and achieve competitive performance to the prior arts with substantially smaller model capacity. We qualitatively demonstrate that our model generalizes to unseen set sizes and learns interesting subset relations without supervision.

Introduction

Many real-world data types are naturally represented as "sets"—unordered collections of items where the spatial or logical relationship between elements defines the object. Examples include 3D point clouds from LiDAR scans or collections of bounding boxes in a scene. Modeling these sets presents two primary challenges: exchangeability (the model must be invariant to the order of elements) and variable cardinality (the ability to handle sets of varying sizes).

While hierarchical models have been highly successful in domains like image generation for capturing multi-scale details, adapting them to sets is difficult. Existing methods often either treat elements independently, losing global context, or rely on fixed-size representations that do not scale. SetVAE addresses these issues by introducing a hierarchical architecture that captures coarse-to-fine dependencies while maintaining strict permutation invariance.

Methodology: Attentive Bottleneck Layers

The core innovation of SetVAE is the Attentive Bottleneck Layer (ABL), which builds upon the Set Transformer architecture. In a standard VAE, an input is compressed into a single latent vector. SetVAE instead uses Induced Set Attention Blocks (ISAB) to project the input set into a smaller "bottleneck" set of "inducing points." This bottleneck serves as a deterministic, permutation-invariant encoding of the data.

The architecture follows a hierarchical structure:

  1. Bottom-Up Encoder: Progressively projects the input set into smaller cardinalities to capture increasingly global structures.
  2. Top-Down Generator: Samples latent variables at each level of the hierarchy. These variables condition the set as it is "re-expanded" back to its original cardinality.

Because the entire pipeline is constructed using attention mechanisms that do not rely on element ordering, the model is naturally exchangeable and permutation equivariant.

Hierarchical decomposition of point clouds across three levels, showing how SetVAE captures coarse-to-fine structures.

Experimental Evaluation

SetVAE was evaluated on several benchmarks, including ShapeNet (Airplane, Chair, and Car categories), Set-MNIST, and SUN-RGBD.

Performance and Efficiency

SetVAE achieves competitive or superior results compared to state-of-the-art models like PointFlow. Notably, it does so with a significantly smaller footprint, often requiring only 8% to 45% of the parameters used by competing models. Furthermore, SetVAE is approximately 68x faster at inference than flow-based models because it generates sets in a single pass, avoiding the computationally expensive ODE solvers required by PointFlow.

Qualitative comparison of point cloud generation between SetVAE and PointFlow across Airplane, Chair, and Car categories.

Key Insights

Cardinality Disentanglement

A significant advantage of SetVAE is its ability to separate the underlying structure of an object from the number of points used to represent it. The model can be trained on sets of 2,048 points and then used at inference to generate sets of 10,000 points. The resulting output maintains the global shape while providing a much higher density of points, demonstrating robust generalization to unseen set sizes.

Unsupervised Semantic Discovery

The hierarchical structure allows the model to learn meaningful sub-structures without explicit supervision. As shown in Figure 1, lower levels of the hierarchy focus on global positioning and general "blobs," while higher levels refine specific details such as engines, wings, or chair legs.

Conclusion and Future Work

SetVAE provides an efficient and scalable framework for generative modeling of set-structured data. By combining hierarchical VAEs with attentive bottlenecks, it achieves state-of-the-art performance with reduced complexity. While the current implementation uses Chamfer Distance as a proxy loss, future work could explore more theoretically grounded probabilistic measures or extend the architecture to handle high-dimensional per-element features like textures and complex scene graphs.

Summary updated

BibTeX
@inproceedings{kim2021setvae,
  author = {Jinwoo Kim and Jaehoon Yoo and Juho Lee and Seunghoon Hong},
  title = {{SetVAE: Learning Hierarchical Composition for Generative Modeling of Set-Structured Data}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  url = {https://openreview.net/forum?id=oeHSxKkr2F},
}
Figure