Budget-Aware Sequential Brick Assembly with Efficient Constraint Satisfaction

Seokjun Ahn, Jungtaek Kim, Minsu Cho, Jaesik Park

Abstract

We tackle the problem of sequential brick assembly with LEGO bricks to create combinatorial 3D structures. This problem is challenging since this brick assembly task encompasses the characteristics of combinatorial optimization problems. In particular, the number of assemblable structures increases exponentially as the number of bricks used increases. To solve this problem, we propose a new method to predict the scores of the next brick position by employing a U-shaped sparse 3D convolutional neural network. Along with the 3D convolutional network, a one-initialized brick-sized convolution filter is used to efficiently validate assembly constraints between bricks without training itself. By the nature of this one-initialized convolution filter, we can readily consider several different brick types by benefiting from modern implementation of convolution operations. To generate a novel structure, we devise a sampling strategy to determine the next brick position considering the satisfaction of assembly constraints. Moreover, our method is designed for either budget-free or budget-aware scenario where a budget may confine the number of bricks and their types. We demonstrate that our method successfully generates a variety of brick structures and outperforms existing methods with Bayesian optimization, deep graph generative model, and reinforcement learning.

Introduction

Building complex 3D structures from discrete components like LEGO bricks is a formidable combinatorial optimization problem. As the number of bricks $n$ increases, the configuration space grows exponentially ($O(k^n)$). Beyond the mathematical complexity, physical assembly requires satisfying strict constraints: bricks must not overlap, they must be connected to the existing structure, and they must align with a specific grid.

Comparison of BrECS with existing assembly methods across unit primitives, algorithms, and constraint satisfaction.

Traditional methods, such as Bayesian Optimization or Reinforcement Learning, often struggle to scale or fail to maintain 100% validity in generated structures. The proposed framework, BrECS (Budget-Aware Sequential Brick Assembly with Efficient Constraint Satisfaction), addresses these challenges by treating assembly as a sequential decision-making process powered by deep learning and efficient tensor operations.

Methodology: The BrECS Framework

The core of BrECS consists of two parallel paths that inform the final brick placement: a predictor for high-scoring locations and a validator for physical feasibility.

Score Prediction with U-Net

At each step $t$, the system takes the current brick configuration $B_t$ and a target brick type (e.g., $2 \times 4$). A U-shaped sparse 3D convolutional neural network (U-Net) processes the voxelized state to predict voxel-wise scores $B'_t$. These scores represent the likelihood of a brick placement being beneficial for the overall target shape, allowing the model to understand both global structure and local precision.

Efficient Constraint Validation

The paper's most elegant innovation is the "one-initialized" brick-sized convolution filter $K$. To check if a brick of size $W \times D$ can be placed at a coordinate without overlap, the system applies a filter of the same dimensions filled entirely with 1s to the current occupancy grid. A zero result indicates a valid, empty spot. This leverages highly optimized GPU convolution operations, making the validity check significantly faster than iterative geometric checks.

The BrECS architecture featuring the predictor and validator paths leading to the final brick selection.

Budget-Aware Sampling

BrECS is designed to operate under a specific inventory budget. It employs a sampling strategy that prioritizes larger bricks for the structural "skeleton" and smaller bricks for fine details. This "abundance-first" approach mimics human building strategies and ensures the final build adheres to available part counts.

Experimental Results

The model was trained and evaluated using the ModelNet40 dataset, focusing on airplanes, tables, and chairs. BrECS demonstrated significant improvements over existing baselines:

  • Speed: The convolution-based validity check is approximately 2,300 times faster than traditional iterative methods (0.0021s vs 4.7s for a $64^3$ grid).
  • Validity: BrECS achieved a 100% validity ratio, ensuring all generated structures are buildable without overlaps or floating parts, whereas competing generative models often produced invalid structures 90% of the time.
  • Fidelity: In completion tasks, BrECS reached an Intersection over Union (IoU) of 0.599 for airplanes, nearly triple the performance of Bayesian Optimization.

Conclusion and Future Work

BrECS provides a scalable, efficient solution for complex brick assembly by mapping geometric constraints directly onto convolution operations. While currently limited to rectangular bricks, future iterations aim to incorporate specialized geometries (slopes, curves) and optimize for the physical stability of structures during every intermediate step of the build process.

Summary updated

BibTeX
@article{ahn2024budget,
  author = {Seokjun Ahn and Jungtaek Kim and Minsu Cho and Jaesik Park},
  title = {{Budget-Aware Sequential Brick Assembly with Efficient Constraint Satisfaction}},
  journal = {Accepted by TMLR},
  year = {2024},
  url = {https://openreview.net/forum?id=0mRfQOnkqk},
}
Figure