AI Agents Can Assemble Usable Brick Builds but Struggle to Create Impressive Ones
This article examines why general-purpose AI coding agents can produce functional brick constructions from natural language prompts, yet often fall short of visually impressive results. It breaks down the core challenges of assembly tasks, including combinatorial explosion in the parts space, dual physical and aesthetic constraints, and the difficulty of scoring subjective quality. It also explains why a closed-loop workflow of generation, verification, and correction can outperform task-specific models, and outlines a BrickBench-style evaluation framework, practical engineering techniques, and common pitfalls to avoid.
1. Background: From “Generating” to “Assembling”
Once models can output executable scripts, generate 3D scenes, and produce parameterized parts, a tougher question emerges: can they handle compositional assembly tasks with strong physical and aesthetic constraints? Brick building is a typical scenario. The input is a single natural language description, but the output must specify the position, orientation, color, and connection relationships of hundreds or thousands of parts. The finished build must stand on its own, hold together, and look presentable.
The value of this task is that it pulls “generation” back from isolated creativity into systems engineering: it must satisfy hard constraints, meet soft preferences, and search for a feasible solution in an enormous discrete space.
2. Why Assembly Tasks Are Hard
2.1 Combinatorial Explosion in the Parts Space
There are tens of thousands of brick part types, with major differences in shape, size, and connection methods. Given a description, the model must first determine the overall semantic form, then retrieve and match parts from a massive library, and finally assign pose and color to each part. The search space grows exponentially with the number of parts, and simple greedy strategies easily fall into local optima.
2.2 Two Layers of Constraints: Physical Feasibility and Visual Acceptability
- Physical layer: parts must not collide, connections must genuinely interlock, and the structure must remain stable under gravity and support conditions.
- Aesthetic layer: whether it “looks right,” whether proportions are coordinated, and whether details are in place. This layer is hard to quantify. Two builds may both match the description and be structurally sound, but one is lifelike while the other is barely usable.
2.3 Evaluation Difficulty: How to Score Soft Metrics
Aesthetics require operational proxy metrics. A common approach is to score multimodal alignment between rendered images and the text description, then add hard metrics for structural stability and collision rate to form a composite score. The difficulty lies in weight design and avoiding score gaming.
3. Counterintuitive Finding: The Advantage of General Agents Comes from Closed Loops
The industry often has specialized models trained specifically on brick data. In practice, however, a general-purpose coding agent not trained for this task can often approach human reference answers on existing benchmarks and even significantly outperform specialized baselines. The reason is not mysterious:
- It can write code, run simulations, read logs, and adjust parameters, forming a “generate-verify-correct” loop.
- It can decompose aesthetic problems into checkable intermediate quantities (proportion, symmetry, support, collision).
- It can locate the cause of failures instead of producing a one-shot output.
This suggests that in strongly constrained tasks, iteration and verifiability matter more than prior specialization.
4. A Tougher Test: Designing a BrickBench-Style Evaluation System
To avoid “guessing the easy questions right,” evaluation should cover four dimensions:
- Semantic alignment: whether the build faithfully matches the description (multimodal similarity, key element recall).
- Physical feasibility: collision rate, connection completeness, center of gravity and support stability.
- Structural complexity: part count, hierarchy depth, repeated module ratio.
- Aesthetic proxy: symmetry, proportion consistency, detail density, and noise level.
Illustrative scoring framework (pseudocode):
score = (0.35 * semantic_alignment(render, prompt)+ 0.30 * physical_feasibility(model) # collision/stability/connection+ 0.15 * structural_complexity(model)+ 0.20 * aesthetic_proxy(render))
Key point: apply hard constraints as a “gate” first, eliminating anything that fails; then apply weighting to soft metrics so that a high score cannot mask a build that falls apart.
5. Engineering Practice: Getting Stable Output from a General Agent
5.1 Task Decomposition and Intermediate Representation
First convert the description into a structured plan (parts list, hierarchy tree, support relationships), then instantiate it layer by layer into part poses. The intermediate representation can use JSON, making validation and rollback easier.
{"part": "body","children": [{"part": "wheel", "constraint": "touch_ground"},{"part": "seat", "constraint": "supported_by_body"}],"palette": ["red", "black", "gray"]}
5.2 Simulation and Self-Check Loop
Use collision detection and stability checks as “gatekeepers.” On failure, roll back to the last feasible state and adjust local parameters. General compute resources (such as container platforms and batch jobs) can run multiple candidates in parallel, and the one with the highest composite score is selected.
5.3 Prompt and Constraint Engineering
- Make hard-constraint priority explicit: no collision > no floating > shape similarity > details.
- Require the model to output a plan before parameters.
- Add a “self-critique” step that asks the model to list the three weakest aspects of the current solution and fix them.
5.4 Data and Evaluation Loop
Log every generation and score to a logging service and run regular regression tests. Use monitoring and alerts to track drift in collision rate and alignment scores, preventing “getting worse with every change.”
6. Common Pitfalls and Improvement Suggestions
- Pitfall 1: judging only by how good the render looks. Improvement: pass the physical gate first, then check alignment and aesthetics.
- Pitfall 2: generating all parameters in one shot. Improvement: generate in layers, search locally, and converge step by step.
- Pitfall 3: ignoring color and proportion. Improvement: write the palette and proportion constraints into the plan layer.
- Pitfall 4: an overly simple evaluation set. Improvement: increase part count and constraint density, and add “trap questions.”
7. Conclusion
The reason general-purpose coding agents perform well on assembly tasks is verifiable closed-loop iteration, not simply a better “understanding of bricks.” For developers, the truly reusable lesson is to turn both aesthetics and physics into checkable signals, and to approach “impressive” through a plan-generate-simulate-correct pipeline. In a general cloud environment such as Baidu AI Cloud, using object storage to save intermediate artifacts, container platforms for parallel simulation, and logging and monitoring for regression can turn this capability into stable engineering practice.
