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

NeuroProlog:通过鸡尾酒效应实现神经符号数学推理的多任务微调

NeuroProlog: Multi-Task Fine-Tuning for Neurosymbolic Mathematical Reasoning via the Cocktail Effect

Virginia Tech(弗吉尼亚理工大学)

Pratibha Zunjare, Michael Hsiao

AI总结:

NeuroProlog通过鸡尾酒效应实现神经符号数学推理的多任务微调,提升数学推理准确率并改进程序修复能力。

摘要:

大型语言模型(LLMs)在自然语言任务上表现优异,但在数学推理上仍不可靠,经常生成流畅但逻辑不一致的解决方案。我们提出了NeuroProlog,这是一种神经符号框架,通过将数学问题转化为可执行的Prolog程序并提供形式验证保证,确保可验证的推理。我们提出了一种多任务鸡尾酒训练策略,联合优化三个协同目标,统一在符号表示空间中:(i)数学公式到规则的翻译(KB),(ii)自然语言到程序的合成(SOLVE),(iii)程序-答案对齐。这种联合监督使正向迁移成为可能,其中公式翻译中的符号 grounding 直接提高组合推理能力。在推理过程中,我们引入了执行引导的解码管道,具有细粒度的错误分类,能够实现迭代程序修复并量化模型自我调试能力。在GSM8K上对四个模型规模(3B-32B参数)的全面评估显示了一致的改进:鸡尾酒训练在Qwen-32B上实现了+5.23%的准确率提升(p < 0.01),在GPT-OSS-20B上实现了+3.43%的提升(p < 0.01),在Llama-3B上实现了+5.54%的提升(p < 0.05)。系统误差分析揭示了规模依赖的学习动态:在32B规模下,鸡尾酒训练将不可修复的类型错误(12%修复率)转化为可修复的领域错误(96%修复率),实现了92.7%的整体修复率;在8B规模下,相同的训练消除了语法错误,但引入了语义失败,揭示了类型安全符号推理的关键能力阈值。

英文摘要:

Large Language Models (LLMs) achieve strong performance on natural language tasks but remain unreliable in mathematical reasoning, frequently generating fluent yet logically inconsistent solutions. We present \textbf{NeuroProlog}, a neurosymbolic framework that ensures verifiable reasoning by compiling math word problems into executable Prolog programs with formal verification guarantees. We propose a multi-task Cocktail training strategy that jointly optimizes three synergistic objectives in a unified symbolic representation space: (i) mathematical formula-to-rule translation (KB), (ii) natural language-to-program synthesis (SOLVE), and (iii) program-answer alignment. This joint supervision enables positive transfer, where symbolic grounding in formula translation directly improves compositional reasoning capabilities. At inference, we introduce an execution-guided decoding pipeline with fine-grained error taxonomy that enables iterative program repair and quantifies model self-debugging capacity. Evaluation on GSM8K across multiple model scales demonstrates that cocktail training improves accuracy over single-task baselines, with statistically significant gains for most evaluated models. Error analysis reveals scale-associated differences in repair behavior: larger models exhibit more readily correctable errors, whereas smaller models show reduced syntactic errors but persistent semantic failures. These findings suggest that model capacity influences the acquisition of reliable symbolic reasoning and self-correction capabilities.

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

↑