BriConstrain: Geometrically Constrained Decoding for Autoregressive Brick Assembly Generation
BriConstrain filters brick attachment options before token sampling. In text-to-LEGO generation, it raised collision-free builds from 31% to 91% on BrickNet and from 15% to 65% on ICLF.
BriConstrain raised the share of collision-free text-to-LEGO builds **from 31% to 91% on BrickNet** and **from 15% to 65% on ICLF**.
The model proposes a part and a previously placed brick to connect it to. A precomputed geometry check filters attachment options against the current build, and the decoder shifts next-token probabilities toward the remaining candidates before sampling.
BriConstrain raised the share of collision-free text-to-LEGO builds **from 31% to 91% on BrickNet** and **from 15% to 65% on ICLF**. The model proposes a part and a previously placed brick to connect it to. A precomputed geometry check filters attachment options against the current build, and the decoder shifts next-token probabilities toward the remaining candidates before sampling. The evaluation covers two formats, one with explicit connections and one with numeric placements. BriConstrain outperformed rejection sampling in both at **about 60% of its decoding cost**. The reported build rates measure collisions.
BriConstrain shows where a domain check can influence generation directly. When the partial assembly is available, geometry can guide the next placement before sampling, improving collision-free rates at lower decoding cost than rejection sampling in both tested formats. The result supports collision checking during decoding and leaves other build requirements to separate checks.