arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.09278cs.LGcs.AI
收藏

内化几何法则:从求解器残差中学习以实现精度关键生成

Internalizing Geometric Law: Learning from Solver Residuals for Precision-Critical Generation

Huawei Celia Team(华为Celia团队)

Rafael Cabral, Pang Zixi, Ziyi Shou, Shen Xin

AI总结:

针对大语言模型在精度关键领域(如技术图表和机械设计)中的幻觉问题,提出可编程几何DSL PyGeoX及分层基准PyGeoX-Bench,并设计饱和加性奖励(SAR)方法,将奖励分解为有界逐约束项,解决异常梯度掩盖问题,使8B模型在基准上达到与更大前沿系统竞争的水平。

摘要:

大语言模型在精度关键领域(如技术图表和机械设计)中经常出现幻觉,这些领域的输出必须满足严格的几何约束。我们研究从自然语言进行开放式几何合成:将自由形式的描述转化为精确的构造,其实体必须同时满足数十个相互作用的约束。为使这一问题易于处理,我们发布了PyGeoX,一个可编程的几何DSL,它将声明性约束编译为可微损失,以及PyGeoX-Bench,一个包含300个问题的分层套件,每个问题都有可验证的逐约束奖励。使用PyGeoX作为验证器,我们识别出一种称为异常梯度掩盖的失败模式:在全局范数奖励(任何通过单一范数聚合残差的方案,例如$\exp(-\mathrm{MSE})$)下,单个异常约束可以抵消所有其他约束的学习信号。为解决此问题,我们提出饱和加性奖励(SAR),它将奖励分解为有界的逐约束项,保留部分进展并确保即使在严重违反下也能保持一致的梯度。与基于MSE的奖励(几何求解器的自然基线)相比,SAR将困难层级求解率提高了2.3倍,由此得到的8B模型在该基准上与更大的前沿系统具有竞争力。我们在https://github.com/Huawei-AI4Math/PyGeoX发布引擎、基准和数据。

英文摘要:

Large Language Models frequently hallucinate in precision-critical domains such as technical diagramming and mechanical design, where outputs must satisfy strict geometric constraints. We study open-ended geometric synthesis from natural language: translating free-form descriptions into precise constructions whose entities must simultaneously satisfy dozens of interacting constraints. To make this tractable, we release PyGeoX, a programmable geometric DSL that compiles declarative constraints into a differentiable loss, and PyGeoX-Bench, a stratified suite of 300 problems with per-constraint verifiable rewards. Using PyGeoX as a verifier, we identify a failure mode we call Outlier Gradient Masking: under global-norm rewards (any scheme that aggregates residuals through a single norm, for example, $\exp(-\mathrm{MSE})$), a single outlier constraint can nullify the learning signal across all others. To address this, we propose Saturating Additive Rewards (SAR), which decompose the reward into bounded per-constraint terms, preserving partial progress and ensuring consistent gradients even under severe violations. Against MSE-based rewards, the natural baseline for geometry solvers, SAR improves the hard-tier solving rate by $2.3\times$, and the resulting 8B model is competitive with much larger frontier systems on this benchmark. We release the engine, benchmark, and data at https://github.com/Huawei-AI4Math/PyGeoX.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑