BriConstrain is a constrained decoding method that narrows a pretrained language model's next-token probabilities before sampling to favor valid LEGO brick placements. On the evaluated formats it raised collision-free builds substantially and matched or beat rejection sampling at lower decoding cost.
Key facts
- Language models can generate LEGO assemblies from text, but their builds often contain parts that collide or attach to nothing.
- We present BriConstrain, a constrained decoding method that restricts a pretrained language model's next-token probabilities before sampling, steering it towards valid placements.
- Our key idea is to narrow the search space by constraining how parts attach rather than which parts attach to each other.
- We evaluate our method on two LEGO 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.
Read aloud
BriConstrain is a constrained decoding method that narrows a pretrained language model's next-token probabilities before sampling to favor valid LEGO brick placements. On the evaluated formats it raised collision-free builds substantially and matched or beat rejection sampling at lower decoding cost. Language models can generate LEGO assemblies from text, but their builds often contain parts that collide or attach to nothing. We present BriConstrain, a constrained decoding method that restricts a pretrained language model's next-token probabilities before sampling, steering it towards valid placements. Our key idea is to narrow the search space by constraining how parts attach rather than which parts attach to each other. We evaluate our method on two LEGO 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 thirty one percent to ninety one percent on BrickNet and from fifteen percent to sixty five percent on ICLF, and outperforms rejection sampling on both formats at about sixty percent of its decoding cost.
Sources in this cluster
Free daily email
Get AI news, checked against sources
One short email each morning with the day's model launches, price changes and research. Unsubscribe any time.
We email a confirmation link first. Pro and API plans