Evaluating AI Brick Design: From Functional to Striking

    Generating a buildable brick model from a single text prompt looks like a creative task but is closer to combinatorial optimization under physical constraints. This article breaks down the task's difficulty, an evaluation framework, system architecture, and optimization paths. It explains why general-purpose code agents, with their tool-calling and iterative repair loops, can outperform models trained specifically on brick data, and how to engineer aesthetic quality rather than just physical feasibility.

    Asking a model to produce a set of buildable brick designs from one sentence looks like a creativity problem on the surface. In practice it is closer to a combinatorial optimization problem under physical constraints: the model must search across tens of thousands of part specifications, then handle layout, connection, coloring, and stability verification, and finally output a structure that matches the semantics, actually stands up, and reaches a level of aesthetic completeness. Recent evaluation research points to a phenomenon worth the attention of engineering teams: general-purpose code agents can outperform generative models trained specifically on brick data. The reason is not talent but the closed loop a general agent brings, tool calling, execution feedback, error localization, and iterative repair. This article breaks down the task difficulty, evaluation design, system architecture, and optimization paths.

    1. Problem Definition: From a Sentence to a Buildable Structure

    The biggest difference between brick design and ordinary image generation is that the output must resolve to discrete parts and real connection relationships. A prompt like “a pelican riding a bicycle” looks simple, but it hides several layers of decisions: how to abstract the overall silhouette into a brick vocabulary; how to plan the main body, accessories, and base as separate layers; which parts each layer needs; whether the parts actually interlock; whether the center of gravity falls within the support area; whether the colors form a clear visual hierarchy; and whether the final piece reads as the intended subject at a glance.

    A complete brick generation system therefore has to handle at least four kinds of constraints:

    1. Semantic constraints: the piece must be recognizable as the object described, with key features present.
    2. Compositional constraints: parts must come from an available part library, with legal sizes, connection points, angles, and colors.
    3. Physical constraints: parts must not collide, connections must be sufficient, and the whole must stay stable under gravity.
    4. Aesthetic constraints: proportion, symmetry, color, detail density, and style must be coherent, not just “stacked so it works.”

    The first three translate fairly easily into computable metrics; the fourth is much harder to quantify. Two pieces may both match the description and both stand up, yet one looks polished while the other carries a “good enough to assemble” sloppiness. The real difficulty of AI brick design is not generating a pile of part coordinates but finding a solution in the discrete combinatorial space that balances semantics, physics, and aesthetics.

    2. Breaking Down the Difficulty: Why “Buildable” Is Not “Well Built”

    A brick part library usually contains many shapes, sizes, connection methods, and color variants. A common set may involve several hundred to a thousand parts, while a universal part library can reach tens of thousands of specifications. The model must first do structural planning, then part retrieval, then arrange position, rotation, and color, and finally verify connections and stability. This is a typical multi-stage, heavily constrained, discrete search problem.

    The first layer is physical feasibility. Parts face collision detection problems, the structure must be stable under gravity, and connection-point coverage must be sufficient. Some designs look reasonable but have overly long local overhangs, too few connection points, or an off-center mass, and they fall apart once built. Physical feasibility cannot rely on a language model’s “feel”; it must be verified through geometric computation and stability analysis.

    The second layer is aesthetic completeness. Aesthetics is not simply whether something looks nice but the consistency of proportion, silhouette, color, detail, and style. A piece with chaotic colors, unbalanced detail density, or an unclear main subject is hard to find impressive even if it is physically stable. Aesthetic evaluation usually needs automatic metrics combined with human preference: automatic metrics for scalability, human preference for genuine impression.

    The third layer is semantic alignment. The objects, actions, and scene relationships in the text must map to structural features. “Riding a bicycle,” for example, is not just two objects placed side by side; it includes pose, contact, and spatial relationship. If the model only generates two independent modules, a “pelican” and a “bicycle,” semantic alignment fails.

    3. Evaluation System: Splitting “Functional” and “Striking” into Measurable Metrics

    Moving AI brick design from functional to striking first requires a layered evaluation system. Evaluation should not look only at the final rendering; it should cover the full chain of generation, assembly, stability, semantics, and aesthetics. Design it along these dimensions:

    • Buildability rate: whether all output parts come from a legal part library, whether connection relationships hold, and whether illegal floating or intersection exists.
    • Collisions and interference: count collisions between parts, misaligned connection points, and non-executable assembly steps.
    • Structural stability: evaluate connection coverage, center-of-gravity projection, support chains, and local overhangs under gravity and light perturbation.
    • Semantic alignment: measure the consistency of text and structure through multimodal recognition, key-feature coverage, and manual scoring.
    • Aesthetic preference: combine human preference scores, style consistency, color harmony, proportion, and detail density.
    • Diversity and usability: whether different style options can be generated for the same description, whether the part count stays in a reasonable range, and whether assembly complexity is acceptable.

    The evaluation set should also cover different difficulty levels: simple single objects, cases with action relationships, complex scenes, strong style constraints, and low part budgets. Only by measuring “physically correct” and “aesthetically excellent” separately can you locate a system’s weak point, whether planning, retrieval, layout, or missing aesthetic evaluation went wrong.

    4. Why General-Purpose Code Agents Can Overtake Specialized Models

    Specialized brick generation models are usually trained on brick data and should in theory understand parts and structures better. But evaluations show that general-purpose code agents can approach human reference on existing evaluation sets and clearly beat some specialized models. The key difference is how they work.

    Specialized models tend toward end-to-end one-shot output: input text, generate the structure directly. They lack execution feedback and struggle to detect collisions, failed connections, or stability problems. A general-purpose code agent can turn the task into a programmatic workflow: parse the description, plan the structure, retrieve parts, lay out, call collision detection, call stability analysis, render a preview, read the metrics, and repair the design. It is not “guessing” an answer but “doing” a verifiable engineering loop.

    This explains a counterintuitive result: the general agent has no brick-specific training yet achieves better results through tool calling and closed-loop trial and error. The difference is not talent but the ability to check and revise while building. For heavily constrained design tasks, verifiable iteration often matters more than domain-data fine-tuning.

    A simplified closed loop can be written as:

    1. function generate_design(prompt, part_db, max_iter):
    2. spec = parse(prompt)
    3. plan = plan_structure(spec)
    4. design = empty_design()
    5. for i in range(max_iter):
    6. candidates = retrieve_parts(plan, part_db)
    7. design = layout(candidates, spec)
    8. metrics = evaluate(design)
    9. # metrics include collision, connection, stability, semantics, aesthetics
    10. if metrics.feasible and metrics.aesthetic >= threshold:
    11. return design
    12. plan = repair(plan, metrics)
    13. design = adjust(design, metrics)
    14. return best_effort(design)

    The core of this flow is not a particular model parameter but the “generate, verify, repair” engineering structure. General-purpose code agents are good at breaking a natural-language task into executable steps and using the objective metrics returned by tools to correct the next action.

    5. Engineering Architecture: Building a Verifiable Brick Design System

    In practice, split the system into modules with clear responsibilities rather than letting a single model carry every decision.

    1. Semantic parsing and structural planning: break the text into subject, action, accessories, scene, style, and constraints to form a hierarchical structure tree.
    2. Part retrieval: retrieve candidate parts by shape, size, connection points, color, and budget, avoiding brute-force search over the whole library.
    3. Layout and connection solving: place parts layer by layer along the structure tree, prioritizing connection-point alignment and support chains.
    4. Physical verification: run collision detection, connection-coverage checks, and center-of-gravity and stability analysis.
    5. Aesthetic evaluation: combine render previews, color harmony, proportion rules, and a human preference model for scoring.
    6. Repair loop: locate problems from failure metrics, then adjust planning, swap parts, or locally rearrange.
    7. Result output: produce structured design data, assembly steps, and a visual preview.

    The structured design data should contain at least part identifiers, position, rotation, color, connection relationships, and assembly order. For example:

    1. {
    2. "parts": [
    3. {"part_id": "P123", "position": [0, 0, 0], "rotation": 0, "color": "red"}
    4. ],
    5. "connections": [
    6. {"from": "P123", "to": "P124", "port": "top"}
    7. ],
    8. "assembly_order": ["P123", "P124"],
    9. "metrics": {
    10. "collisions": 0,
    11. "connection_coverage": 0.92,
    12. "stability_score": 0.88,
    13. "semantic_score": 0.81,
    14. "aesthetic_score": 0.74
    15. }
    16. }

    This representation is easy for tools to verify and easy for an agent to repair locally based on metrics. Engineering teams should first make the verification tools reliable, then gradually improve the generation model; otherwise, however flashy the model’s output, it cannot be delivered reliably.

    6. From “Functional” to “Striking”: Engineering the Aesthetic Goal

    Physical feasibility can be solved with rules and simulation; aesthetics is more complex. Break aesthetics into actionable sub-goals: is the proportion coherent, is the silhouette clear, is the color ordered, is the detail density balanced, is the style unified. The system can add style templates in the planning stage, symmetry and hierarchy constraints in the layout stage, and prioritize fixing visual breaks and color conflicts in the repair stage.

    Human preference feedback should also come in. Automatic metrics can filter out many infeasible options, but “striking” often comes from human perception. Through preference ranking, pairwise comparison, and style tags, you can train a lightweight scorer to re-rank candidate options. Be careful not to let aesthetic scoring fully replace physical verification; the correct order is feasibility first, then semantics, then aesthetics.

    7. Practical Advice and Risk Control

    First, establish a verifiable evaluation loop before chasing generation quality. Without collision, stability, and connection metrics, the system cannot know why it failed. Second, use layered generation rather than one-shot output, so planning, retrieval, layout, verification, and repair are each observable. Third, keep human preference evaluation to avoid optimizing toward results that “score well but look lifeless.” Fourth, control the part budget and assembly complexity so the design is not only attractive but actually buildable. Fifth, watch generalization: the evaluation set should cover different descriptions, styles, and constraints rather than tuning on a few samples.

    Conclusion: the core tension in AI brick design is that physical correctness and aesthetic completeness are hard to guarantee at the same time in a discrete combinatorial space. The value of general-purpose code agents lies in turning the generation task into an executable, verifiable, repairable engineering loop. Machines can already build “functional” bricks, but building “good-looking” ones still needs a finer evaluation system, more reliable physical verification, and aesthetic modeling closer to human perception. Moving from functional to striking is not a single leap in generation ability but the maturing of a whole engineering loop.