NeuroProlog turns math word problems into verifiable Prolog programs.
An preprint introduces NeuroProlog, compiling math word problems into executable Prolog with formal verification guarantees.
Its Cocktail training jointly optimizes three objectives in one symbolic space: formula-to-rule translation, natural language-to-program synthesis, and program–answer alignment.
At inference, an execution-guided decoding pipeline classifies errors finely, repairs programs iteratively, and measures the model’s self‑debugging capacity.
Tested on GSM8K across multiple model scales, Cocktail training improved accuracy over single-task baselines, with statistically significant gains for most evaluated models.
Error analysis shows scale-dependent repair: larger models make more fixable mistakes, while smaller ones reduce syntax errors yet retain stubborn semantic failures.
Sources 1
arXiv is an independent, open-access repository of electronic preprints and postprints approved for posting after moderation, but not peer reviewed. It consists of scientific papers in the fields of mathematics, physics, astronomy, electrical engineering, computer science, quantitative biology, statistics, mathematical finance, and economics, which can be accessed online. In many fields of mathematics and physics, almost all scientific papers are self-archived on the arXiv repository before publication in a peer-reviewed journal. Some publishers also grant permission for authors to archive the peer-reviewed postprint. Begun on August 14, 1991, arxiv.org passed the half-million-article milestone on October 3, 2008. By the end of 2014, it had surpassed one million articles, and it reached two million by the end of 2021. As of October 2026, the submission rate is about 32,000 articles per month.