Manuscript Offprint

arXiv:2608.26329

Neuro-symbolic PRM: Enhancing Scientific Reasoning via Structured Traces and Symbolic Verification

Yuxin Zi, Cong Xu, Suparna Bhattacharya, Martin Foltin, Amit Sheth

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

While tool-augmented Large Language Models have significantly improved multi-step reasoning in quantitative STEM tasks, a critical residual failure mode remains: intermediate reasoning steps that are syntactically well-formed, mathematically executable, and unit-consistent, yet contextually ungrounded. Current approaches either rely on formal verifiers that cannot assess semantic intent, or burden Process Reward Models (PRMs) with the dual task of checking both arithmetic and logic. In this paper, we propose a neuro-symbolic framework that cleanly decouples reasoning into two formal dimensions: Symbolic Validity (V) and Semantic Groundedness (G). We guarantee V by construction using a deterministic symbolic verifier acting as a hard filter. To assess G, we train a PRM conditionally on the verifier-accepted manifold. To train this PRM efficiently, we introduce Counterfactual Symbolic Perturbation (CSP), a novel data synthesis strategy that algorithmically generates constraint-preserving hard negatives (steps that perfectly pass the verifier but are logically flawed). At inference, we deploy a verifier-first constrained search that guarantees execution consistency for verifier-covered operations while relying on the PRM solely to rank semantic grounding. By targeting the exact residual error class of strong tool-using LLMs, our method significantly improves reasoning reliability without the sprawling heuristics of prior frameworks.

1 Introduction

Large Language Models (LLMs) have demonstrated remarkable capabilities in multi-step quantitative reasoning (Cobbe et al., 2021). To overcome their inherent limitations in arithmetic and precise execution, recent advancements have heavily integrated external tools, code interpreters, and Program-of-Thought (PoT) prompting (Chen et al., 2023; Gao et al., 2023; Gou et al., 2024). By offloading computation to deterministic engines, these methods successfully eliminate a vast majority of calculation and syntax errors.

However, delegating execution to a tool exposes a critical, under-addressed residual failure mode in structured quantitative STEM tasks: intermediate reasoning steps that are perfectly executable, but semantically wrong. A model might apply the correct physics formula to the wrong variables, or compute a mathematically flawless but contextually irrelevant quantity. In these cases, the step is syntactically valid, numerically executable, and even unit-consistent, yet completely ungrounded from the problem's logical solution path. Current verification methods struggle to address this gap. Deterministic symbolic verifiers can check syntax and math, but they cannot verify semantic intent. Conversely, PRMs (Lightman et al., 2024) are typically trained to score the overall correctness of a step, forcing a single neural model to simultaneously act as a calculator, a syntax checker, and a semantic judge. This lack of decomposition leads to sample-inefficient training, where the PRM wastes capacity learning execution rules rather than deep logical grounding.

In this paper, we address this executable-but-ungrounded failure mode by formally decoupling reasoning correctness into two distinct dimensions: Symbolic Validity and Semantic Groundedness. We propose the Neuro-symbolic Process Reward Model (NS-PRM) frame-

(A) Training via Counterfactual Symbolic Perturbation

(B) Inference via Symbolically Constrained Beam Search

Figure

Figure 1: Overview of NS-PRM.

work where a deterministic symbolic verifier acts as a hard filter to guarantee execution validity for all covered operations, while a specialized PRM acts as a soft filter to evaluate contextual appropriateness. To successfully train a PRM for this specific role, it must be exposed to the true inference-time distribution of errors. Specifically, mistakes that a verifier cannot catch. To this end, we introduce Counterfactual Symbolic Perturbation (CSP). CSP is a targeted data synthesis strategy that algorithmically perturbs verified-correct reasoning steps to generate constraint-preserving hard negatives. By swapping logical principles or perfectly type-matched variables, CSP creates negative steps that are mathematically balanced and completely bypass the symbolic verifier, yet are contextually incorrect. Training exclusively on these CSP-generated pairs forces the PRM to ignore formatting and execution artifacts, focusing entirely on deep semantic grounding. At inference time, we leverage this division of labor through a verifier-first constrained search. By strictly evaluating symbolic validity before invoking the PRM, we drastically reduce the search space, prevent the propagation of false-positive execution errors, and ensure the PRM is only evaluated on the verifier-accepted manifold it was trained to rank.

References (49)