SGFormer: Semantic Graph Transformer for Point Cloud-based 3D Scene Graph Generation

Changsheng Lv, Mengshi Qi, Xia Li, Zhengyuan Yang, Huadong Ma

TL;DR

SGFormer is a novel Transformer-based framework that significantly advances 3D scene graph generation from point clouds. By replacing traditional local Graph Convolutional Networks (GCNs) with global self-attention and injecting linguistic "common sense" from Large Language Models (LLMs), it achieves a massive 40.94% absolute improvement in relationship prediction over previous state-of-the-art methods.

What Problem Does This Paper Address?

Understanding a 3D scene involves more than just identifying objects; it requires mapping the complex web of relationships between them—like a "pillow" being "on" a "bed" which is "supported by" the "floor." This is the task of 3D Scene Graph Generation (SGG).

The primary challenge is that 3D point clouds are often sparse and noisy. Existing methods typically rely on Graph Convolutional Networks (GCNs). However, GCNs suffer from two major flaws:

  1. Local Receptive Fields: They primarily aggregate information from immediate neighbors, struggling to capture the global context of a room.
  2. Over-smoothing: Stacking many GCN layers to increase the receptive field often causes object features to become indistinguishable, leading to poor performance in complex scenes.

Methods

The authors introduce SGFormer, which shifts the architecture from local convolutions to global Transformers. The model consists of two primary novel components:

  • Graph Embedding Layer (GEL): Unlike standard Transformers that treat nodes as a simple sequence, the GEL uses multi-head edge-aware self-attention. This allows the model to update object (node) features by considering every other object in the scene, while explicitly incorporating the relationships (edges) between them. This global "all-to-all" communication helps the model resolve ambiguities that local methods miss.
  • Semantic Injection Layer (SIL): To help the model distinguish between visually similar objects (like a "wall" vs. a "cabinet"), the authors leverage the power of LLMs like ChatGPT. They use a prompt template to generate detailed textual descriptions of objects and their typical roles in a scene. These descriptions are converted into embeddings and "injected" into the visual features via a cross-attention mechanism.
Figure 2: Overview pipeline of our proposed SGFormer. We leverage PointNet to initialize the node and edge features in the 3D scene and use LLMs ( i.e., ChatGPT) to enrich the object description text of the dataset as semantic knowledge. The SGFormer main consists of two carefully designed components: a Graph Embedding Layer and a Semantic Injection Layer.

Datasets

The model was benchmarked on the 3DSSG dataset, which is derived from the 3RScan dataset. The evaluation focused on the RIO27 annotation subset, which includes 27 object categories and 16 relationship classes. The authors specifically analyzed performance on "complex scenes" (those with a high number of nodes and edges) to test the limits of their global modeling approach.

Key Insights and Ideas

  • Global Context is Essential: A "sink" is much easier to identify if the model "sees" a "towel" and a "mirror" elsewhere in the room, even if they aren't physically touching. SGFormer’s Transformer backbone makes this global reasoning possible without the over-smoothing issues of GCNs.
  • Linguistic Priors Alleviate Data Scarcity: 3D datasets are small compared to 2D ones. By injecting knowledge from LLMs, the model gains a "common sense" understanding of the world (e.g., knowing that a floor usually supports other objects) that doesn't have to be learned purely from sparse point cloud data.
  • Edge-Awareness Matters: Relationships aren't just labels to be predicted at the end; they are vital features that should guide the representation of the objects themselves during the encoding process.

Key Results

SGFormer sets a new high bar for 3D scene graph generation:

  • Massive Accuracy Boost: It achieved a 40.94% absolute improvement in relationship prediction (R@50) over the previous state-of-the-art, EdgeGCN.
  • Complexity Scaling: On a subset of complex scenes, the performance boost reached a staggering 88.36%.
  • Long-Tail & Zero-Shot Success: The Semantic Injection Layer proved highly effective for rare objects and unseen relationships. By using LLM knowledge, the model could accurately predict relationships it had never seen during training.
Figure 1: An example of 3D scene graph generation (SGG). (a) an input 3D scene, (b) global aggregation using Trans- former on the right versus local aggregation using GCN on the left, (c) result using EdgeGCN (Zhang et al. 2021a), and (d) result using our SGFormer. The incorrect results are highlighted in red font, whereas the correct ones are shown in black. SGFormer uses global information aggregation to correct predictions on objects with less information about their neighbors.

Limitations and Future Work

While SGFormer excels at zero-shot learning, the authors note that some extremely rare or counter-intuitive real-world relationships (e.g., a "plant standing in a cabinet") still result in poor performance. They suggest that while LLM knowledge helps, more diverse training data is still necessary to resolve these edge cases. Additionally, while the paper optimizes computation, the quadratic nature of standard self-attention means that scaling to extremely large architectural scenes (like entire buildings) might require further efficiency improvements.

Summary updated

BibTeX
@inproceedings{lv2024sgformer,
  author = {Changsheng Lv and Mengshi Qi and Xia Li and Zhengyuan Yang and Huadong Ma},
  title = {{SGFormer: Semantic Graph Transformer for Point Cloud-based 3D Scene Graph Generation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i5.28197},
}
Figure