# NeuroProlog turns math word problems into verifiable Prolog programs.

Published: 2026-09-15 · Sources: 1

## Summary

An arXiv 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

- arXiv cs.AI: [NeuroProlog: Multi-Task Fine-Tuning for Neurosymbolic Mathematical Reasoning via the Cocktail Effect](https://arxiv.org/abs/2603.02504)

---

Summary written by Brief (itsbrief.com) from the reporting linked above. Canonical page: https://itsbrief.com/story/neuroprolog-turns-math-word-problems-into-verifiable-prolog-59be3fd5
