Building a complex object from simple parts is a fundamental human skill, yet it remains incredibly difficult for AI. "Brick-by-Brick" ($B^3$) is a novel Deep Reinforcement Learning (RL) framework designed to solve the "combinatorial construction" problem: assembling 3D structures from unit primitives (like LEGO bricks) using only partial information, such as 2D images.
The Challenge of Combinatorial Construction
The authors identify three primary hurdles in teaching AI to build:
- Vast Search Space: Even with just six standard 2x4 LEGO bricks, there are over 915 million possible ways to connect them.
- Physical Constraints: Bricks cannot overlap, and connections must follow strict geometric rules. In standard RL, choosing an "invalid" action (like an overlap) often leads to a "deadlock," terminating the episode and making learning extremely slow.
- Incomplete Information: In the real world, we rarely have a perfect 3D blueprint. We usually build based on 2D sketches or photos. The agent must "hallucinate" the 3D structure from limited 2D views.
Existing methods often rely on full 3D volumetric data or supervised, step-by-step instructions. This paper aims to train an agent that can figure out the assembly sequence itself, guided only by a reward based on how well the final result matches a target image.
The Brick-by-Brick ($B^3$) Framework
The authors propose treating construction as a sequential graph-generation process.
- Graph Representation: The state of the assembly is represented as a graph where nodes are individual bricks (storing their 3D pose and orientation) and edges represent physical connections. This allows the model to handle a variable number of bricks and maintain "translational and orientational equivariance"—meaning the model understands that a "T-junction" is the same regardless of where it is located.
- Two-Step Action Space: To manage the growing number of placement options, the agent makes a hierarchical decision. First, it selects a "pivot" brick from the existing structure. Then, it selects an "offset" (one of 92 possible relative positions) to place the next brick.
- Action Validity Prediction Network: This is a crucial innovation. Before the RL agent (using Proximal Policy Optimization) picks a move, a separate, pre-trained Graph Neural Network (GNN) predicts which moves are physically valid (i.e., won't cause overlaps). Invalid moves are masked out, preventing the agent from wasting time on impossible actions.
- Reward Function: The agent receives a reward based on the change in Intersection over Union (IoU) between the current assembly's volume and the target object's volume.
Datasets and Key Results
The researchers evaluated their model on three distinct scenarios:
- MNIST Construction: 2D handwritten digits are converted into 3D voxel targets. The agent is given a single 2D image and must build the corresponding 3D digit.
- Randomly-Assembled Objects: A synthetic dataset of objects created by randomly (but validly) snapping bricks together. This tests the agent's ability to reconstruct arbitrary structures from three viewpoints.
- ModelNet (Airplane, Monitor, Table): Using a standard 3D CAD dataset, the agent attempts to build realistic objects based on three 2D views. This is the most challenging task due to the complex shapes involved.
Superiority over Baselines: $B^3$ consistently outperformed Bayesian Optimization (which struggles with partial info) and MLP-based RL models (which lack relational context). The pre-trained validity network showed high precision and recall, even when tested on brick combinations much larger than those it saw during training.
Generalization and 3D Inference: The model successfully learns to infer 3D structure from 2D views without explicit 3D supervision during the assembly process. In the ModelNet airplane category, the agent learned to capture the global "airplane-ness" of the target, successfully placing wings and tails in the correct relative positions based on just three images.
Key Insights and Future Work
The success of $B^3$ highlights two major takeaways for combinatorial RL tasks:
- Filtering is Better than Failing: By filtering out invalid moves before the RL agent sees them, the authors turned an intractable search problem into a manageable one. This allows the agent to focus on strategy (what to build) rather than physics (what can fit).
- Relational Reasoning via GNNs: Because construction is inherently about the relationship between parts, the graph structure naturally captures the "topology" of the object as it grows, proving far more effective than standard MLPs or CNNs.
Limitations: While the model captures the overall shape well, it often struggles with very thin or intricate details, such as the thin legs of a table or the tapered tips of airplane wings. Furthermore, three views are sometimes not enough to resolve the internal structure of an object. Future work may explore providing more views, introducing "active vision" (letting the agent choose where to look), or expanding the primitive variety beyond a single 2x4 brick type.
Summary updated