Solving Logical Reasoning Failures in Large Language Models
Listen to the summary
Uses a voice available on your device
Audio options
On this page 4 sections
Related concepts 3 concepts
Key Takeaways
- Large language models often fail when answer options combine atomic judgments using explicit logical operators, even when individual atomic facts are judged correctly.
- The new framework parses options into triplets, constructs contrasting natural language hypotheses, and normalizes log probabilities to estimate local evidence.
- Raw preference scores are calibrated using techniques like Platt scaling, isotonic calibration, or relative calibration.
- A binary integer linear program enforces operator constraints and exact uniqueness, maximizing total supporting and opposing evidence.
- Macro-F1 on the human-validated Logical-CommonsenseQA split improved from 48.3 to 77.0, and on Logical-SATA from 47.0 to 75.6.
Summary & Methodology Analysis
When large language models evaluate answer options containing explicit logical operators such as And, Or, and Neither/Nor, they frequently fail even if they correctly understand the underlying facts. To address this, the paper presents a structured compositional reasoning framework that prevents the model from ever seeing the compound option directly. Instead, the method deterministically parses each option into a triplet and collects all unique atomic answers appearing in the instance. For every unique atomic answer, the system constructs a pair of opposing natural language hypotheses conditioned on the context, representing whether the atomic answer satisfies the context or not. By presenting these opposing hypotheses as choices within a single prompt, the system estimates the model local evidence using normalized log probabilities. These raw preference scores are then calibrated using Platt scaling, isotonic calibration, or relative calibration.
The core inference layer relies on a binary integer linear program, which operates over the inferred atomic statuses and compound option validity variables. The algorithm encodes operator constraints and a strict uniqueness constraint requiring the sum of valid options to equal one using linear inequalities. It then selects the assignment that satisfies these constraints with the strongest total evidence by maximizing an objective function combining supporting and opposing evidence. By shifting the complexity from a single holistic generation step to a constrained optimization problem over calibrated atomic local evidence, the system prevents logical contradiction and dramatically improves accuracy on complex compound structures.
The evaluation and application of this framework come with explicit boundaries specified in the paper. The experiments are limited to a single model, Llama-3.1-8B-Instruct, which is a language model configured to follow instructions, and two benchmarks with explicit binary operators over pairs of atomic answers. Consequently, the results do not establish that the same gains will hold for other model families, larger models, longer logical expressions, or operators such as implication and exclusive disjunction. Furthermore, the benchmarks enforce exactly one valid compound option, whereas real tasks may permit multiple valid answers or no valid answer at all. Finally, because the framework depends entirely on the quality of the atomic evidence supplied to the inference layer, any errors in commonsense interpretation, passage grounding, or source annotations will propagate directly to the final prediction.
Interactive System Flowchart
Cross-Examination & FAQs
A deeper dive clarifying mechanics, constraints, and baseline evaluations.
Q1. What core problem does this paper address?
Large language models often fail when answer options require combining atomic judgments under explicit logical operators, even when they judge the individual atoms correctly.
Q2. What logical operators are studied in the paper?
The paper studies compound options connected by And, Or, and Neither/Nor.
Q3. What is the primary high-level impact of the proposed framework?
It significantly improves reasoning performance, raising Macro-F1 from 48.3 to 77.0 on the Logical-CommonsenseQA split and from 47.0 to 75.6 on Logical-SATA.
Q4. How are options initially processed in the framework?
Each option is deterministically parsed into the triplet A_i = (a_i^(1), o_i, a_i^(2)), and all atomic answers appearing anywhere in the instance are collected into a union set U_C.
Q5. How does the system estimate local evidence for atomic answers?
It constructs a pair of opposing natural language hypotheses conditioned on C for every unique atomic answer, presenting them as choices A and B within a single prompt and normalizing their log probabilities.
Q6. What calibration methods are applied to the raw preference scores?
The raw preference scores are calibrated using Platt scaling, isotonic calibration, or relative calibration against the gold atomic status.
Q7. How are the final compound options selected?
A binary integer linear program is formulated over inferred atomic statuses and compound option validity variables, enforcing operator constraints and a uniqueness constraint that sums valid options to one, selecting the assignment that maximizes total supporting and opposing evidence.
Q8. What were the specific performance gains on Neither/Nor questions?
On Neither/Nor, macro-F1 rises from 14.0 to 76.8 on Logical-CommonsenseQA and from 12.6 to 73.4 on Logical-SATA.
Q9. What models and evaluation datasets are mentioned in the paper?
The paper evaluates Llama-3.1-8B-Instruct on Logical-CommonsenseQA, Logical-SATA, SATA-Bench, ProofWriter, LogicNLI, FOLIO, ReClor, LogiQA, ConjNLI, CONDAQA, SCoNE, NOT benchmark, EntailmentBank, DecompNLI, MultiRC, and RoMQA.