arXiv:2602.02009cs.LG2026-02被引 3

用逻辑约束引导生成模型,让采样自动避开禁区。

Logic-Guided Vector Fields for Constrained Generative Modeling

  • 将逻辑约束转为可微形式,融入流匹配生成过程。
  • 生成时约束违反率降低59%~82%,多场景表现最优。
  • 无需路径规划,自动避障,适合需安全约束的生成任务。

神经符号系统旨在结合符号逻辑的表达结构与神经学习的灵活性;然而,生成模型通常缺乏在生成阶段强制执行声明性约束的机制。我们提出逻辑引导向量场(LGVF),一种将符号知识(以逻辑约束的可微松弛形式表示)注入流匹配生成模型的神经符号框架。LGVF结合两种互补机制:(1) 训练时的逻辑损失,沿连续流轨迹惩罚约束违背,权重侧重于目标分布附近的正确性;(2) 推理时的调整,利用约束梯度引导采样,作为对学习动态的轻量级、逻辑感知修正。我们在三类受约束生成案例上评估LGvF,涵盖线性、非线性和多区域可行性约束。在所有设置中,相较于标准流匹配,LGvF将约束违反率降低59%-82%,并在每种情况下均达到最低违规率。在线性和环形设置中,LGvF还提升了分布保真度(以MMD衡量);而在多障碍设置中,观察到满足性与保真度之间的权衡,即可行性提升但MMD增加。除定量提升外,LGvF生成的向量场表现出涌现的避障行为,能在无显式路径规划的情况下绕过禁入区域。

原文摘要 · Abstract (English)

Neuro-symbolic systems aim to combine the expressive structure of symbolic logic with the flexibility of neural learning; yet, generative models typically lack mechanisms to enforce declarative constraints at generation time. We propose Logic-Guided Vector Fields (LGVF), a neuro-symbolic framework that injects symbolic knowledge, specified as differentiable relaxations of logical constraints, into flow matching generative models. LGVF couples two complementary mechanisms: (1) a training-time logic loss that penalizes constraint violations along continuous flow trajectories, with weights that emphasize correctness near the target distribution; and (2) an inference-time adjustment that steers sampling using constraint gradients, acting as a lightweight, logic-informed correction to the learned dynamics. We evaluate LGVF on three constrained generation case studies spanning linear, nonlinear, and multi-region feasibility constraints. Across all settings, LGVF reduces constraint violations by 59-82% compared to standard flow matching and achieves the lowest violation rates in each case. In the linear and ring settings, LGVF also improves distributional fidelity as measured by MMD, while in the multi-obstacle setting, we observe a satisfaction-fidelity trade-off, with improved feasibility but increased MMD. Beyond quantitative gains, LGVF yields constraint-aware vector fields exhibiting emergent obstacle-avoidance behavior, routing samples around forbidden regions without explicit path planning.

生成模型逻辑约束流匹配避障生成

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。