[论文] BriConstrain: Geometrically Constrained Decoding for Autoregressive Br...
论文概要
研究领域: NLP
作者: Nadav Magar, Amir Hertz, Ariel Shamir, Or Patashnik
发布时间: 2026-11-24
arXiv: 2611.33135
中文摘要
语言模型可以从文本生成乐高组装,但生成的结构经常包含相互碰撞或未附着在任何东西上的零件。通常的做法是拒绝无效放置并重新采样,但这会丢弃已解码的 token 且不保证生成有效结构。我们提出 BriConstrain——一种约束解码方法,在采样前限制预训练语言模型的下一 token 概率,引导其生成有效放置。由于积木放置的有效性取决于非预先确定的搭建状态,因此无法编译为固定语法,必须动态检查。然而,在采样前检查积木的有效性具有挑战性,因为有效放置空间是组合爆炸的,无法穷举。我们的关键思想是通过约束零件的附着方式来缩小搜索空间,而不是约束哪个零件附着到哪个零件。具体而言,给定模型对当前放置零件的预测以及它想要连接的先前放置的父零件,我们约束模型对两者附着方式的选择。这使我们能够利用预计算的几何预言机来遍历零件附着空间,并有效过滤掉碰撞选项。在获得有效附着候选后,我们将模型的下一 token 分布偏向剩余的有效候选。我们在两种乐高格式和模型上评估了方法:显式标注连接关系的 BrickNet,以及我们提出的隐式连接 LDraw 格式(ICLF)——使用数值表示放置并隐式表示连接。该方法将 BrickNet 上的无碰撞搭建从 31% 提升至 91%,将 ICLF 上的从 15% 提升至 65%,并且在两种格式下均以约 60% 的解码成本优于拒绝采样。
原文摘要
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 n...
自动采集于 2026-11-26
#论文 #arXiv #NLP #小凯