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

Multi-objects Generation with Amortized Structural Regularization

Kun Xu, Chongxuan Li, Jun Zhu, Bo Zhang

Abstract

Deep generative models often struggle to synthesize multi-object scenes correctly, frequently ignoring structural relationships such as object counts or spatial overlaps. This paper introduces Amortized Structural Regularization (ASR), a framework that embeds human knowledge into the model via differentiable constraints rather than intractable priors. By penalizing the posterior distribution during training, ASR forces the model to learn accurate object representations and spatial relationships, significantly improving generation quality and inference accuracy.

Introduction: The Challenge of Multi-Object Scenes

Deep Generative Models (DGMs), such as Variational Autoencoders (VAEs) and Generative Adversarial Networks (GANs), have achieved remarkable success in generating single objects. However, real-world visual data typically consists of complex scenes with multiple interacting objects. Standard structured DGMs often fail in these unsupervised settings by maximizing marginal log-likelihood alone, which can lead to poor local optima—for instance, "lazily" explaining two adjacent objects as a single entity.

While injecting human knowledge through prior distributions (e.g., "objects cannot overlap") is an intuitive solution, designing priors that are mathematically valid, computationally tractable, and differentiable for complex geometric rules is extremely difficult. ASR addresses this by embedding structural knowledge without the need for complex prior design.

Methodology: Amortized Structural Regularization

The authors extend the Attend-Infer-Repeat (AIR) model, an iterative latent variable model for object inference. They first enhance AIR with a learnable prior using an RNN to model inter-object dependencies (AIR-pPrior).

The core contribution is the Amortized Structural Regularization (ASR) framework. Instead of hard-coding a prior, ASR employs Posterior Regularization (PR):

  1. Constraint Definition: Human knowledge is expressed as a set of inequality constraints. For example, to prevent overlap, a mathematical constraint ensures the distance between bounding box centers exceeds their combined half-widths.
  2. Differentiable Penalties: These hard constraints are relaxed into a differentiable penalty term, $R(q(Z|X; \phi))$.
  3. Joint Optimization: This penalty is subtracted from the Evidence Lower Bound (ELBO). During training, the model maximizes data likelihood while minimizing structural violations.
Overview of the ASR framework integrating structural constraints into the variational objective.

Experimental Evaluation

The approach was evaluated on synthetic datasets designed to isolate structural generation challenges: Multi-MNIST and Multi-dSprites (featuring squares, ellipses, and hearts).

Key Results

ASR was tested on two primary structural rules: object counting and overlap prevention.

  • Object Counting: On Multi-MNIST images with 1 or 3 objects, AIR-ASR achieved 96% inference accuracy, far surpassing the standard AIR baseline (81%) and AIR-pPrior (48%).
  • Overlap Prevention: Baseline models frequently generated overlapping bounding boxes even when trained on non-overlapping data. AIR-ASR successfully learned spatial separation, achieving a Mean Intersection over Union (mIoU) for bounding box accuracy of 0.67 on Multi-MNIST (vs. 0.25 for AIR) and 0.61 on Multi-dSprites (vs. 0.13 for AIR).
Comparison of multi-object generation results on Multi-MNIST, demonstrating improved bounding box separation and object distinctness.

Discussion and Insights

The study highlights that optimizing marginal log-likelihood alone does not guarantee the discovery of true underlying structures. Neural networks often take the path of least resistance, leading to merged objects. By expressing human knowledge as posterior constraints rather than bespoke priors, ASR provides a flexible way to translate physical rules into the loss function. The ASR penalty reshapes the optimization landscape, allowing the model to escape local optima and learn the correct scene structure.

Conclusion and Future Work

While ASR significantly improves structural learning, the authors noted training instability, with results depending heavily on initialization. Furthermore, the current reliance on the AIR architecture limits performance on complex backgrounds. Future work involves applying ASR to more advanced models like MONet to handle realistic scene decomposition.

Summary updated

BibTeX
@inproceedings{xu2019multi,
  author = {Kun Xu and Chongxuan Li and Jun Zhu and Bo Zhang},
  title = {{Multi-objects Generation with Amortized Structural Regularization}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2019},
  url = {https://openreview.net/forum?id=EYUYqVIRYwQ},
}
Figure