Generating Physically Stable and Buildable Brick Structures from Text

ICCV 2025

*Equal contribution

Overview

BrickGPT generates a toy brick structure from a user-provided text prompt in an end-to-end manner. Notably, our generated brick structure is physically stable and buildable.

BrickGPT overview

Abstract

We introduce BrickGPT, the first approach for generating physically stable toy brick models from text prompts. To achieve this, we construct a large-scale, physically stable dataset of brick designs, along with their associated captions, and train an autoregressive large language model to predict the next brick to add via next-token prediction. To improve the stability of the resulting designs, we employ an efficient validity check and physics-aware rollback during autoregressive inference, which prunes infeasible token predictions using physics laws and assembly constraints. Our experiments show that BrickGPT produces stable, diverse, and aesthetically pleasing brick designs that align closely with the input text prompts. We also develop a text-based brick texturing method to generate colored and textured designs. We show that our designs can be assembled manually by humans and automatically by robotic arms. We also release our new dataset, StableText2Brick, containing over 47,000 brick structures of over 28,000 unique 3D objects accompanied by detailed captions, along with our code and models.

StableText2Brick dataset

StableText2Brick dataset construction pipeline
(a) From a ShapeNetCore mesh, we generate a brick structure by voxelizing it onto a 20×20×20 grid, then constructing its brick layout with a delete-and-rebuild algorithm. (b) We augment each shape with multiple structural variations by randomizing the brick layout while preserving the overall shape. (c) Stability analysis is performed on each variation to filter out physically unstable designs. (d) To obtain captions for each shape, we render the brick structure from 24 different viewpoints and use GPT-4o to generate detailed geometric descriptions. (e) Data samples from 5 categories in our StableText2Brick dataset.

BrickGPT pipeline

BrickGPT pipeline
(a) Our system tokenizes a brick structure into a sequence of text tokens, ordered in a raster-scan manner from bottom to top. (b) We create an instruction dataset pairing brick sequences with descriptions to fine-tune LLaMA-3.2-Instruct-1B. (c) At inference time, BrickGPT generates brick structures incrementally by predicting one brick at a time given a text prompt. For each generated brick, we perform validity checks to ensure it is well-formatted, exists in our brick library, and does not collide with existing bricks. After completing the design, we verify its physical stability. If the structure is unstable, we roll back to a stable state by removing all unstable bricks and their subsequent ones, and resume generation from that point.

Step-by-step generation of brick structures from text

“A streamlined vessel with a long, narrow hull”
“A classical guitar”
“A basic sofa”
“A bookshelf with horizontal tiers”
“A high-backed chair”
“A backless bench with armrest”

Automated assembly of generated brick structures using robots (8x speed)

“A streamlined vessel with a long, narrow hull […]”
“An asymmetrical six-string guitar […]”

Generated brick structures assembled by humans

Examples of brick structures built in the real world by humans.

Generated textured brick models

“Rustic stone bench with moss growth […]”
“Hot rod with flame paintwork […]”
“Rustic farmhouse chair built from reclaimed wood […]”
“Live edge walnut table […]”
“Comfortable lounge chair wrapped in Japanese shibori fabric […]”
“Cyberpunk holographic material with neon purple and blue gradients […]”
“Rustic farmhouse armchair built from reclaimed wood […]”
“Vintage floral tapestry with deep reds and golds […]”
“Gothic cathedral bookshelf with arch details, medieval style […]”
“Japanese sliding bookcase with shoji screens, traditional design […]”
“Victorian library shelving with carved moldings […]”

Generated colored brick models

“Parlor guitar with ladder bracing […]”
“Electric guitar in metallic purple […]”
“Steel resonator with engraved body […]”
“Sunburst Les Paul with amber finish […]”