When a language model solves a word problem step by step, many of its mistakes are not reasoning mistakes in the logician's sense. They are bookkeeping mistakes. The model uses Anna's apples where it meant Ben's, adds a count of pennies to an amount in dollars, or carries a distractor quantity from an irrelevant sentence into the calculation. A careful study of models that solve hard problems but fail easier versions of them traced much of this inconsistency to exactly these causes: variables swapped between roles, requirements misread, and distraction by redundant information (Can Large Language Models Always Solve Easy Problems if They Can Solve Harder Ones?). The usual remedy is to translate each reasoning step into formal logic and hand it to a theorem prover. That translation is expensive and is itself the most fragile link in the pipeline.
We propose a cheaper and more targeted check, borrowed from classical unification grammars. In those grammars, every phrase carries a small record of features such as its type, its owner, its unit and its role, and two pieces can combine only if their records are compatible. The method builds such a record once for every entity and quantity in the problem statement, using syntax and meaning together. It then requires each generated reasoning step to declare which records it consumes and produces, and rejects any step whose records fail to combine. A rejected step is resampled on its own, so the error does not spread into later steps. The bet is that a large share of model inconsistency consists of binding errors, meaning the wrong thing attached to the wrong slot. If so, these errors can be caught by a feature-compatibility check rather than by full logical verification, and they can be caught even when the final answer happens to be right.
Core Claim
The claim has two parts, and both can be tested. The first part is diagnostic. Among the failures of 7B-class models on easy problems, the data-mismatch, misinterpretation and redundant-information categories identified in ConsisEval are mostly detectable as feature clashes between a step and a referent table extracted from the problem. Arithmetic slips are not. The second part is methodological. Checking steps against such a table by symbolic unification, which means merging two feature records and failing whenever any attribute disagrees, catches these errors more reliably than an LLM judge shown the same table. It does so at a small fraction of the cost of first-order autoformalization.
The "unified representation" ingredient matters in a specific place: building and revising the referent table. Owner, unit, time and role features come from syntactic structure, for example possessives and prepositional attachment. They also come from semantic roles, for example who gives and who receives. When a step clashes with the table, the system does not automatically blame the step. If the clash involves a feature whose extraction came from an ambiguous attachment, it first re-parses the problem sentence under the alternative attachment. In this way semantic evidence from the reasoning feeds back into the syntactic analysis, the bidirectional interplay that On the Syntactic-Semantic Analysis of Bound Anaphora argues binding requires.
Relation to Prior Work
Several papers motivate the gap. Evaluating Intermediate Reasoning of Code-Assisted Large Language Models for Mathematics classifies generated programs by structure and finds that execution accuracy on MATH500 is similar across sound and unsound logic classes. Final-answer accuracy therefore hides exactly the errors we target, so we evaluate step-level detection directly. CLUTRR: A Diagnostic Benchmark for Inductive Reasoning from Text shows that graph models over the symbolic kinship structure reach 1.0 accuracy while text models collapse with depth and noise. This suggests that the gap lies in getting from text to structure, which is where our extraction-and-revision step operates.
Three lines of work verify reasoning steps, and each constrains our design. Deductive Verification of Chain-of-Thought Reasoning makes each step cite its premises and has the LLM verify steps in isolation. It reports 84% error-detection accuracy on GSM8K with GPT-3.5-turbo, but still fails on unit confusions like pennies versus dollars. That is precisely the error a unit feature catches mechanically. We keep its premise-citation format and replace the LLM judgment on binding with unification.
VeriCoT: Neuro-symbolic Chain-of-Thought Validation via Logical Consistency Checks formalizes each step into first-order logic and checks it with the Z3 solver, reaching 94.1% verification precision on ProofWriter. Its authors identify translation fragility and multiple LLM calls per step as the main costs. We do not translate steps into logic at all. We check a much weaker property, binding consistency, which needs only one extraction per problem. The trade-off is that we cannot verify entailment, and we will measure what we lose.
Faithful Chain-of-Thought Reasoning translates problems into programs run by a deterministic solver (71.9% vs 48.5% for standard CoT on CLUTRR). Its translation is unconstrained, so a misbound variable runs without complaint. We add a constraint to that translation rather than replacing it.
The method itself comes from the unification literature. Unification-Based Semantic Interpretation shows that variable binding can happen during structure building through feature unification instead of post-hoc lambda reduction. Coreference Handling in XMG binds discourse referents as fragments merge. We reuse that idea, with reasoning steps as the fragments.
Moore's own caveat, that first-order unification cannot handle intensional adjectives or distributive readings, constrains our scope. We restrict to quantity and relation bookkeeping and report coverage. Explainable Natural Language Reasoning via Conceptual Unification also "unifies" concepts, but over WordNet and retrieved case libraries for explanation retrieval, not as a constraint on generated steps. Joint Universal Syntactic and Semantic Parsing supports the claim that joint syntax-semantics extraction need not trade one off against the other, and is a candidate extractor.
Research Program
The system has three components.
Referent extraction. The first component maps a problem into a referent table. Each entity and quantity becomes a feature record with type, owner, unit, time index, semantic role, and the source span. We build it with a joint dependency and semantic-role parser over the problem text, followed by a small LLM pass that fills features the parser cannot, such as implicit units. Every filled feature is tagged with whether it came from an ambiguous attachment.
Step protocol. The second component is the format each reasoning step must follow. Following the Natural Program convention, each step cites the referents it uses and emits a record for its result. For example, "Anna's apples after giving: owner Anna, unit apples, time 2." A small rule set per operation states how result features derive from input features. Addition and subtraction require matching units. Rate times duration cancels the time unit. Transfer changes the owner. Kinship composition follows a relation-composition table in CLUTRR.
Check and repair. The third component runs the check. Unification of the cited records against the operation's rule either succeeds or names the clashing attribute. On a clash involving an ambiguity-tagged feature, the system re-extracts under the alternative reading and re-checks the chain so far. Otherwise it resamples only the offending step, with the clash message appended, up to a fixed budget.
The analysis component labels several hundred failed chains from 7B-class models on ConsisEval math pairs by the five ConsisEval failure modes. It then measures, per mode, how often a clash fires. This is the diagnostic half of the claim and is worth reporting regardless of how the repair loop performs.
Baselines
Plain chain-of-thought. The naive reference point is plain chain-of-thought with the same model and the same number of samples, scored by majority vote (self-consistency). Every method gets the same model, the same maximum number of generated tokens per problem, and the same problems. We report token and call counts so that our resampling budget is matched by extra votes for the baseline.
Deductive verification. The strongest step-verification competitor at comparable cost is the Natural Program verifier with unanimity-plurality voting from Deductive Verification of Chain-of-Thought Reasoning, which reports 84% step-error detection on GSM8K with GPT-3.5-turbo. We rerun it on our models, with its verification calls counted against the same budget. Beating it means higher step-error detection recall at equal or better precision on our labeled chains, plus higher final accuracy and Consistency Score on ConsisEval.
VeriCoT. The strongest verification method overall is VeriCoT, with 94.1% verification precision on ProofWriter. We run it at its native cost and do not expect to beat its precision on ProofWriter. The question is whether we match its detection on binding-type errors in arithmetic word problems at a much lower cost. For GSM8K-style problems the file contains no VeriCoT number (no reported result found on Lacuna for VeriCoT on GSM8K or ConsisEval), so we produce it ourselves.
Faithful chain-of-thought. For program-based reasoning, Faithful CoT is the baseline on CLUTRR, where it reports 71.9%. We also run it on GSM8K, where no reported result was found on Lacuna for Faithful CoT on GSM8K in the file.
Ablations. Two ablations isolate the key ingredients. The first gives the LLM verifier the identical referent table as text but performs no symbolic unification. This separates "having the table" from "checking it mechanically." The second disables the ambiguity-driven re-extraction. This tests whether the bidirectional syntax-semantics revision matters or whether a fixed pipeline parse suffices.
Why not just…?
Why not just sample more chains and vote? Self-consistency fixes errors that vary randomly across samples. It does not fix errors that are systematic: a distractor quantity that looks relevant tends to be picked up in most samples. ConsisEval's finding that even GPT-4 Turbo reaches only 92.2% consistency, with 7B models at 50–70%, suggests these failures are not just sampling noise. The compute-matched voting baseline settles this directly. If voting closes the gap on the redundant-information and data-mismatch subsets, our claim fails.
Why not just write Python with a units library? This is the most serious threat. A program-aided model using typed variables with physical units would catch unit clashes for free. It would not catch owner or time-index swaps (two quantities of apples belonging to different people). It also inherits the unconstrained translation problem documented in Evaluating Intermediate Reasoning of Code-Assisted Large Language Models for Mathematics. We include this typed-program variant as a baseline and break results down by clash type. If it matches us on everything except owner and time errors, and those errors turn out to be rare, the honest conclusion is that a units library is enough. We would report that.
Why not just show the extracted table to an LLM judge? If a strong LLM can check bindings once the table is in its context, the unification machinery adds nothing. The table-as-text ablation is exactly this test. The pennies-versus-dollars failures reported for LLM step verifiers give some reason to expect mechanical checking to help, but this needs to be measured.
Why not just use full first-order verification? VeriCoT verifies more than binding, but at several LLM calls per step and with fragile translation. If its cost-adjusted detection on word problems beats ours, our cheaper check has no reason to exist. We report detection per thousand generated tokens to make this comparison explicit.
Proposed Experiments
The primary benchmarks are the 298 ConsisEval math pairs, reporting Consistency Score and per-mode error detection, and GSM8K for final accuracy. CLUTRR tests the method with relational rather than numeric features. On CLUTRR we vary chain length and the noise conditions to check whether binding checks close part of the gap between text-based and graph-based models. ProofWriter's RuleTaker depths serve as a control where VeriCoT should dominate, since its errors are about entailment rather than binding.
To stress distraction directly, we add irrelevant same-type quantities owned by other entities to GSM8K problems. We also evaluate on SciAux, which pairs ScienceQA items with helpful, irrelevant or misleading auxiliary information. Because final-answer accuracy hides unsound steps, our main metric is step-level error detection recall and precision on a few hundred hand-labeled chains, alongside final accuracy and cost.
Two decisive checks frame the results. First, on labeled ConsisEval failures, the unification check must fire on a clearly larger share of data-mismatch and redundant-information errors than of arithmetic slips. If clash rates are flat across modes, the premise that these failures are binding errors is wrong. Second, symbolic unification must beat the table-as-text LLM judge on binding-error recall at matched precision, and the full system must beat the typed-program baseline on owner and time errors. If either comparison fails, the contribution reduces to the diagnostic study. That study would still tell the field which kinds of LLM inconsistency a cheap structural check can and cannot reach.
References
- Can Large Language Models Always Solve Easy Problems if They Can Solve Harder Ones?
- On the Syntactic-Semantic Analysis of Bound Anaphora
- Evaluating Intermediate Reasoning of Code-Assisted Large Language Models for Mathematics
- CLUTRR: A Diagnostic Benchmark for Inductive Reasoning from Text
- Deductive Verification of Chain-of-Thought Reasoning
- VeriCoT: Neuro-symbolic Chain-of-Thought Validation via Logical Consistency Checks
- Faithful Chain-of-Thought Reasoning
- Unification-Based Semantic Interpretation
- Coreference Handling in XMG
- Explainable Natural Language Reasoning via Conceptual Unification
- Joint Universal Syntactic and Semantic Parsing