Source-linked AI summary

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

Jinwoo Kim, Jaehoon Yoo, Juho Lee, Seunghoon Hong

arXiv:2103.15619v1cs.LGcs.CV

TL;DR

Set generation must respect element order invariance and variable cardinality while capturing structure across scales. SetVAE uses attentive modules and hierarchical latent sets to model coarse-to-fine dependencies. It reports competitive or better performance with less than half the parameters of prior arts, alongside generalization to unseen cardinalities.

  • Problem

    Set generative modeling must handle exchangeability and variable cardinality, while ordinary sequence or image operations can rely on ordering that breaks exchangeability.

    Source: §1 · p. 1
  • Method

    SetVAE is a hierarchical VAE that uses attentive bottlenecks and latent sets to model coarse-to-fine dependencies while preserving set permutation properties.

    Source: §1 · p. 2, §2.2 · p. 3
  • Results

    With less than 50% of prior-art parameters, SetVAE performs competitively or better.

    Source: §4.1 · p. 5
  • Takeaways & Limitations

    Its hierarchical latent sets capture coarse-to-fine subset structure, and the model generalizes to arbitrary cardinalities unseen during training.

    Source: §1 · p. 2

    The model assumes a decoder equivariant to permutations of initial latents and invariant to higher-level latents, and approximate posteriors invariant to input permutations.

    Source: §3 · p. 4

Abstract

from arXiv · show

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. Our implementation is available at https://github.com/jw9730/setvae.

1. Introduction

Set generative models must handle exchangeability and variable cardinality, while representing interactions and subset structure. SetVAE uses hierarchical latent sets and attentive bottlenecks to model coarse-to-fine dependencies, and reports competitive or better generation quality with fewer parameters.

1. Introduction

  • The model is designed to preserve exchangeability and handle variable cardinality, requirements that make direct adaptation of sequence or image models nontrivial.Ordering assumptions can break exchangeability and may impose an unnecessary inductive bias that harms generalization.Source: §1 · p. 1
  • Existing set generators can limit element interactions, impose cardinality bounds, require heavy computation, or rely on single-level representations that are less effective at capturing subset structure.The paper motivates hierarchical latent representations for sets containing multiple sub-objects or parts.Source: §1 · pp. 1–2
  • SetVAE combines a hierarchical VAE with attention-based set modeling and latent variables organized to capture coarse-to-fine dependencies.Its Attentive Bottleneck Layers model dependencies across an arbitrary number of set elements.Source: §1 · p. 2
  • SetVAE is presented as a hierarchical VAE for exchangeable sets with varying cardinality, a combination the authors describe as previously unattained by a VAE.The authors state that, to their knowledge, it is the first VAE successfully applied to sets of arbitrary cardinality.Source: §1 · p. 2
  • SetVAE achieves better or competitive point-cloud generation quality with fewer parameters than previous works.The evaluation includes quantitative and qualitative results across various datasets.Source: §1 · p. 2

2. Preliminaries

The preliminaries describe set generation through permutation-equivariant mappings and set encoding through attention modules. These constructions preserve the relevant permutation properties while allowing interactions among elements and a lower-cardinality intermediate representation.

2.1. Permutation-Equivariant Set Generation

  • Permutation invariance leaves a function's output unchanged under input reordering, whereas permutation equivariance reorders the output in the same way.For a set distribution, exchangeability means its joint distribution is invariant to element permutations.Source: §2.1 · p. 2
  • With i.i.d. initial elements, an elementwise mapping yields exchangeable generation, but assuming elementwise independence limits modeling interactions among set elements.The alternative described is to map the initial set with a permutation-equivariant function.Source: §2.1 · p. 2

2.2. Permutation-Equivariant Set Encoding

  • MAB attends between query and value sets, with an output equivariant to queries and invariant to values.The block also applies feedforward, multi-head attention, and layer normalization operations.Source: §2.2 · p. 3
  • ISAB uses inducing points to project an input set to a lower-cardinality, permutation-invariant intermediate set, then maps back to an equivariant output with the original cardinality.This two-stage attention construction is permutation equivariant to the input set.Source: §2.2 · p. 3

3. Variational Autoencoders for Sets

The section extends the VAE objective to sets that may have arbitrary cardinality while requiring permutation invariance. It then introduces hierarchical latent variables to represent set structure at multiple levels.

3. Variational Autoencoders for Sets

  • The set VAE objective must model arbitrary cardinality and remain invariant to element permutation.The variational objective uses an inference model to approximate the unknown posterior and optimize an ELBO of the marginal likelihood.Source: §3 · p. 3
  • SetVAE separates a set-sized initial latent set from another latent variable, then transforms the initial set into data conditioned on that variable.The initial set has the same cardinality as the data, and its prior models cardinality using the training data’s empirical distribution.Source: §3 · p. 3
  • The hierarchical model divides the latent variable into disjoint groups and introduces top-down dependencies between levels.These hierarchical latent variables extend the vanilla SetVAE to learn a more expressive latent structure.Source: §3 · p. 4
  • The model assumes the decoder is equivariant to the initial latent set and invariant to higher-level latents, while posterior distributions are invariant to the input permutation.For inference, it samples cardinality from the prior, then samples that number of initial elements independently.Source: §3 · pp. 3–4

4. SetVAE Framework

SetVAE combines a bottom-up encoder and top-down generator, with attentive bottleneck layers that project sets and incorporate latent variables. The hierarchy supports coarse-to-fine structure, and the paper reports competitive or better performance with fewer parameters than prior methods.

4. SetVAE Framework

  • The framework pairs a bottom-up encoder built from ISABs with a top-down generator built from Attentive Bottleneck Layers.The inference network merges bottom-up data information with top-down information from the generative prior.Source: §4 · p. 4
  • During generation, the model samples initial elements and latents from the prior, then samples subsequent latents layer by layer before decoding the final set elementwise.For inference, each layer’s latent is sampled from a posterior using the projected set and encoder representation.Source: §4 · p. 4

4.1. Analysis

  • Permutation-invariant projected sets provide invariant higher-level latents, while ISAB equivariance makes the decoder equivariant to the initial set and induces an exchangeable model.Figure 3 identifies the prior and posterior paths as Nprior and Npost, respectively.Source: §4.1 · pp. 4–5, Figure 3 · p. 5
  • With bottleneck cardinalities increasing across layers, SetVAE learns coarse-to-fine dependencies and performs competitively or better with less than 50% of prior arts’ parameters.The projection bottleneck is intended to expose subset dependencies such as object parts while reducing network size.Source: §4.1 · p. 5

4.2. Implementation Details

  • The initial-element distribution uses a K-component Gaussian mixture, which the authors report converges significantly faster than a unimodal Gaussian choice.The implementation section notes that comprehensive details are provided in the supplementary file.Source: §4.2 · p. 5
  • For point sets, the likelihood uses optimal matching, but the implementation uses Chamfer Distance as a scalable surrogate reconstruction loss.Direct matching requires O(n^3) computation, whereas Chamfer Distance requires O(n^2); the surrogate shares the matching distance’s optimum but is not itself a direct negative log-likelihood.Source: §4.2 · p. 5

5. Related Work

SetVAE is positioned against set-generation methods that either process elements independently or use single-level representations, limiting interactions or subset structure. It combines permutation-equivariant attention with hierarchical latent variables and is presented as applicable beyond point clouds.

Set generative modeling

  • TSPN uses ISABs to predict sets but cannot sample; SetVAE accesses projected sets directly, enabling variational inference and hierarchical multi-scale latents.TSPN uses pooling-based deterministic FSPool encoding for reconstruction.Source: §5 · p. 5
  • Elementwise-i.i.d. approaches can limit interaction modeling, whereas SetVAE uses permutation-equivariant ISAB attention and hierarchical latent dependencies.The comparison also notes that continuous normalizing flows require invertibility, which could further limit expressiveness.Source: §5 · pp. 5–6
  • SetVAE is presented as applicable to arbitrary set-structured data, demonstrated by generating scene layouts represented as object bounding boxes.Earlier approaches were described as specifically designed for data types such as point clouds.Source: §5 · p. 6

Hierarchical VAE

  • Image hierarchical VAEs organize latents as images at increasing resolutions, while SetVAE’s ABLs define latents at projected scales to preserve permutation equivariance.Source: §5 · p. 6

6. Experiments

Experiments evaluate SetVAE on point-cloud datasets against prior generative models and analyze cardinality, attention, latent factors, ablations, and bounding-box generation. The reported results show competitive generation quality with fewer parameters, alongside generalization to unseen set sizes and interpretable hierarchical structure.

6.1. Experimental Setup

  • Experiments use ShapeNet, Set-MNIST, and Set-MultiMNIST; ShapeNet comparisons cover airplane, chair, and car categories using MMD, COV, and 1-NNA.ShapeNet uses 2048 sampled surface points; Set-MultiMNIST contains two non-overlapping digits in 64 × 64 images.Source: §6.1 · pp. 6–7, §6.2 · p. 7

6.2. Comparison to Other Methods

  • SetVAE matches or outperforms prior models on point-cloud generation with 8% to 45% of competitors’ parameters, and runs 56× faster in training and 68× faster in testing than PointFlow.SetVAE often has a substantial MMD margin over PointFlow and comparable or better COV and 1-NNA; the reported runtime explanation is PointFlow’s costly ODE solver and larger parameter count.Source: §6.2 · p. 7

6.3. Internal Analysis

  • With hierarchical latents fixed, SetVAE preserves global structure as initial-set cardinality changes and generalizes between 100 and 10,000 points despite training at smaller sizes.ShapeNet training uses 2048 points and Set-MNIST training uses fewer than 250 points.Source: §6.3 · p. 7, Figure 5 · p. 7
  • At 100k points, SetVAE retains sharp structure, whereas PointFlow tends to produce noisy, blurry boundaries.The authors conjecture that modeling inter-element dependency accounts for SetVAE’s sharpness at extreme cardinality.Source: §6.3 · p. 7, Figure 6 · p. 7
  • Attention assignments reveal recurring semantic subsets, while attention across levels moves from coarse structures such as wings and wheels to finer detail.The authors conjecture that this coarse-to-fine dependency helps generate accurate structures at multiple granularities.Source: Figure 7 · p. 7, §6.3 · p. 8, Figure 8 · p. 8
  • In Set-MultiMNIST, lower generator layers contribute more to digit position, while higher layers contribute more to digit shape.Source: §6.3 · p. 8, Figure 9 · p. 8
  • The vanilla model performs much worse than full SetVAE; the authors conjecture that one latent is insufficient for complex digit variations and that a multimodal prior stabilizes attention training.Source: §6.3 · p. 8
  • On SUN-RGBD categorical bounding boxes, SetVAE generates plausible layouts combining discrete object categories with continuous spatial placements.Source: §6.3 · p. 8, Figure 10 · p. 8

7. Conclusion

SetVAE is a hierarchical VAE for sets of varying cardinality that uses a bottleneck equivariant layer to learn subset representations. The paper reports high-quality, diverse generation with fewer parameters, as well as cardinality disentanglement and generalization.

  • SetVAE is a hierarchical VAE for sets of varying cardinality, using a bottleneck equivariant layer to learn subset representations.Source: §7 · p. 8
  • Hierarchical subset reasoning lets SetVAE encode and generate sets in a coarse-to-fine manner.Source: §7 · p. 8
  • SetVAE generates high-quality, diverse sets with reduced parameters and achieves cardinality disentanglement and generalization.Source: §7 · p. 8

A. Implementation details

The appendix details the initial-set KL term and SetVAE’s implementation. It describes shared ABL parameters for generation and inference, Slot Attention in projection modules, and supplementary experiment details.

A.1. KL Divergence of Initial Set Distribution

  • The initial-set prior factors into cardinality and conditional distributions, while the approximate posterior fixes cardinality to the observed set size; the resulting KL term can be omitted from optimization.Source: §A.1 · p. 11

A.2. Implementation of SetVAE

  • ABL shares the parameters predicting Gaussian prior mean and scale across generation and inference, while inference adds posterior correction factors predicted from bottom-up encoding.Source: §A.2 · p. 11
  • Slot Attention replaces plain projection attention in ISAB and ABL; its normalization ensures each input element receives attention from at least one inducing point.The appendix reports distinct subset assignments and notes that SetVAE uses learnable queries without refinement steps.Source: §A.2 · p. 12

B. Experiment Details

  • Appendix B provides further experimental descriptions and results, explaining projection attention with single-head attention for simplicity.Source: B. Experiment Details · p. 12

B.1. ShapeNet Evaluation Metrics

The ShapeNet evaluation uses coverage, minimum matching distance, and 1-nearest-neighbor accuracy, with Chamfer and Earth Mover’s distances for point-cloud similarity. A separate Set-MultiMNIST protocol uses layer-wise classifiers to probe what latent variables encode.

B.1. ShapeNet Evaluation Metrics

  • COV measures reference-cloud coverage by generated nearest neighbors, MMD averages each reference cloud’s distance to its nearest generated neighbor, and 1-NNA assesses whether the distributions are identical.The evaluation also uses Chamfer Distance and Earth Mover’s Distance to measure similarity between point clouds.Source: §B.1 · p. 12

B.2. Hierarchical Disentanglement

  • Layer-wise LDA classifiers use posterior-sampled latent variables to predict digit identities and positions in a 4 × 4 grid, with training accuracy reported for each layer.The SetVAE is trained on Set-MultiMNIST training data, and the classifiers are trained using validation data.Source: §B.2 · p. 12

B.3. Ablation study

The ablation study compares SetVAE with a unimodal-prior variant and a non-hierarchical Vanilla SetVAE. It evaluates Set-MultiMNIST generation with FID on rendered binary images and includes loss-curve and sample comparisons.

Ablation study

  • The ablations compare the full SetVAE with a unimodal Gaussian initial prior and a Vanilla SetVAE using a single global latent variable.The unimodal baseline changes the initial element distribution from a mixture of Gaussians to a learnable diagonal-covariance Gaussian; Vanilla SetVAE removes the generator’s subset relation and uses a global prior.Source: §B.3 · p. 13

Evaluation metric

  • Generation quality on Set-MultiMNIST is measured by FID after rendering each set instance as a 64 × 64 binary image and extracting features with a VGG11 classifier.The VGG11 network is trained from scratch to classify 100 MultiMNIST labels.Source: §B.3 · p. 13

Ablation study

  • The supplementary ablation figures show training-loss curves and generated samples for SetVAE and its ablated versions on Set-MultiMNIST.The sample figure includes SetVAE and its ablated versions; the loss-curve figure compares multimodal and unimodal initial sets.Source: Figure 14 · p. 13, Figure 13 · p. 13

C. More Qualitative Results

The qualitative results show that SetVAE can preserve fine structure at extreme cardinalities, generalize to unseen cardinalities, and learn multilevel subset relations. Ablations and visualizations also highlight the role of the initial mixture prior and hierarchical subset reasoning.

Role of mixture initial set

  • The unimodal-prior baseline trains less stably than the 4-component-mixture SetVAE, and the authors conjecture that a flexible initial-set distribution cues stable subset representations.The mixture prior adds learnable mixture parameters, and the initial prior choice is described as flexible and orthogonal to the paper’s contribution.Source: C. More Qualitative Results · pp. 13–14

Ablation study

  • Vanilla SetVAE focuses on the left digit and fails to assign points evenly, supporting the authors’ conclusion that multilevel subset reasoning is essential for faithfully modeling complex sets such as Set-MultiMNIST.The unimodal sample shown is from a checkpoint taken before its training loss diverged.Source: C. More Qualitative Results · p. 14

Cardinality disentanglement

  • SetVAE generalizes to unseen cardinalities while disentangling set cardinality from other generative factors, including when the initial-set cardinality is increased with hierarchical latents fixed.The supplementary examples extend this result to cardinality 100k.Source: C. More Qualitative Results · p. 14

Cardinality generalization

  • SetVAE retains fine structure at cardinality 100k, whereas PointFlow exhibits degradation and blurring of fine details as cardinality varies.The comparison also reports that SetVAE retains disentanglement and generalizes at high cardinality.Source: C. More Qualitative Results · p. 14

Coarse-to-fine dependency

  • Encoder attention consistently selects subsets that often have bilateral symmetry or correspond to semantic parts, such as airplane wings and chair legs and back.Other examples include car wheels and rear wing.Source: C. More Qualitative Results · p. 14
  • The encoder composes fine parts into coarser structures, while the generator proceeds top-down from coarse structures to fine subsets.For airplanes, the encoder combines engine and tail-wing parts into a fuselage and symmetric wings; the generator reverses this progression.Source: C. More Qualitative Results · p. 14

D. Architecture and Hyperparameters

The appendix provides network-architecture and training-hyperparameter tables, alongside additional generated point-cloud, cardinality-generalization, and attention examples.

Architecture

  • The architecture table defines the experiment’s FC, ISAB, MoG, and ABL components by their dimensions and, where applicable, inducing-point, head, or mixture-component counts.It also specifies that MABs in ISAB and ABL use biased fully connected layers as feed-forward layers.Source: D. Architecture and Hyperparameters · p. 14, Table 4 · p. 19

Hyperparameters

  • Training uses Adam with momentum parameters 0.9 and 0.999, linearly decays the learning rate after half the schedule, and anneals β over dataset-specific epochs.The β annealing spans 2000 epochs for ShapeNet, 40 for Set-MNIST, and 50 for Set-MultiMNIST.Source: D. Architecture and Hyperparameters · p. 14, Table 5 · p. 19

Additional qualitative results

  • The supplementary figures provide additional generated point clouds, cardinality-generalization examples, and color-coded encoder and generator attention examples.The attention examples are identified as Figures 19 and 20.Source: Figure 16 · p. 15, Figure 17 · p. 15, Figure 18 · p. 16
Loading 2103.15619v1…