用扩散模型解决逻辑谜题,让神经网络更懂规则。
Constraints-Guided Diffusion Reasoner for Neuro-Symbolic Learning
- 分两阶段训练,先练推理能力,再学逻辑规则。
- 在谜题上准确率高,输出逻辑一致性显著提升。
- 适合研究神经符号学习与可解释推理的人看。
让神经网络学习复杂逻辑约束并完成符号推理是一项关键挑战。通常需要引导神经网络的输出分布向符号约束靠近。尽管扩散模型在多个领域展现出强大的生成能力,本文将其用于神经符号学习并求解逻辑谜题。提出的扩散推理框架采用两阶段训练策略:第一阶段培养基础推理能力,第二阶段系统学习逻辑约束。为在第二阶段对神经输出施加硬性约束,将扩散推理器建模为马尔可夫决策过程,并创新性地使用改进的近端策略优化算法进行微调。通过基于逻辑一致性的规则奖励信号驱动优化,采用灵活策略更新扩散推理器的策略。在经典符号推理基准(包括Sudoku、Maze、路径查找和偏好学习)上评估,实验结果表明该方法在神经网络中实现了出色的准确率与逻辑一致性。
原文摘要 · Abstract (English)
Enabling neural networks to learn complex logical constraints and fulfill symbolic reasoning is a critical challenge. Bridging this gap often requires guiding the neural network's output distribution to move closer to the symbolic constraints. While diffusion models have shown remarkable generative capability across various domains, we employ the powerful architecture to perform neuro-symbolic learning and solve logical puzzles. Our diffusion-based pipeline adopts a two-stage training strategy: the first stage focuses on cultivating basic reasoning abilities, while the second emphasizes systematic learning of logical constraints. To impose hard constraints on neural outputs in the second stage, we formulate the diffusion reasoner as a Markov decision process and innovatively fine-tune it with an improved proximal policy optimization algorithm. We utilize a rule-based reward signal derived from the logical consistency of neural outputs and adopt a flexible strategy to optimize the diffusion reasoner's policy. We evaluate our methodology on some classical symbolic reasoning benchmarks, including Sudoku, Maze, pathfinding and preference learning. Experimental results demonstrate that our approach achieves outstanding accuracy and logical consistency among neural networks.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。