betaFeedback

WorksComputer Science

BriConstrain: Geometrically Constrained Decoding for Autoregressive Brick Assembly Generation

Abstract

Language models can generate LEGO®^\circledR assemblies from text, but their builds often contain parts that collide or attach to nothing. The usual approach of rejecting and resampling invalid placements discards decoded tokens without guaranteeing a valid build. We present BriConstrain, a constrained decoding method that restricts a pretrained language model's next-token probabilities before sampling, steering it towards valid placements. Because the validity of a brick placement depends on the non-predetermined build state, it cannot be compiled into a fixed grammar and must be checked dynamically. However, checking the validity of a brick before sampling is challenging as the space of valid placements is combinatorially large and cannot be enumerated exhaustively. Our key idea is to narrow the search space by constraining how parts attach rather than which parts attach to each other. Concretely, given the model's predictions of the currently placed part, and the previously placed parent it wants to connect to, we constrain the model's choice of how they attach. This allows us to span the space of part attachments, using a precomputed geometric oracle, and to effectively filter out colliding options. With valid attachment candidates in hand, we bias the model's next-token distribution towards the remaining valid candidates. We evaluate our method on two LEGO®^\circledR formats and models: BrickNet, which annotates connectivity explicitly, and our proposed Implicit Connectivity LDraw Format (ICLF), which uses numeric values for placements and leaves connectivity implicit. Our method raises collision-free builds from 31% to 91% on BrickNet and from 15% to 65% on ICLF, and outperforms rejection sampling on both formats at about 60% of its decoding cost.

Introduction

Designing a LEGO® model is open-ended: the designer selects from tens of thousands of available parts, and combines them to create a desired structure. At the same time, LEGO® construction is heavily constrained by two main geometric requirements: each part must connect through compatible connectors and must avoid collisions with other parts. Thus, generating valid LEGO® assemblies is challenging for generative models [11, 27], as it requires geometric understanding of the evolving assembly. In particular, the validity of each new placement depends on the parts already placed, introducing long-range dependencies when the assembly is generated autoregressively.

Recent works utilize large language models for LEGO® generation, addressing geometric validity through two main approaches. Some methods aim to learn geometric constraints during training, either implicitly from data [10] or through reward-based optimization [34]. However, learning these constraints remains challenging, as illustrated by the collisions on the left of each example in Figure 1. Other methods check geometric validity during generation and use rollback and rejection sampling to replace invalid placements [6, 21, 24]. These methods incur additional computational cost by generating and discarding invalid placements, and may fail even when valid alternatives exist.

Comparison of unconstrained and constrained LEGO assembly generation

Figure 1. We constrain the output of large language models for LEGO® generation to enforce geometric validity. Each scene shows a build decoded freely (left) and with our method (right) for the same caption, by BrickNet-14B or, bottom left, by our ICLF model. Red marks interpenetrating parts; each inset zooms in on a colliding pair (bricks in blue and orange, the volume both occupy in red).

In this work we ask: Can large language models trained to generate LEGO® assemblies be guided at inference time to produce geometrically valid builds, while preserving their visual fidelity? Our key idea is to constrain the model’s next-token distribution during decoding, preventing invalid placements from being sampled in the first place.

This constrained decoding approach presents two main challenges. First, the set of valid placements depends on the non-predetermined build state, requiring geometric constraints to be evaluated dynamically during generation. Second, constraining the next-token distribution requires identifying valid placements before they are generated, however the space of placements is vast, with continuous degrees of freedom, making exhaustive enumeration infeasible.

We address these challenges in three steps. First, we let the model select the next part and the previously placed part to which it attaches, and focus on constraining how they connect. This reduces the space of possible placements to a manageable set of relative attachments. To enable efficient decoding, we introduce a geometric oracle, a precomputed table of possible attachments for each pair of part types. Second, during decoding, we dynamically filter these candidates based on collisions and connector availability. Third, we apply the constraints by biasing the model’s next-token distribution towards valid candidates.

We evaluate our method on two autoregressive LEGO® generation models: the pretrained BrickNet model [10], which uses explicit connectivity, and a model we train with an implicit connectivity representation (§ 3). Our method reduces their invalid placements by 98% and 79% respectively. Visual similarity to the reference builds is essentially unchanged on BrickNet and drops slightly on our model (Table 1, Figure 3). Compared to rejection sampling with eight attempts, our method produces fewer colliding parts, at ∼60% of the decoding cost on both formats (Figure 4).

ArmPartsBrickNet checker (%)ColSAT (%)Visual proxies
CF ↑Part inv. ↓Build inv. ↓CF ↑Part inv. ↓Build inv. ↓SigLIP ↑DINO ↑VQA ↑
BrickNet-14B, BN-val-512 (2048 attempts per arm)
B0 Freeform30.730.923.716.525.723.618.10.1520.6300.264
B1 + grammar & catalog30.629.124.817.724.724.218.90.1510.6320.257
B2 + collision-aware mates33.332.719.814.227.620.216.30.1510.6300.255
B3 + collision-aware placements36.147.47.46.039.19.89.50.1500.6260.261
B4 + parent veto (ours)35.490.80.51.064.14.25.70.1500.6270.257
Rejection sampling, N=8N=830.774.32.71.750.86.97.50.1500.6320.254
ICLF, 427 non-minifig BN-val captions (1708 attempts per arm)
I0 Freeform34.114.627.325.216.722.220.40.1450.6000.296
I1 + grammar & catalog34.97.434.132.210.727.425.50.1450.5960.279
I2 + collision-aware placements35.431.412.111.931.711.010.80.1440.5970.292
I3 + parent veto (ours)31.265.25.86.458.76.06.50.1420.5930.262
Rejection sampling, N=8N=833.032.811.110.229.710.59.90.1490.5970.340

Table 1. Constraint ablation. Each row adds one constraint to the row above (§ 4.2); the last row of each block is rejection sampling, which re-draws each colliding part up to N=8N=8 times (§ 6.1). Top: BrickNet-14B on BN-val-512; bottom: our ICLF model on 427 BN-val captions; four samples per caption. Parts: mean number of parts per parsable build; the other metrics are defined in § 5.2. Colors mark the three best values in each column, per block.

Qualitative comparison on BrickNet validation captions

Figure 3. Qualitative comparison on BrickNet validation captions. Each row shows BrickNet-14B (left group) and our ICLF model (right group). The quoted excerpts are the literal model inputs. Columns: freeform decoding (B0/I0), rejection sampling with N=8N=8 tries per part, the placement filter alone (B3/I2), and our full method with the parent veto (B4/I3). Colliding parts are tinted red and counted in the pills.

Figure 4. Validity against cost. Share of valid parts against wall time per output token (total decoding time, including rejected attempts, per token kept in the final build) relative to freeform decoding. We compare rejection sampling with NN tries (circles and squares) with our method (stars) on both BrickNet and ICLF (names match Table 1). Our method produces more valid parts than any rejection budget, at a lower cost.

Related Work

Brick Assembly Generation. Early works on generating brick assemblies focus on grid-aligned builds consisting of rectangular pieces. These methods convert a target shape into bricks by voxel merging and structural repair [28], or learn to place bricks sequentially [3, 29], all with a handful of brick types on a grid. More recently, large language models became popular for autoregressive brick assembly generation. BrickGPT [24] trains a text-conditioned LLM on LegoLized [15] models, over a dictionary of 8 rectangular pieces. Ge et al. [6] use a bigger part dictionary and a procedurally generated dataset of building facade assemblies to train a domain-specific image-conditioned LLM. Brick-Net [10] fine-tunes a language model on a large curated set of human-designed LDraw assemblies with diverse parts and connector types. We target the complete LDraw setting, using the BrickNet dataset and their model, while also showing results on our implicit connectivity format.

Geometric Validity in Brick Generation. Prior generators make builds valid either by shaping what the model learns or by checking what it produces. On the learning side, BrickNet [10] writes every attachment as an explicit pair of connectors and trains on collision-filtered builds, while Xu et al. [34] go further and reward collision avoidance and connectivity with reinforcement learning. Training this way makes invalid placements rarer, but nothing stops the model from sampling one. On the checking side, a brick is validated only after it is sampled, and resampled or rolled back when it fails [6, 21, 24]. Every failure then costs another round with rollback, BrickGPT takes 895 s per build, against 58 s for the RL-trained model of Xu et al. [34]. We move the check to before sampling, so that the model only ever chooses among valid placements. Ahn et al. [1] also take this approach, masking occupied cells before each brick, but without a language model and with only one or two brick types on a voxel grid. In contrast, our method restricts pretrained language models over the full LDraw part catalog, which also requires spanning the candidate placements, filtering them efficiently, and biasing the model so that it retains its generative prior.

Constrained LLM Decoding. Constrained decoding restricts a language model’s next-token distribution at each step, masking the logits of tokens that would make the output invalid. Commonly, it is applied on simple static constraints which are predetermined and can be compiled into token masks ahead of generation. Examples include: formal grammar constraints [4, 33], well-formed mesh generation [20] and valid sketch-and-extrude sequences in CAD [32]. Dynamic constraints, on the other hand, depend on the generated prefix, cannot be pre-compiled and must be evaluated during generation by querying a checker on the current state prefix. Examples include checking whether a partial program parses [26], executes [31], typechecks [19, 23], or whether a robot action is safe [9]. Geometric LEGO® validity is dynamic in this sense, since whether a placement is valid depends on every part placed before it. It also adds a second difficulty: a placement spans several tokens and its validity is determined by all of them, so it has to be checked speculatively ahead of decoding.

Preliminaries

LDraw. LDraw [8] is a community-maintained standard and part library for digital LEGO® modeling, with over 24,000 parts that each replicate a real piece. An assembly is a plain-text file in which each line places one part instance by its part ID, color, absolute position and rotation matrix (see Figure S1 in the supplementary). The format stores geometry only, so connections must be inferred from connector metadata and compatibility rules [17], and invalid builds are allowed. The use of non-natural language IDs, absolute coordinates and no connectivity hints makes the format difficult for LLMs to learn.

Figure S1. One build in three forms: the BrickNet connector program, the ICLF records of the compiled LDraw file, and the LDraw file itself. BrickNet writes two lines per part (the part, then its attachment edge), ICLF and LDraw write one line per part. Parts appear in the same order in all three forms.

Our method can be applied only to formats where parent-child relations are defined and handled by the model, constraining how parts attach. We demonstrate our approach on two different formats and models — our own Implicit Connectivity LDraw Format (ICLF) and the BrickNet [10] explicit connectivity format. These reflect different design choices for representing connectivity, and the effect of this choice is studied in § 4.3.

BrickNet. We briefly summarize the BrickNet format here for clarity, for full details see the original paper [10]. BrickNet annotates LDraw parts with typed, named connectors, each leaving few degrees of freedom, such as the yaw of a stud mate. A build is serialized as a spanning tree of its connection graph: each step declares a new part and its color, followed by a connectivity edge. The connectivity edge names a previously placed parent, the connector family, the two connector IDs across the parts and the remaining pose parameters (Figure 2, top). A compiler derives the exact offset and transform from this format and outputs regular LDraw files. Connectivity is thus explicit.

Figure 2. Constrained decoding of one part. Top: how one part is written in BrickNet’s format and in ICLF; colors mark which fields the model chooses freely and which our method constrains. (a) Given the caption and the parts built so far, the model selects the next part type and its parent; parents without any valid attachment are vetoed (olive box; the vetoed parent is shown in red, § 4.2). (b) The geometric oracle lists the ways the part can attach to its parent (§ 4.1); each candidate is placed in the build so far, SS, and checked for collisions. (c) The candidates, written as tokens, form a tree; tokens that lead only to colliding candidates are penalized by −β-\beta before sampling, and removed in the hard-mask case β→∞\beta\to\infty (§ 4.2). In the tree, …\ldots stands for the continuations the oracle does not offer. The dashed box zooms in on the last decoded token: its original next-token probabilities and the constrained ones, in which the colliding 270 and the continuations the oracle does not offer are lowered by β\beta. The decoded part joins the build and the loop repeats.

BrickNet released text-conditioned models of up to 14B parameters, which we use without retraining, and a mesh-based collision checker. To check candidate placements during decoding, we use their meshes and implement an efficient collision checker on GPU, batching candidate poses against the current build (Sec. B.1 in the supplementary).

Implicit Connectivity LDraw Format (ICLF). We propose a relative LDraw format with implicit connectivity and numeric placement values. ICLF places each part relative to its parent: a part declaration is a single line with the part name, color and parent, followed by the offset and the rotation (Figure 2, top). The offset is in LDraw units in the parent’s frame, and the rotation is one of the 24 axis-aligned rotations (e.g. Y90), with axis–angle or matrix notation for the rest. No connectors are named, so connectivity is implicit, following only from the geometry, and the model commits to an attachment through the offset coordinates and the rotation. We fine-tune Qwen3.6-27B [25] on captioned ICLF builds, including BrickNet’s training builds converted to ICLF (§ 5.1). For the full implementation details refer to Sec. A.1 in the supplementary.

Method

Our method enforces geometric validity on a pretrained language model’s output by restricting the model’s next-token distribution to known valid placements. § 4.1 describes how we build and use the geometric oracle, which lists the candidate placements of a new part. § 4.2 describes how we filter these candidates against the assembly and turn the remaining candidates into token constraints. Finally, § 4.3 explains how our method applies to both implicit and explicit representations of connectivity information.

Geometric Placement Oracle

A placement is serialized to a series of several tokens, and all are required to determine whether it collides or not. Therefore, to prevent sampling an invalid placement, we must first list all possible placements, and check which of them are valid in the context of the current build, ahead of sampling an attachment. Listing and checking every placement of every part type in the LEGO® catalog is intractable.

Instead, we let the model choose the part type and the previously placed parent part, to which it attaches, and constrain only how they attach. The set of possible attachments depends only on the part types of the currently placed brick and its parent and, crucially, not on the rest of the build, so it can be precomputed. We build and store this static map, which we call the geometric oracle (panel b in Figure 2): for a given part type tt and a parent of type tpt_p the oracle returns a finite set C(t,tp)C(t,t_p) of candidate attachments. Each attachment consists of the connector-to-connector pairing across the parts and its pose parameters.

We build the oracle from two complementary sources: The first enumerates all the pairs of part types, and for each pair every compatible connector pairing across the part types. For each such connector pairing, we sample the connection’s pose free variables from a coarse grid of connector specific values (full details in Sec. C in the supplementary). We measure how expressive the geometric oracle is by its coverage of the attachments used in our validation set. Enumeration covers nearly all stud attachments (98%) but only 15% of axle and 43% of hinge attachments, whose angles and slides are continuous.

We therefore add empirical attachments from the training builds, which supply common off-grid attachments that a grid cannot reach. Together the two sources raise axle and hinge coverage to 68% and 92%, and cover 96% of the attachments in the validation set (Table S2 in the supplementary). An attachment missing from both sources can never be proposed by the oracle.

FamilyEdgesEmpiricalEnumeratedUnion
Stud29,45578.1697.6897.98
Axle1,64163.7415.3067.58
Hinge54490.9943.2092.46
Ball6078.3373.3385.00
Fixed54895.99100.00100.00
All edges32,24877.9492.5696.35
Pair mean–70.6587.0693.34

Table S2. Oracle coverage (%) of BrickNet validation builds. The last row averages within-pair coverage across 5,524 pairs.

Geometric Filters as Token Constraints

The geometric oracle lists how a part can attach to its parent, but not which of these attachments fit the current build SS. We therefore filter the oracle candidates against SS, rejecting those that collide with it. For a part of type tt and a parent of type tpt_p, we denote the subset of valid candidates in SS as

Fp(S)={c∈C(t,tp):c is valid in S}(1)F_p(S) = \{c \in C(t,t_p) : c\text{ is valid in }S\} \tag*{(1)}

where validity is determined by our efficient GPU collision checker implementation (Sec. B.1 in the supplementary).

Since the model writes an attachment token by token, the list of valid attachments must be converted to next-token constraints. We tokenize the remaining candidates and build a prefix tree on them, so the model chooses a logical attachment incrementally token by token (each token is a node of the tree). The process is shown in Figure 2 panel (c). We examine how the choice of format language affects the shape of the prefix tree in § 4.3. Formally, at decoding step ii, with a<ia_{<i} the attachment tokens decoded so far, the set of valid next tokens is given by

Ai={v:∃c∈Fp(S),a<iv⪯s(c)},(2)A_i = \{v : \exists c \in F_p(S), a_{<i}v \preceq s(c)\}, \tag*{(2)}

where s(c)s(c) denotes the tokenization of attachment cc and ⪯\preceq denotes the prefix relation.

Beneath the geometric constraint, we restrict the model to the format’s grammar, which removes tokens that would make the serialization unparsable or name a non-existent part. Let ziz_i be the model’s next-token logits given the tokens y<iy_{<i} decoded so far. We bias towards valid attachments by penalizing tokens outside AiA_i:

pβ(v∣y<i)=softmax⁡(zi(v)+gi(v)−βbi(v)),(3)p_\beta(v \mid y_{<i}) = \operatorname{softmax}\bigl(z_i(v) + g_i(v) - \beta b_i(v)\bigr), \tag*{(3)}

where gi(v)g_i(v) is 0 for tokens the grammar allows and −∞-\infty otherwise, bi(v)=1[Ai≠∅,v∉Ai]b_i(v) = \mathbf{1}[A_i \ne\varnothing, v \notin A_i] indicates tokens outside AiA_i, and β≥0\beta\ge0 is a hyperparameter. Note that β\beta sets the threshold for how confident the model must be to overrule the oracle. As β→∞\beta\to\infty the model is restricted to oracle-valid continuations, and at β=0\beta= 0 no geometric constraint is imposed. A finite β\beta is appealing because a hard restriction may force the model to make a geometrically valid, but aesthetically poor attachment choice when only few valid candidates exist (oracle coverage is incomplete). If no candidate survives, or if the model overrules the oracle, the rest of the attachment is decoded with the grammar alone. In § 6.3 we sweep β\beta to test whether letting the model overrule the oracle helps, and default to the hard mask (β→∞\beta\to\infty) unless otherwise noted.

Parent veto. The placement filter acts only after the parent is chosen, so a parent with no surviving candidate forces the grammar-only fallback. We prevent choosing a parent that will result in grammar-only fallback by adding a constraint on the parent token: a parent must have at least one valid attachment, i.e. Fp(S)≠∅F_p(S) \ne\varnothing, falling back to the grammar if no such parent exists.

Format and Prefix-Tree Shape

The oracle and the filtering operations described in previous sections are independent of the assembly format. The format only affects how logical attachments are tokenized into a prefix tree. The shape of the tree determines how the attachment choices spread over the decoded tokens, and thus which choice the model makes at each token. To measure this, we sample part-type pairs from BrickNet’s validation builds, weighted by how often they occur, write the same candidate placements in both formats, tokenize them with each model’s tokenizer, and count the children per node at each level of the resulting trees (Sec. A.2 and Table S1 in the supplementary). BrickNet’s tree is wide and shallow: an attachment takes 9.6 tokens, and the choice of candidates is mostly made at the two connector tokens, which split into about 16 and 5 branches on average. ICLF’s tree is deeper and narrower: an attachment takes 12.7 tokens, and apart from two levels with about 6 and 2 branches, every node has fewer than two children, so the choice spreads over the digits of the offset and the rotation. Our method successfully reduces invalid placements on both ICLF and the BrickNet formats (§ 6.2). Since the ICLF and BrickNet models differ in architecture and training data (§ 5), we compare constraints within each model and not across them.

BrickNetICLF
Candidates per pair, median175175
Tokens per attachment, mean9.612.7
Tree depth, median1014
Tree nodes, median753947
Mean branching, two widest levels15.8, 4.75.7, 2.0
Mean branching, other levels<3<3≤1.8\le1.8

Table S1. Shape of the candidate prefix tree before collision filtering, over 200 occurrence-weighted part-type pairs from BrickNet’s validation builds. Both columns hold the same placements (strings that describe one physical placement merged), written in each format and tokenized with that model’s tokenizer. Branching: the mean number of children of a node at one tree level, averaged over pairs; BrickNet’s two widest levels are the parent-connector and child-connector tokens, ICLF’s are its first two tokens.

Experimental Setup

Models and Datasets

Models. Our ICLF model is based on Qwen3.6-27B [25], fine-tuned with a rank-512 LoRA (training details in Sec. A.3 in the supplementary). We train it on BrickNet’s training builds converted to ICLF. We remove LEGO® minifigures from the builds, as their parts and orientations follow an irregular distribution and are mostly decorative additions to the builds. We also use BrickNet-14B [10], which is based on Qwen3 [35], without retraining. As the two models differ in data and representation, we compare constraints within each model.

Evaluation data. We evaluate on BrickNet’s validation set of 512 captions (BN-val-512), held out from training, with four samples per caption. For the ICLF model we omit minifigure-centered builds, leaving 427 captions.

Metrics

Structural validity. We count a part as invalid if it collides with an earlier part. We report the percentage of collision-free builds (CFCF), defined as builds with no detected collisions, and two invalidity metrics: Part inv., the fraction of invalid parts across all builds, and Build inv., the average over all builds of the fraction of invalid parts per build. These measures are defined as:

Ppart=∑bcb∑bnb,Pbuild=1B∑b=1Bcbnb,(4)P_{\mathrm{part}} = \frac{\sum_b c_b}{\sum_b n_b}, \qquad P_{\mathrm{build}} = \frac{1}{B}\sum_{b=1}^{B}\frac{c_b}{n_b}, \tag*{(4)}

where BB is the number of builds and for each build bb, nbn_b is the number of parts and cbc_b is the number of invalid parts. We detect collisions with two checkers: the first is BrickNet’s mesh checker, which our decoder also queries (Sec. B.1 in the supplementary). The second, ColSAT, follows the check human designers rely on: it tests collisions using oriented collision boxes from BrickLink Studio [2], an LDraw editor, i.e. the collisions a designer sees flagged while building (Sec. B.2 in the supplementary). ColSAT uses a different collision test from the one used during decoding, helping identify cases where the decoder exploits inaccuracies in the BrickNet checker. Neither checker is exact, as connectors can touch without overlapping and LDraw meshes are not watertight, potentially causing both false positive and false negative results in both checkers.

Visual agreement. We measure prompt adherence using SigLIP2 [30] image–caption similarity and VQAScore [13], and resemblance to the reference build with DINOv2 [22] image–image similarity. Each metric is averaged over front and back renders, since a build may be recognizable from only one side.

Results

Comparisons

We compare our method against two baselines for each model: unconstrained decoding and rejection sampling [6, 21, 24]. Rejection sampling is a natural approach to enforcing structural validity, but it relies on the model proposing valid placements and requires decoding each unsuccessful attempt. In contrast, our method filters invalid placements before sampling. Table 1 compares their validity and visual fidelity, and Figure 3 shows qualitative examples.

Validity. Under unconstrained decoding, only 30.9% of the assemblies generated by BrickNet-14B are collision-free (Table 1). Rejection sampling improves the percentage of collision-free builds from 30.9% to 49.6% with up to two attempts per part, and to 74.3% with eight attempts (Table S4 in the supplementary). Furthermore, rejection sampling cannot resolve an invalid parent choice: if the selected parent has no valid attachment for the new part, repeated sampling may fail to find a valid placement.

ArmCF (%) ↑Part inv. (%) ↓ BNPart inv. (%) ↓ ColSATTime/tok (× freeform) ↓
BrickNet-14B, BN-val-512
Freeform (B0)30.923.723.61.00
Rejection, N=2N=249.610.513.51.65
Rejection, N=4N=464.35.39.12.01
Rejection, N=8N=874.32.76.92.14
B4 parent veto (ours)90.80.54.21.26
ICLF, 427 BN-val captions
Freeform (I0)14.627.322.21.00
Rejection, N=2N=220.819.616.41.57
Rejection, N=4N=426.514.913.21.99
Rejection, N=8N=832.811.110.52.47
I3 parent veto (ours)65.25.86.01.56

Table S4. Constrained decoding against per-part rejection sampling at every budget: the data of Figure 4 in the main paper, four samples per caption. CF: collision-free builds (BrickNet checker); Part inv.: % of parts that are the later-placed part of a colliding pair. Rejection re-draws a part while the collision checker flags it or it does not parse, up to NN tries. Time/tok: wall time per token kept in the final build (rejection counts its discarded tries), relative to freeform decoding on one B200 GPU (96 builds per configuration).

The parent veto removes such parents before the part is written (§ 4.2), and our full method achieves 90.8% collision-free builds, with only 0.5% of parts invalid compared to 2.7% for rejection sampling with N=8N=8. Our method also outperforms rejection sampling and unconstrained decoding under ColSAT, an independent collision checker not used during decoding. This suggests that the improvement is not specific to the checker used during generation. On ICLF, our method (I3) outperforms rejection sampling with N=8N=8, doubling collision-free builds (65.2% vs. 32.8%) and halving invalid parts (5.8% vs. 11.1%).

Cost. Every rejected attempt costs additional decoding, so the cost of rejection sampling grows with the number of attempts (Figure 4). We measure cost as wall time per output token: the total decoding time, including rejected attempts, divided by the number of tokens in the final build, since build length varies across methods and prompts. On BrickNet-14B, rejection sampling with two, four, and eight attempts takes 1.65×1.65\times, 2.01×2.01\times, and 2.14×2.14\times the time per output token of unconstrained decoding. Our method (B4) needs no additional model calls; its only overhead is checking the candidate placements on the GPU (§ 3), which brings its

cost to 1.26×1.26\times, while it also leaves fewer invalid parts. On ICLF, our method (I3) takes 1.56×1.56\times the time per output token of unconstrained decoding, compared to 2.47×2.47\times for rejection sampling with up to eight attempts per part.

Fidelity. On BrickNet-14B, both our method (B4) and rejection sampling largely preserve visual fidelity compared to unconstrained decoding, with similar DINO similarities and VQA scores (Table 1). On ICLF, our method (I3) keeps DINO similarity close to unconstrained decoding and rejection sampling (0.593 vs. 0.600 and 0.597) but lowers the VQA score (0.262 vs. 0.296 and 0.340). Figure 3 shows examples from both models, illustrating how our method reduces collisions while largely preserving the appearance of the builds.

Geometric Constraint Ablations

We conduct an ablation study to evaluate the contribution of each constraint in our decoding method. Table 1 progressively adds constraints, from unconstrained decoding to our full method (§ 4.2). We first apply grammar and catalog constraints (B1, I1), which improve the percentage of parsable outputs on BrickNet-14B from 94.2% to 99.5% (Table S3 in the supplementary), but do not reduce geometric invalidity (Table 1).

ArmParse (%) ↑CF (%) ↑Time/tok (× freeform) ↓
BrickNet-14B, BN-val-512
B0 freeform94.230.91.00
B1 + grammar & catalog99.529.1–
B4 + parent veto99.490.81.26
Rejection, N=2N=2100.049.61.65
Rejection, N=4N=4100.064.32.01
Rejection, N=8N=8100.074.32.14
ICLF, 427 BN-val captions
I0 freeform98.714.61.00
I1 + grammar & catalog98.77.4–
I3 + parent veto98.865.21.56
Rejection, N=2N=299.820.81.57
Rejection, N=4N=499.926.51.99
Rejection, N=8N=899.832.82.47

Table S3. Parse yield and decoding cost of the final mesh-checker decoders on both models. Parse: % of the attempts (2048 for BrickNet-14B, 1708 for ICLF) that are parsable; CF: collision-free attempts under the BrickNet checker (Table 1 in the main paper). Time/tok: wall time per token kept in the final build (rejection counts its discarded tries), relative to freeform decoding on one B200 GPU (96 builds per configuration).

Connector Constraints vs. Full Placement Constraints. For BrickNet, we first evaluate constraining only the connector pair (B2), while leaving the remaining pose parameters unconstrained. This reduces invalid parts only from 23.7% to 19.8%, since the model can still select an invalid pose, such as a rotation about the connector axis. In contrast, ICLF does not explicitly represent connector pairs, so this ablation is not applicable. Constraining the complete placement (B3 for BrickNet and I2 for ICLF), including filtering occupied connectors, substantially reduces invalid parts to 7.4% and 12.1%, respectively. On BrickNet, this also increases collision-free builds from 30.9% to 47.4%.

The Importance of Parent Selection. On BrickNet, 99.9% of the invalid parts in B3 are attached to parents with no valid candidate placements (Sec. D.2 in the supplementary). In these cases, decoding falls back to grammar constraints alone, often resulting in invalid placements. The parent veto (B4) prevents the model from selecting such parents, reducing invalid parts from 7.4% to 0.5% and increasing collision-free builds from 47.4% to 90.8%, at only 1.26× the per-token cost of unconstrained decoding (Table S3 in the supplementary). On ICLF, the parent veto (I3) similarly reduces invalid parts from 12.1% to 5.8% and increases collision-free builds from 31.4% to 65.2%.

Constraint Strength Ablation

Our formulation controls the strength of geometric constraints through β\beta (Eq. (3)). With a finite β\beta, invalid placements are penalized rather than completely masked out, allowing the model to override the geometric constraints when it is confident enough. This flexibility may be useful when the geometric oracle does not include the placement intended by the model. We investigate whether such overrides improve visual fidelity by varying β\beta while keeping the parent veto disabled. At β=0\beta= 0, only grammar and catalog constraints are applied (B1/I1). Increasing β\beta penalizes invalid placements more strongly, until β→∞\beta\to\infty imposes hard placement constraints (B3/I2).

Figure 5 shows the trade-off between geometric validity and visual fidelity for both models. On BrickNet-14B, increasing β\beta substantially reduces invalid placements, while DINO similarity remains nearly unchanged. Thus, soft constraints provide little benefit over the hard mask. On ICLF, the penalty removes less than half of the invalid parts that the hard mask removes: at β=8\beta=8, 24.4% of parts are invalid against 12.1% under the mask, while DINO similarity varies by at most 0.005 across the sweep. The VQA score rises slightly with β\beta (0.279 at β=0\beta=0 to 0.309 at β=8\beta=8, against 0.292 under the mask), at twice the share of invalid parts. Overall, the hard mask provides the most favorable trade-off for both models.

Figure 5. Hard versus soft constraints on BrickNet-14B (left) and ICLF (right). Each curve sweeps the placement penalty from freeform decoding (square) through β=0,1,2,4,8\beta= 0, 1, 2, 4, 8 (circles) to the hard mask (diamond).

To understand why soft constraints are less effective, we analyze 256 BrickNet-14B builds at each β\beta and examine cases where the model overrides the geometric constraints (Sec. E.2 in the supplementary). Even at β=1\beta=1, overrides put nearly all the probability outside AiA_i, so they are confident predictions, not sampling noise. However, most overrides (65–73%) select placements included in the oracle but rejected by the collision checker, and approximately 70% of all overrides result in collisions. These findings suggest that the model’s confidence is not a reliable indicator of geometric validity, motivating our use of hard constraints.

Limitations

Our validity is geometric: we check collisions and attachments, not stability [24], so a valid build can still fall over. Another limitation is that our method relies on a partially relational format where each part names its parent, and part type is not constrained. This means that not every output token is constrained, and the model may commit to a part type that cannot be added validly to the build. Finally, our method inherits the visual quality of the base model, which is limited: many of its builds resemble their captions only loosely (Figure 6), and since we constrain only how parts attach, our builds look no better.

Reference, freeform, and constrained builds illustrating collision-free and colliding placements

Figure 6. Limitations. When the base model cannot build the captioned object (left), our method makes the build collision-free (right) but no more recognizable than unconstrained decoding (middle): we constrain how parts attach, not which parts the model chooses, nor by the appearance of a placement

Conclusion

We presented a constrained decoding method that enforces geometric validity during decoding, without retraining the model. Instead of enumerating every placement, we let the model choose a part and its parent, list how the two can attach with a precomputed oracle, filter that list against the current build, and bias the next-token distribution towards valid attachments; a parent veto avoids parents that have no valid attachment left. The gains hold under ColSAT, a checker the decoder never queries, and on ICLF, a format without connector annotations, where the constraints cut invalid parts from 27% to 6%, at the cost of a lower VQA score. This work shows that incorporating closed-form procedures into autoregressive generation can improve a pretrained LLM’s performance on tasks it struggles with, with little harmful policy drift. Applying the approach to other domains where LLMs violate easily verifiable constraints, such as robotics and simulation remains future work.

Implicit Connectivity LDraw Format (ICLF)

Record Format and Rotation Encoding

An ICLF part line contains its index in the build, part-type name, color, reference, translation, and orientation. A relative parent reference includes the index of an earlier part and its part-type name. If the parent has world pose (Rp,tp)(R_p,t_p) and the record specifies (Rr,d)(R_r,d), the child pose is Rc=RpRrR_c = R_pR_r, tc=tp+Rpdt_c = t_p+R_pd. An absolute record instead specifies (Rc,tc)(R_c,t_c) directly. Translation is in LDraw [8] units. Orientation encoding is detailed below.

Part fields. Part and color fields use readable natural language names rather than LDraw’s numerical identifiers. Each record has an explicit brick index; a relative reference repeats the parent’s part-type name as well as its index (Figure S1). The record specifies a relative offset and rotation directly, so connector compatibility must be inferred from the resulting placement rather than from an explicit connector-instance pair. This geometric interface is shared across connector families.

Orientation encoding. The orientation field represents the parent-relative rotation RrR_r for a referenced brick, or the world rotation RcR_c for an absolute @ record. The compact vocabulary covers the 24 proper rotations that align the brick’s local axes with the reference axes. It includes the identity transform I, single-axis labels such as Z90, and compound labels such as X90.Y90. Angles are in degrees. A compound label is decoded as an ordered matrix product: X90.Y90 denotes Rx(90∘)Ry(90∘)R_x(90^\circ)R_y(90^\circ), with the rightmost rotation acting first on a column vector. An omitted orientation field is parsed as identity; the converter omits explicit I.

Other orientations use axis–angle notation R:ax,ay,az,deg, whose axis is normalized during decoding, or an explicit matrix M: followed by nine comma-separated entries in row-major order. Matrix notation represents

R=[m11m12m13m21m22m23m31m32m33].(5)R = \begin{bmatrix} m_{11} & m_{12} & m_{13} \\ m_{21} & m_{22} & m_{23} \\ m_{31} & m_{32} & m_{33} \end{bmatrix}. \tag*{(5)}

Reference kinds. A snap reference (>) names an already placed part that the new part connects to in the LDraw connector graph (LDCad shadow metadata [17]); a proximity reference (˜) names the nearest placed part for an attachment that the build and BrickNet’s connection graph contain but LDCad’s connector metadata does not confirm, so such parts keep a short, local offset; an absolute record (@) has no parent and starts a new root. A generated > is the model’s prediction, not evidence of a valid connection. During constrained decoding the reference kind is chosen by the decoder: it offers the oracle’s connector-based candidates (>) that pass the collision check, otherwise the oracle’s proximity placements (˜) observed in the training builds, under the same check; if neither survives, it writes ˜ and the offset is decoded with the grammar alone.

Prefix-Tree Shape

The two formats give the candidate prefix tree (§ 4.2 in the main paper) different shapes (Table S1). We sample 200 part-type pairs from BrickNet’s [10] validation builds, weighted by how often they occur, and compare the same attachments written in both syntaxes. For each pair we take BrickNet’s enumerated merge strings that describe the same physical placement (BrickNet can name one placement with several connector pairs, about two strings per placement), write each placement once in BrickNet and once in ICLF syntax, and tokenize it with the corresponding model’s tokenizer. On identical placements, an ICLF attachment takes 12.7 tokens against 9.6, and its tree is deeper (median depth 14 against 10). The branching also moves: BrickNet’s tree branches mostly at the parent-connector and child-connector tokens, while ICLF’s branches thinly at nearly every digit of the offset and the rotation.

Model Training

Our ICLF model fine-tunes Qwen3.6-27B [25] with a rank-512 LoRA [7] (α\alpha=512, no dropout) on all linear projections. We train on BrickNet’s training builds converted to ICLF, and compute the loss on the assistant response only. Minifigure parts are removed from every training build (parts the LDraw catalog files as minifigure parts or whose name begins with “Minifig”), so the model does not emit minifigures. For the ICLF evaluation we therefore drop the BN-val-512 captions that ask for one: a caption is dropped if “minifig”, “minifigure” or “figure” occurs in its first 200 characters, which removes 85 captions and leaves 427. We use AdamW [14] (β=(0.9,0.999)\beta=(0.9, 0.999), no weight decay, gradient clipping at 1.0) in bf16 with a global batch of 48 conversations of up to 32,768 tokens on four B200 GPUs. The first stage warms up over 50 steps to a learning rate of 2×10−42 \times10^{-4} with cosine decay over a 2,800-step schedule, and we stop it at step 2,600. A warm restart continues from that adapter with a peak learning rate of 5×10−55 \times10^{-5} (50 warmup steps, cosine decay over 3,000 steps); we take its step 2,000 (4,600 steps in total) and merge the adapter into the base weights for decoding.

One Build in LDraw, BrickNet and ICLF

Figure S1 shows one five-part build in the three forms used in this paper. The ICLF records encode the LDraw file, with the parts in the same order.

LDraw file. The LDraw panel of Figure S1 is the output of BrickNet’s own compiler for the BrickNet program in the same figure. Each LDraw line has type 1 (a part reference), followed by the color code, the position xx yy zz in LDraw units (one stud pitch is 20 units and the yy axis points down), the nine entries of the rotation matrix row by row, and the part file. For example, the second line places a tan (19) 2×6 plate (3795.dat) 8 units above the root, rotated by 90° about the vertical axis. Nothing in the file states which parts connect.

Collision Checkers

BrickNet Mesh Checker and GPU Port

BrickNet’s collision test replaces each part by its collision mesh shrunk (inset) by 0.25 LDU and declares two parts colliding when a triangle of one crosses a triangle of the other; coincident duplicate parts also collide. The released scorer applies this test with MeshLib [18] after a spatial broad phase. A part joined to its parent by a fixed mount is meant to interpenetrate it, so BrickNet’s scorer skips that one pair; every other pair is checked. Our decoder uses a Warp [16] GPU port of the same test (per-part bounding-volume hierarchies, candidate poses batched against a shared scene, incremental per-rollout scenes). On 6,000 BrickNet-14B output builds for BN-val-512 (three decoder configurations), the port and the released scorer agree on 70,263 colliding pairs; the port reports 29 additional pairs and misses none, and the two flag the same builds. Our decoders apply the same exemption. ICLF outputs are converted to LDraw and scored with the same released collision test, with parts checked in record order; BrickNet’s LDraw parser recovers connections from the geometry, and fixed-mount pairs are exempted in the same way.

ColSAT: Oriented Collision Boxes

Separating-axis box test. ColSAT applies the standard separating-axis test [5] to every pair of Studio [2] collision boxes; touching boxes do not collide. Table 1 in the main paper counts only the later-placed part of each remaining colliding pair.

Geometric Oracle Coverage

We compare candidate sources on 32,248 directed attachment occurrences from the BrickNet validation set, spanning 5,524 ordered part-type pairs and 1,137 part types. An attachment counts as covered when its exact connector pair and pose are among the oracle’s candidates. The oracle is a single set of placements shared by both formats: an ICLF attachment and a BrickNet attachment are the same placement written in different syntax, so the coverage below holds for both.

Enumeration samples each free pose variable of a connector pair on a fixed grid: rotations about the connector axis in 90∘90^\circ steps and slides along it of {−20,0,20}\{-20, 0, 20\} LDU, with at most 65,536 lines stored per part-type pair.

The enumerated part of the oracle is precomputed once and stored per part-type pair, built in 538 s on 128 CPU cores. Enumeration supplies 5,936 occurrences absent from

the oracle’s empirical attachments (those observed in BrickNet’s training builds), while empirical candidates supply 1,222 absent from enumeration; their union covers 96.35%. Enumeration alone is nearly complete for studs (97.68%) but covers only 15.30% of axle and 43.20% of hinge attachments, whose off-grid placements the oracle’s empirical attachments supply. Five pairs exceed the 65,536-attachment cap; their 488 occurrences remain in the denominator and account for 488 of the union’s 1,177 misses.

Additional Results

Decoding setup. Both models are served with vLLM [12], and every decoder samples four outputs per caption with the same four seeds. BrickNet-14B is prompted with the caption and sampled at temperature 1.0 with top-pp 0.95 and top-kk 20, for at most 3,800 generated tokens, within a 4,096-token serving context that includes the prompt. Our ICLF model is prompted with its training system prompt followed by the BrickNet caption and sampled at temperature 1.0, for at most 8,192 generated tokens, in bf16 on one B200 GPU per shard. Decoding sets no cap on the number of parts.

Decoding Cost and Rejection Budgets

Table S3 gives the parse yield and decoding cost of the final mesh-checker decoders on both models.

Table S4 compares the parent-veto decoder with per-part rejection sampling at every budget on both models (§ 6.1 and Figure 4 in the main paper).

Where the Remaining Invalid Parts Come From

We mark each attachment whose chosen parent had no surviving candidate, so that decoding fell back to the grammar (§ 4.2 in the main paper), and compare these with the invalid parts under the BrickNet checker, for BrickNet-14B on BN-val-512. In B3, 7.6% of the attachments fall back, and they account for 99.93% of the invalid parts (5,408 of 5,412); every attachment that falls back is invalid. With the parent veto (B4), fallbacks drop to 0.55% of the attachments and still account for 386 of the 388 invalid parts.

Soft Guidance

Setup

Figure 5 in the main paper gives the β\beta sweeps of both models under the soft penalty of Eq. (3) in the main paper, with the parent veto disabled and decoded with the mesh checker; β=0\beta=0 applies only the grammar and catalog constraints, and β→∞\beta\to\infty is the hard mask. We say the model overrides the penalty at an attachment when AiA_i is non-empty and it samples a token outside AiA_i, so the part it commits is not one of the candidates that passed the collision check.

Where the Model Overrides the Penalty

We force the saved outputs of 256 BrickNet-14B builds per β\beta (captions 0–127, two samples each) back through the soft decoder; it reproduces every output token for token, and

we record at each attachment whether a sampled token left AiA_i. Table S5 summarizes the overrides. They are confident: at the token where the model leaves AiA_i, its median probability outside AiA_i before the penalty is above 0.99 at every β\beta. Most overrides (65–73%) commit an oracle placement that the collision test rejected, and 93–95% of these collide. The others commit a placement the oracle does not contain; most of these are valid (6–26% invalid), consistent with the oracle missing some valid placements (Sec. C). About three quarters of the overrides leave AiA_i at the connector tokens, before any pose number is written, and 82–86% of these are invalid, against 17–38% for overrides at the pose numbers.

β\betaOverrides (% att.)Invalid (%)In oracle (%)Invalid (%) in oracleInvalid (%) off oracleProb. outside AiA_i (median)
118.169.873.293.16.50.993
216.471.071.494.711.90.998
411.272.072.195.112.31.000
84.770.465.394.125.71.000

Table S5. Overrides of the soft penalty, BrickNet-14B, 256 re-played builds per β\beta. Overrides: share of all attachments at which a sampled token left a non-empty AiA_i (attachments with an empty AiA_i, 7–10%, are not counted). Invalid: the committed part collides with an earlier part under BrickNet’s mesh checker (Sec. B.1). In oracle: overrides whose committed placement is an oracle placement rejected by the collision test. Prob. outside AiA_i: the model’s probability mass outside AiA_i at the token where it left, before the penalty.

Qualitative Examples

Figure S2–Figure S3 show ten BN-val-512 captions on BrickNet-14B and Figure S4–Figure S5 ten captions on our ICLF model, with the decoders of Table 1 in the main paper.

Qualitative examples of BrickNet-14B on BN-val-512 captions, with columns Reference, Freeform (B0), Rejection (N=8), B2 collision-aware mates, B3 collision-aware placements, and B4 parent veto Ours. Five rows show LEGO vehicle examples with collision counts and collision-free labels.

Figure S2. Qualitative examples (1/2): BrickNet-14B on BN-val-512 captions. Columns follow Table 1 in the main paper without B1. “Colliding” counts the parts in a collision under the BrickNet mesh checker.

Qualitative examples showing BrickNet-14B outputs for brick buildings, vehicles, train station platforms, snowmobile-like vehicles, and four-legged creatures or structures

Figure S3. Qualitative examples (2/2): BrickNet-14B on BN-val-512 captions. Columns follow Table 1 in the main paper without B1. “Colliding” counts the parts in a collision under the BrickNet mesh checker.

Qualitative examples (1/2): our ICLF model

Figure S4. Qualitative examples (1/2): our ICLF model. Columns follow Table 1 in the main paper. “Colliding” counts the parts in a collision under the BrickNet mesh checker.

Qualitative examples (2/2): our ICLF model, showing LEGO models across Reference, Freeform (I0), ICLF Rejection (N=8), I2 collision-aware, and I3 parent veto Ours columns

Figure S5. Qualitative examples (2/2): our ICLF model. Columns follow Table 1 in the main paper. “Colliding” counts the parts in a collision under the BrickNet mesh checker. Graphic labels: Reference; Freeform (I0); ICLF Rejection (N=8); I2 collision-aware; I3 parent veto Ours; reference; 1 colliding; 2 colliding; ✓ collision-free; “This is a low-poly, blocky LEGO model of a futuristic blue race car or speeder, featuring large rear wheels…”; reference; 11 colliding; 4 colliding; 4 colliding; ✓ collision-free; “This is a small, custom-built LEGO spaceship featuring a grey and blue color scheme… armed with multiple stud shooters…”; reference; 14 colliding; 7 colliding; 3 colliding; 4 colliding; “This is a 3D digital model of a stylized, blocky LEGO vehicle, resembling a futuristic truck or armored van…”; reference; 2 colliding; 2 colliding; 2 colliding; 2 colliding; “...a blue, grey, and black all-terrain vehicle (ATV) or quad bike, featuring large treaded wheels, a roll cage…”; reference; 15 colliding; ✓ collision-free; ✓ collision-free; ✓ collision-free; “This LEGO model depicts a small farm scene, featuring a tan baseplate… and a brown two-rail fence enclosing a corner…”

References

  1. [1]Seokjun Ahn, Jungtaek Kim, Minsu Cho, and Jaesik Park. Budget-aware sequential brick assembly with efficient constraint satisfaction. Transactions on Machine Learning Research, 2024.arxiv.org/abs/2210.01021
  2. [2]BrickLink. Collision: Studio help center. https://studionelp.bricklink.com/hc/en-us/articles/5418202155927-Collision, 2026. Accessed 24 September 2026.
  3. [3]Hyunsoo Chung, Jungtaek Kim, Boris Knyazev, Jinhwi Lee, Graham W. Taylor, Jaesik Park, and Minsu Cho. Brick-by-brick: Combinatorial construction with deep reinforcement learning. In Advances in Neural Information Processing Systems, pages 5745–5757, 2021.arxiv.org/abs/2110.15481
  4. [4]Yixin Dong et al. XGrammar: Flexible and efficient structured generation engine for large language models. In ML-Sys, 2025. arXiv:2411.15100.arxiv.org/abs/2411.15100
  5. [5]David Eberly. Intersection of convex objects: The method of separating axes. Geometric Tools. https://www.geometrictools.com/Documentation/MethodOfSeparatingAxes.pdf, 2022. Last modified 20 June 2022.
  6. [6]Jiahao Ge, Mingjun Zhou, Han-You Zheng, Hao Xu, and Chi-Wing Fu. LEGO®-Maker: Autoregressive image-conditioned LEGO® model creation. ACM Transactions on Graphics (TOG), 44:1 – 15, 2025.DOI
  7. [7]Edward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yanhong Li, Shen Wang, Lu Wang, and Weizhu Chen. LoRA: Low-rank adaptation of large language models. In International Conference on Learning Representations (ICLR), 2022.arxiv.org/abs/2106.09685
  8. [8]James Jessiman. LDraw. https://www.ldraw.org, 2026. 1995–2026.
  9. [9]Parv Kapoor, Akila Ganlath, Michael Clifford, Changliu Liu, Sebastian Scherer, and Eunsuk Kang. SafeDec: Constrained decoding for safe autoregressive generalist robot navigation policies. In International Conference on Machine Learning, 2026. arXiv:2509.01728.
  10. [10]Peter Kulits and Cordelia Schmid. BrickNet: Graph-backed generative brick assembly. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2026.arxiv.org/abs/2604.22984
  11. [11]Peter Kulits, Yiqing Xu, R. Kenny Jones, Cordelia Schmid, and Jiajun Wu. Brickbench: Evaluating agentic brick design. arXiv preprint arXiv:2610.12452, 2026.arxiv.org/abs/2610.12452
  12. [12]Woosuk Kwon, Zhuohan Li, Siyuan Zhuang, Ying Sheng, Lianmin Zheng, Cody Hao Yu, Joseph E. Gonzalez, Hao Zhang, and Ion Stoica. Efficient memory management for large language model serving with PagedAttention. In Proceedings of the 29th Symposium on Operating Systems Principles (SOSP), 2023.arxiv.org/abs/2309.06180
  13. [13]Zhiqiu Lin, Deepak Pathak, Baiqi Li, Jiaxiao Li, Xide Xia, Graham Neubig, Pengchuan Zhang, and Deva Ramanan. Evaluating text-to-visual generation with image-to-text generation. In European Conference on Computer Vision (ECCV), 2024.arxiv.org/abs/2404.01291
  14. [14]Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. In International Conference on Learning Representations (ICLR), 2019.
  15. [15]Sheng-Jie Luo, Yonghao Yue, Chun-Kai Huang, Yu-Huan Chung, Sei Imai, Tomoyuki Nishita, and Bing-Yu Chen. LEGOization: optimizing LEGO designs. ACM Trans. Graph., 34(6), 2015.DOI
  16. [16]Miles Macklin. Warp: A high-performance Python framework for GPU simulation and graphics. NVIDIA GPU Technology Conference (GTC), https://github.com/nvidia/warp, 2022.
  17. [17]Roland Melkert. LDCad shadow library. https://www.melkert.net/LDCad/tech/shadowlib, 2026. Accessed 24 September 2026.
  18. [18]MeshInspector. MeshLib: Mesh processing library. https://meshlib.io, 2026. Accessed 19 November 2026.
  19. [19]Niels Mündler et al. Type-constrained code generation with language models. arXiv preprint arXiv:2504.09246, 2025.DOI
  20. [20]Charlie Nash, Yaroslav Ganin, S. M. Ali Eslami, and Peter W. Battaglia. PolyGen: An autoregressive generative model of 3D meshes. In International Conference on Machine Learning, 2020.arxiv.org/abs/2002.10880
  21. [21]Zhengyang Ni, Feng Yan, Yu Guo, and Fei Wang. Brick-anything: Geometry-conditioned buildable brick generation with structure-aware tokenization. arXiv preprint arXiv:2605.26182, 2026.arxiv.org/abs/2605.26182
  22. [22]Maxime Oquab, Timothée Darcet, Théo Moutakanni, Huy Vo, Marc Szafraniec, Vasil Khalidov, Pierre Fernandez, Daniel Haziza, Francisco Massa, Alaeldin El-Nouby, et al. DINOv2: Learning robust visual features without supervision. Transactions on Machine Learning Research (TMLR), 2024.arxiv.org/abs/2304.07193
  23. [23]Gabriel Poesia et al. Synchronmesh: Reliable code generation from pre-trained language models. arXiv preprint arXiv:2201.11272, 2022.
  24. [24]Ava Pun, Kangle Deng, Ruixuan Liu, Deva Ramanan, Changliu Liu, and Jun-Yan Zhu. Generating physically stable and buildable brick structures from text. In Proceedings of the IEEE/CVF International Conference on Computer Vision, 2025.
  25. [25]Qwen Team. Qwen3.6-27B: Flagship-level coding in a 27B dense model, 2026.
  26. [26]Torsten Scholak, Nathan Schucher, and Dzmitry Bahdanau. PICARD: Parsing incrementally for constrained autoregressive decoding from language models. In EMNLP, 2021. arXiv:2109.05093.arxiv.org/abs/2109.05093
  27. [27]Kexian Tang, Junyao Gao, Yanhong Zeng, Haodong Duan, Yanan Sun, Zhenning Xing, Wenran Liu, Kai Chen, and Kaifeng Lyu. LEGO-Puzzles: How good are MLLMs at multi-step spatial reasoning?, 2026.arxiv.org/abs/2503.19990
  28. [28]Romain Testuz, Yuliy Schwartzburg, and Mark Pauly. Automatic generation of constructive brick sculptures. Eurographics Short Papers, 2013.
  29. [29]Rylee Thompson, Elahe Ghalehbi, Terrance DeVries, and Graham W. Taylor. Building LEGO using deep generative models of graphs, 2020.arxiv.org/abs/2012.11543
  30. [30]Michael Tschannen, Alexey Gritsenko, Xiao Wang, Muhammad Ferjad Naeem, Ibrahim Alabdulmohsin, Nikhil Parthasarathy, Talfan Evans, Lucas Beyer, Ye Xia, Basil Mustafa, Olivier Hénaff, Jeremiah Harmsen, Andreas Steiner, and Xiaohua Zhai. SigLIP 2: Multilingual vision-language encoders with improved semantic understanding, localization, and dense features. arXiv preprint arXiv:2502.14786, 2025. 6arxiv.org/abs/2502.14786
  31. [31]Chenglong Wang et al. Robust text-to-SQL generation with execution-guided decoding. arXiv preprint arXiv:1807.03100, 2018. 3arxiv.org/abs/1807.03100
  32. [32]Ruiyu Wang, Shizhao Sun, Weijian Ma, and Jiang Bian. CAD-Tokenizer: Towards text-based CAD prototyping via modality-specific tokenization. In International Conference on Learning Representations, 2026. arXiv:2509.21150. 2arxiv.org/abs/2509.21150
  33. [33]Brandon T. Willard and Rémi Louf. Efficient guided generation for large language models. arXiv preprint arXiv:2307.09702, 2023. 2arxiv.org/abs/2307.09702
  34. [34]Chenhui Xu, Ziyue Bai, Fuxun Yu, Heng Huang, and Jinjun Xiong. Rollback-free stable brick structures generation. arXiv preprint arXiv:2605.06947, 2026. 2arxiv.org/abs/2605.06947
  35. [35]An Yang, Anfeng Li, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Gao, Chengen Huang, Chenxu Lv, et al. Qwen3 technical report. arXiv preprint arXiv:2505.09388, 2025. 5arxiv.org/abs/2505.09388

Paper details

vlnc:W_b8p6su28
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents