[Paper Review] Building LEGO Using Deep Generative Models of Graphs
This paper proposes a deep generative model for creating human-like LEGO structures using graph-structured neural networks, modeling brick connections as nodes and edges in a graph. It achieves superior diversity and quality over baselines, with 89.5% novel designs and 60.5% GIN classifier accuracy, demonstrating the feasibility of generative models for physical, sequential assembly design.
Generative models are now used to create a variety of high-quality digital artifacts. Yet their use in designing physical objects has received far less attention. In this paper, we advocate for the construction toy, LEGO, as a platform for developing generative models of sequential assembly. We develop a generative model based on graph-structured neural networks that can learn from human-built structures and produce visually compelling designs. Our code is released at: https://github.com/uoguelph-mlrg/GenerativeLEGO.
Motivation & Objective
- To develop a generative model for sequential physical assembly using LEGO as a realistic yet accessible platform.
- To adapt deep generative models of graphs (DGMG) to model LEGO structures with physical and aesthetic constraints.
- To evaluate generative performance using image-style metrics adapted to graph generation, including diversity, quality, and novelty.
- To explore the impact of enforcing structural validity during generation on model performance and design quality.
- To demonstrate that graph-based generative models can produce visually compelling, diverse, and novel LEGO designs that generalize beyond training examples.
Proposed method
- Represent LEGO structures as graphs, where nodes are bricks (with type, color, orientation) and edges are connections between bricks.
- Extend the DGMG framework with a learnable edge type module that models connection types using a softmax-based categorical approach for improved training stability.
- Incorporate physical constraints by rejecting invalid builds during generation, with a separate variant (DGMLG-Re) enforcing structural validity.
- Use a GIN-based graph classifier to evaluate generated structures on quality and similarity to training data.
- Apply permutation-invariant analysis to assess diversity and coverage across generated samples.
- Condition generation on class-level descriptions (e.g., 'wall', 'table') to produce contextually relevant designs.
Experimental results
Research questions
- RQ1Can deep generative models of graphs produce visually compelling and diverse LEGO structures that resemble human-built designs?
- RQ2How does enforcing physical constructability during generation affect the quality and diversity of generated LEGO structures?
- RQ3To what extent can image-based generative evaluation metrics (e.g., FID, precision, recall) be meaningfully adapted to graph generation in physical design?
- RQ4Does conditioning on class-level semantics lead to more coherent and contextually appropriate LEGO designs?
- RQ5How do different edge type modeling strategies (e.g., softmax vs. thermometer encoding) impact training stability and final performance?
Key findings
- The proposed DGMLG model achieved 60.5% GIN classifier accuracy, significantly outperforming the Bayesian optimization baseline (11.9%) and demonstrating high-quality structure generation.
- DGMLG generated 89.5% novel structures, indicating strong generalization beyond exact copies of training examples.
- Despite enforcing structural validity, the unconstrained DGMLG variant outperformed DGMLG-Re in most metrics, suggesting that allowing some invalid structures during training may improve overall diversity and quality.
- The model successfully generated larger or more complex versions of training patterns, such as extended lines and flat tables, showing pattern generalization.
- The softmax-based edge type module yielded better training stability and performance than the thermometer encoding, despite the latter's theoretical alignment with ordinal regression.
- The harmonic mean of density and coverage (D&C) served as a robust metric for identifying the best-performing model across training epochs.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.