Eidoku: A Neuro-Symbolic Verification Gate for LLM Reasoning via Structural Constraint Satisfaction
Shinobu Miya
TL;DR
This work reframes verification of LLM reasoning as a feasibility problem over semantic structure rather than a likelihood-based confidence task. It introduces Eidoku, a minimal System-2 gate that computes a total semantic Violation Cost $J(S)$ as an additive sum of structural, geometric, and logical proxies, and uses a context-adaptive threshold $\tau_c$ to reject structurally unsupported steps. The approach demonstrates that enforcing structural closure can deterministically reject smooth falsehoods on a synthetic Reasoning Gap Dataset (RGD) where high-probability falsehoods are structurally disconnected, achieving zero FTAR with perfect TTAR. By decoupling verification from generation and calibrating the feasibility boundary per context, this method offers an interpretable, scalable mechanism for improving the safety of generative reasoning in real-world deployments.
Abstract
Large Language Models (LLMs) frequently produce hallucinated statements that are assigned high likelihood by the model itself, exposing a fundamental limitation of probability-based verification. This suggests that hallucination is often not a low-confidence phenomenon, but a failure of structural consistency. In this work, we reformulate the verification of LLM reasoning as a Constraint Satisfaction Problem (CSP) operating independently of the generation likelihood. Rather than optimizing for statistical plausibility, we model verification as a feasibility check based on structural violation cost -- the computational cost required to embed a candidate reasoning step into the contextual graph structure. We define a total cost function composed of three proxies: (i) graph connectivity (structural), (ii) feature space consistency (geometric), and (iii) logical entailment (symbolic). Crucially, verification is performed via a lightweight System-2 gate, Eidoku, which rejects candidates exceeding a context-calibrated cost threshold. The threshold is not learned but is derived from the intrinsic statistics of the context, avoiding ad hoc heuristics. We demonstrate that this approach successfully rejects ``smooth falsehoods'' -- statements that are highly probable yet structurally disconnected -- that probability-based verifiers are principally incapable of detecting. Our experiments on a controlled diagnostic dataset show that explicitly enforcing structural constraints allows for the deterministic rejection of this specific class of hallucinations, serving as a neuro-symbolic sanity check for generative reasoning.
