Papers

Neural NP4G:把逻辑程序学成可复用神经网络

Learning Programs as Neural Networks for Generalization and Reuse

Why we picked it

这篇论文的做法挺少见:学的不是参数而是一个个可验证的小程序,存起来当积木复用,六步可达性就是靠两步和四步两个旧程序拼出来的,还带等价性证明。做神经符号或可验证推理方向的研究者可以看看这套 ADF 机制怎么落地。

一篇 arXiv 论文提出 Neural NP4G,将程序表示为计算节点和有向连接构成的网络,同时学习结构与数值参数,并把学到的程序累积为可复用的自动定义函数(ADF)。在关系推理任务的评测中,通过等价性检查证明每个被接受的电路在声明域内的所有输入上都实现目标逻辑。主实验对每个任务取 10 个种子、选第一个通过等价性 oracle 验证的程序,最终一个库覆盖了全部 14 个任务。在 160 次检测器对比实验中,把精确检测器的反例反馈进训练,提高了边反转和边对称化两类任务的验证获取率。依赖固定的情况下,下游任务获取在 100 次主尝试中成功 74 次、40 次辅助尝试中成功 22 次。学到的六步内可达性电路组合了两个先前获取的关系(最多两步与最多四步路径),且以与目标公式相反的顺序组合,论文证明该电路在每个有限图上计算目标可达性关系。

Body

技术机制的核心是把"学习"变成程序获取而非参数拟合:候选电路需通过等价 oracle 的形式化验证才算获取成功,检测器产生反例后再反馈到训练中修正。这使得学到的规则具备可复用性——六步可达性直接由两个更短的已学关系组合而成,类似人类从简单规则构建复杂推理。

对研究者而言,这类带形式化验证保证的程序学习方法与端到端神经网络的黑盒路线形成对照,为神经符号方向的泛化与组合复用提供了一个可验证的实现样本。

Original · arXiv cs.AI

Learning Programs as Neural Networks for Generalization and Reuse

We investigate knowledge acquisition through human-like logical reasoning by learning executable computations from examples and retaining them for later use. Generalization is sought through acquiring a program that expresses the rule behind the examples. Neural NP4G represents programs as networks of computational nodes and directed connections, jointly learns their structure and numerical parameters, and accumulates acquired programs as reusable automatically defined functions (ADFs). We assume access to a detector that checks candidate behavior and guides acceptance or correction. We evaluate this approach on relational reasoning tasks with known specifications, where faithful logical extraction and equivalence checking prove that each accepted circuit implements its target on every input in the declared domain under real arithmetic. In a 160-run detector comparison, feeding the exact detectors' counterexamples back into training increased verified acquisition on both edge reversal and edge symmetrization. In the main experiment, selecting the first program verified by the equivalence oracle among ten seeds per task yielded one library covering all fourteen tasks. With the selected dependencies held fixed for downstream tasks, acquisition succeeded in 74/100 primary and 22/40 auxiliary attempts. The learned circuit for reachability within six edges composed two previously acquired relations, for paths of at most two and at most four edges, in the opposite order from the target formula. We proved that this circuit computes the target reachability relation on every finite graph in the declared domain.

Industry Coordinates & Source Verification

This report is categorized under AITOP's "Papers" desk. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include Neural NP4G, neurosymbolic AI, formal verification, ADF.

Source attribution: curated from arXiv cs.AI (@Shoichiro Hara, Yuji Watanabe).