Compositional Consistency-Guided Decoding for Three-Way Logical Question Answering
Organizations: Ryquo · App-In Club
Abstract
Three-way logical question answering (QA) assigns one of , , or to a hypothesis given a premise set . We study this task as a compact compositional inference problem: predictions for and for a mechanically negated hypothesis should agree under a deterministic negation map. Despite this simple structure, large language models (LLMs) can exhibit two practical failure modes: (i) negation inconsistency, where answers to and violate the required label mapping, and (ii) epistemic , where the model abstains even when one side is entailed. We introduce CGD-PD, a lightweight, training-free test-time layer that combines neural 3-way classification, symbolic negation-consistency projection, and targeted binary entailment probes. On one validation split of FOLIO's first-order logic fields, CGD-PD improves accuracy by 4.4 points on GPT-5.2 and 6.8 points on Claude Sonnet 4.5, while reducing predictions and epistemic abstention. These results provide a controlled proof of concept that simple logical composition at inference time can help evaluate and improve LLM reasoning reliability; they do not, by themselves, establish robustness beyond this formal benchmark setting.
Figures & tables
| Model | Method | Acc. (%) | Unknown (%) | Epist. Unknown (%) | Calls |
|---|---|---|---|---|---|
| GPT-5.2 | Single | 63.7 | 57.4 | 41.5 | 1.00 |
| GPT-5.2 | CGD-PD | 68.1 | 53.9 | 36.3 | 4.36 |
| Claude Sonnet 4.5 | Single | 42.2 | 75.5 | 72.6 | 1.00 |
| Claude Sonnet 4.5 | CGD-PD | 49.0 | 58.8 | 53.3 | 4.91 |
| Model | Method | Cov. | Ans. acc. | Gold U kept | Gold U T | Gold U F |
|---|---|---|---|---|---|---|
| GPT-5.2 | Single | 42.6 | 79.3 | 88.4 | 3 | 5 |
| GPT-5.2 | CGD-PD | 46.1 | 83.0 | 88.4 | 4 | 4 |
| Claude Sonnet 4.5 | Single | 24.5 | 60.0 | 81.2 | 9 | 4 |
| Claude Sonnet 4.5 | CGD-PD | 41.2 | 61.9 | 69.6 | 13 | 8 |
Appendix figures & tables3 assets
Supplementary material from the paper’s appendix.
Appendix
| Premise excerpt | Hypothesis | Gold | Single | Ours | Signals used by our method |
|---|---|---|---|---|---|
| The Picuris Mountains are a mountain range in New Mexico or Texas. | The Picuris Mountains are in Texas. | U | F | U | Probe labels: and . CGD-PD then runs proof-driven entailment checks and finds and , so it preserves Unknown . This illustrates that the wrapper need not force a decisive answer when neither side is supported. |
| The Picuris Mountains are a mountain range in New Mexico or Texas. | The Picuris Mountains are in New Mexico. | F | T | F | Probe labels: and . Because the negated form is decisive, CGD-PD maps that decision back through the negation constraint and returns False . This illustrates how asymmetric evidence from logically linked probes can correct a single-prompt error. |
| Train (500) | Validation (204) | ||||||
| Model | Method | Acc | Unk | Calls/ex | Acc | Unk | Calls/ex |
| GPT-5.2 | Single | 0.632 | 0.544 | 1.00 | 0.637 | 0.574 | 1.00 |
| GPT-5.2 | gate3 | 0.632 | 0.568 | 3.00 | – | – | – |
| GPT-5.2 | CGR3 (3 calls) | 0.654 | 0.454 | 3.00 | – | – | – |
| GPT-5.2 | CGD-PD (final) | 0.682 | 0.396 | 3.85 | 0.681 | 0.539 | 4.36 |
| Claude Sonnet 4.5 | Single | 0.436 | 0.744 | 1.00 | 0.422 | 0.755 | 1.00 |
Question Answering
Question answering studies how AI systems interpret questions and produce accurate, evidence-grounded answers across text, dialogue, and multimodal data.
See all 260 papers