3D scene generation from scene graphs and self-attention

Federico TombariarXiv 2024 · DOI

TL;DR

This paper introduces a novel approach to generating 3D indoor scenes by leveraging scene graphs and self-attention mechanisms within a conditional variational autoencoder (cVAE) framework. By employing self-attention, the model can better capture complex object relationships, leading to more diverse and plausible scene layouts compared to previous graph-based methods.

What Problem Does This Paper Address?

Creating realistic and varied 3D indoor environments is crucial for applications like virtual reality, augmented reality, and simulated navigation. Manually modeling these scenes is time-consuming and expensive. While deep generative models have shown promise in predicting object placement, dimensions, and orientations, achieving fine-grained control over the generated scenes remains a challenge. Scene graphs, which represent objects and their relationships, offer a powerful way to control scene generation. However, existing methods often rely on Graph Convolutional Networks (GCNs), which may not fully capture the intricate, sometimes implicit, relationships between objects in a scene. This paper aims to improve 3D scene generation from scene graphs by exploring the efficacy of self-attention mechanisms, which have excelled in other domains like natural language processing and document layout generation.

Methods

The core of this work is a conditional variational autoencoder (cVAE) that synthesizes 3D scene layouts from scene graphs and floor plans. The authors propose using self-attention layers as the fundamental building blocks of their model, moving beyond traditional GCNs.

Here's a breakdown of their approach:

  • Scene Graph Representation: Objects in the scene are represented as nodes, and their relationships are represented as directed edges. Each node has attributes like size, 3D centroid location, and orientation.
  • Self-Attention Encoder: The model first encodes the object attributes and edge relationships. Crucially, it incorporates self-attention mechanisms to learn high-level relationships between objects. They explore three variations of self-attention encoders:
  • GNN A: A standard approach that uses GNNs before self-attention.
  • GTN: Focuses on edge-level attention, where attention scores are computed based on connected nodes.
  • GPH: An extension of the Graphormer architecture that explicitly incorporates Laplacian Positional Encoding before the attention mechanism.
  • Laplacian Positional Encoding: To inject structural information about the graph, they use Laplacian eigenvectors as positional encodings, generalizing the concept from the original Transformer architecture.
  • Conditional Generation: The model is conditioned on both the scene graph and a 2D floor plan, which helps regularize the scene boundaries. A "special node" representing the floor plan is added to the graph to facilitate edge-level attention.
  • VAE Framework: The encoded representations are used to approximate the mean and variance of a latent distribution. The reparameterization trick is used for sampling, and the decoder then reconstructs the scene layout (object positions, dimensions, and orientations).
  • Loss Function: The training objective includes a reconstruction loss (measuring the difference between predicted and ground truth object attributes) and a KL divergence loss to regularize the latent space. A weighting factor ($\beta$) is used to mitigate posterior collapse.

Datasets

The primary dataset used is 3DSSG [26], a semi-automatically generated dataset containing 1482 scene graphs with dense semantic annotations. This dataset includes object nodes and edges representing relationships. For evaluation, they also utilize a cleaner version of 3DSSG with smaller subgraphs and canonical tight bounding boxes. Additionally, 2D binary floor plans are used as a condition, derived from the 3D point clouds.

Key Insights and Ideas

  • Self-Attention for Relational Understanding: The paper strongly suggests that self-attention mechanisms are superior to GCNs for capturing complex and implicit relationships between objects in a scene graph. This is a significant finding, as it opens up new avenues for more sophisticated scene understanding and generation.
  • Laplacian Positional Encoding's Role: Incorporating Laplacian eigenvectors as positional encodings helps the model understand the structural layout of the scene graph, leading to improved precision in generated layouts.
  • Floor Plan as a Spatial Constraint: Using floor plans as an additional condition proves beneficial, particularly for regularizing scene boundaries and addressing issues with edge-less graphs in attention mechanisms.
  • Diversity and Plausibility: The self-attention approach leads to demonstrably more diverse and plausible scene layouts, a key goal in generative modeling for realistic environments.

Key Results

  • Improved Diversity: The authors report a 16% increase in scene diversity compared to a baseline.
  • Sparser Scenes: Their model generates sparser scenes, with a reported 7.9x sparsity compared to Graphto3D.
  • Competitive Accuracy: While not always outperforming all baselines in every metric, their models (particularly GPH + L) show competitive or superior performance in terms of precision for various spatial relationships (e.g., Left/Right, Front/Behind, Higher/Lower). For instance, GPH + L achieves a precision of 0.77 for Left/Right and 0.36 for Front/Behind.
  • Qualitative Improvements: Qualitative comparisons show that their method can generate more plausible layouts with fewer overlapping volumes, even without explicit shape features.

Limitations and Future Work

  • Scene Graph Connectivity: The authors acknowledge that many failure cases arise from the lack of explicit connection edges in input scene graphs. They suggest extending the scene graph connectivity with concepts like k-hop graphs as a promising future research direction.
  • Shape Features: While their model achieves competitive results without explicit shape features, incorporating them could potentially lead to further improvements in realism and detail.
  • Manual Scaling: For some qualitative results (Figure 6), the covariance was manually scaled, indicating a potential area for further automation or refinement in the generation process.

Summary updated

Abstract

Synthesizing realistic and diverse indoor 3D scene layouts in a controllable fashion opens up applications in simulated navigation and virtual reality. As concise and robust representations of a scene, scene graphs have proven to be well-suited as the semantic control on the generated layout. We present a variant of the conditional variational autoencoder (cVAE) model to synthesize 3D scenes from scene graphs and floor plans. We exploit the properties of self-attention layers to capture high-level relationships between objects in a scene, and use these as the building blocks of our model. Our model, leverages graph transformers to estimate the size, dimension and orientation of the objects in a room while satisfying relationships in the given scene graph. Our experiments shows self-attention layers leads to sparser (7.9x compared to Graphto3D) and more diverse scenes (16%).
BibTeX
@misc{tombari2024d,
  author = {Federico Tombari},
  title = {{3D scene generation from scene graphs and self-attention}},
  year = {2024},
  eprint = {2404.01887},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2404.01887},
}
Figure