SymDiag: Explainable Diagnosis for LLM Reasoning via Neuro-Symbolic Verification

Wenyao Cui, Huaping Zhang, Yongyi Huang, Qiuchi Li, Jian Xu, Cheng-Lin Liu, Chunxiao Gao, Juan Wang, Baohua ZhangarXiv 2026 · DOI

TL;DR

SymDiag is a novel neuro-symbolic framework that reframes Large Language Model (LLM) reasoning verification as a structured failure diagnosis problem. By translating natural-language chains-of-thought (CoT) into symbolic Prolog constraints, it localizes step-level errors and generates verifiable diagnostic evidence to guide precise model repair. Crucially, it introduces a "Self-Auditor" to distinguish genuine logical flaws from neural-to-symbolic translation noise.

What Problem Does This Paper Address?

While LLMs have become remarkably adept at multi-step reasoning, their Chain-of-Thought (CoT) rollouts are notoriously prone to being "unfaithful." A model can easily stumble into a correct final answer despite making logical leaps, ignoring boundary conditions, or committing arithmetic errors along the way.

Existing verification methods fall short of solving this problem:

  • Outcome-level verification (answer matching) completely misses "right answer, wrong reason" scenarios.
  • Process-level verification (like Process Reward Models or LLM-as-judge) reduces complex multi-step derivations to a single scalar score or provides subjective, non-verifiable natural language critiques. They tell you that something is wrong, but rarely where or why.

Neuro-symbolic approaches attempt to fix this by translating text into formal logic for verification by hard-coded solvers. However, they face a major hurdle: translation noise. If an LLM poorly translates a valid natural language step into logic, the solver flags it as a logical error. Current systems cannot tell whether the model's reasoning failed or its translation failed.

Figure 1: Paradigms for evaluating chain-of-thought (CoT) reasoning. Outcome- and process-level approaches treat ver- ification as scoring, judging only final answers or subjective plausibility. SymDiag introduces a diagnosis-level paradigm, performing symbolic checks to localize reasoning failures and produce verifiable diagnostic evidence, enabling targeted repair.

Methods

SymDiag shifts the paradigm from scoring reasoning to diagnosing it via a two-stage pipeline:

Stage I: Explainable Failure Diagnosis

  1. Dual-Branch Generation: To mitigate translation brittleness, SymDiag uses an LLM to compile the natural language CoT into two independent symbolic Prolog programs: a Formal Translation branch (mapping entities and predicates) and a Critical Restatement branch (stricter, explicitly scoped statements to expose hidden assumptions).
  2. The Self-Auditor: This core component disentangles TranslationError from ReasoningError. It runs cross-branch consistency checks and lightweight symbolic sanity tests. If an apparent logical violation disappears under minimal, text-consistent canonical rewrites, it is classified as a translation artifact and filtered out.
  3. Step-Level Symbolic Verification: Approved states are executed via SWI-Prolog. The solver checks for satisfiability (to catch contradictions) and local entailment (ensuring step $i$ logically follows from step $i-1$). If a step fails, SymDiag pinpoints the exact location, assigns an error label, and extracts verifiable evidence (e.g., counterexamples or missing premises).

Stage II: Diagnosis-Guided Repair

SymDiag translates the symbolic failure evidence back into structured natural language feedback. Depending on the error's scope, it prompts the LLM to either execute a local patch (for isolated arithmetic slips) or a global rewrite from the failing step onward (if the error propagates).

Figure 2: SymDiag overview. Stage I (Diagnosis): a neuro-symbolic generator produces (i) a formal translation and (ii) a critical restatement of the original CoT as two independent Prolog programs; a Self-Auditor checks cross-encoding consistency to distinguish TranslationError from ReasoningError, and SWI-Prolog performs step-level satisfiability/consistency checks to output a faithful/unfaithful decision with verifiable evidence (e.g., counterexamples, inconsistency witnesses, missing-premise indicators). Stage II (Repair): SymDiag uses localized failures and evidence to prompt an LLM to generate a repaired reasoning trace that is solver-consistent.

Datasets

The authors evaluated SymDiag on a newly curated, cross-domain diagnostic dataset consisting of 240 manually audited instances (sampled from a larger automatically generated corpus of 437,792 instances). The dataset spans 30 examples from each of 8 sub-datasets across four primary reasoning domains:

  • Mathematics: AIME24, AIME25, MATH
  • Logic: AR-LSAT, Logical Deduction
  • Science: GPQA
  • General Reasoning: MMLU, MMLU-Pro

Each instance is human-annotated as either Faithful (correct answer, flawless logic) or Unfaithful (contains a locatable defect).

Key Insights and Ideas

  • Diagnosis > Scoring: Treating verification as a structured diagnostic problem provides actionable feedback. Knowing a counterexample (e.g., "$m=110$ also works, so $m=151$ is not the minimal solution") is vastly more useful for model self-correction than a scalar reward of 0.35.
  • Error Types Shift with Model Scale: The authors discovered a fascinating capacity-dependent shift in how LLMs fail. Smaller models (e.g., Llama-3.2-1B) primarily suffer from low-level slips like arithmetic errors and omitting necessary premises. Larger models (e.g., GPTOSS-20B) rarely make calculation errors but frequently suffer from high-level structural failures, such as hallucinating rules or overgeneralizing.
  • Redundancy Cures Brittleness: Using two independent translation paths (formal vs. critical restatement) allows a symbolic system to handle the inherent ambiguity of natural language without losing its mathematical rigor.

Key Results

  • Faithfulness Detection: SymDiag achieved the highest overall $F_1$ score of 70.7 in identifying unfaithful reasoning traces, substantially outperforming Answer Matching (57.7), Reward Models (57.0), and LLM-as-Judge (62.8). The performance gap was widest in multi-step logic and general reasoning tasks (like AR-LSAT and MMLU).
  • Repair Efficiency: In multi-round accuracy improvements, SymDiag-guided feedback yielded faster and more sustained accuracy gains across all datasets compared to baseline feedback mechanisms, proving that verifiable evidence prevents models from getting stuck in loops during self-correction.

Limitations and Future Work

While powerful, SymDiag relies on an LLM generator to perform the initial text-to-symbolic translation, meaning it is still bounded by the generator's base capabilities.

The authors outline several areas for future work:

  1. Extending the symbolic backend to support heavier, hybrid theorem provers or specialized solvers.
  2. Improving the framework's robustness when dealing with highly underspecified or colloquial natural language.
  3. Utilizing the structured diagnostic data generated by SymDiag to train more robust, diagnosis-aware process reward models via meta-learning.

Summary updated

BibTeX
@misc{cui2026symdiag,
  author = {Wenyao Cui and Huaping Zhang and Yongyi Huang and Qiuchi Li and Jian Xu and Cheng-Lin Liu and Chunxiao Gao and Juan Wang and Baohua Zhang},
  title = {{SymDiag: Explainable Diagnosis for LLM Reasoning via Neuro-Symbolic Verification}},
  year = {2026},
  eprint = {2608.08786},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.08786},
}
Figure