TL;DR
Neurosymbolic AI approaches combine the linguistic strengths of Large Language Models (LLMs) with the mathematical precision of symbolic solvers, but they often fail when the LLM misinterprets complex natural language sentences during translation. This paper introduces CLOVER, a framework that breaks down intricate sentences into logical dependency structures, translates them incrementally, and uses an SAT solver to verify the semantic correctness of the generated formulas. CLOVER achieves state-of-the-art performance across seven logical reasoning benchmarks, dramatically closing the gap in complex translation tasks.
What Problem Does This Paper Address?
While LLMs excel at simple reasoning, they struggle with complex, multi-step logical problems. To bypass this limitation, "neurosymbolic" methods use an LLM as a semantic parser to translate natural language into formal First-Order Logic (FOL) formulas, which are then solved flawlessly by an automated symbolic solver (like an SAT solver).
However, the authors identify a critical bottleneck: LLMs frequently fail to capture complex logical semantics hidden in natural language (e.g., phrases like "on two consecutive days, and on no other days"). If the LLM generates an incorrect or meaningless FOL formula, the symbolic solver yields an incorrect answer. CLOVER addresses this translation breakdown by changing how LLMs digest and translate complex logical sentences.
Methods
CLOVER introduces a "divide-and-translate" pipeline consisting of two main stages: Compositional First-Order Logic Translation and First-Order Logic Verification.
- Logical Dependency Parsing: Instead of translating a complex sentence all at once, CLOVER uses an LLM to break it down into a tree of "logic units" (atomic subsentences) and their dependents.
- Component Accumulation: It systematically rebuilds the sentence step-by-step, starting from the simplest atomic unit and gradually layering on the modifiers and dependents.
- Sequential Translation: The LLM translates each intermediate, accumulated sentence into an FOL formula. This incremental progression makes it much easier for the LLM to preserve precise semantics.
- SAT-Based Verification: Because an LLM can generate multiple valid-looking parses, CLOVER introduces two verification algorithms using a Z3 SAT solver:
- Logical Consistency: Groups generated formulas by mathematical equivalence and selects the most frequent group.
- Disproving by Counter-Interpretation: Uses the SAT solver to find a scenario where two candidate formulas disagree (a counter-interpretation) and asks the LLM if that scenario satisfies the original natural language sentence, systematically weeding out subtle translation errors.
Datasets
The authors evaluated CLOVER across seven distinct logical reasoning benchmarks:
- AR-LSAT & AR-LSAT-annotated: Analytical reasoning problems from the Law School Admission Test, including a newly annotated subset of 305 formulas to measure exact translation accuracy.
- ZebraLogic: Complex grid puzzles (e.g., Einstein's Riddle) scaled up to six difficult feature sizes.
- Puzzle, Symbol, & Deduction: Logical reasoning tasks selected from the BigBench collaborative benchmark.
- FOLIO: An expert-written first-order logic dataset.
- ProofWriter: A deductive reasoning dataset requiring deep rule-chaining.
Key Insights and Ideas
- The Translation Bottleneck: The primary failure mode in neurosymbolic reasoning isn't the solver's execution—it's the LLM's inability to map complex linguistic syntax directly to formal logic in a single shot.
- Compositionality Mimics Human Logic: Humans don't comprehend a massive logical constraint all at once; we break it down into core facts and constraints. Forcing the LLM to perform logical dependency parsing flattens the semantic complexity curve.
- Semantic vs. Syntactic Verification: Traditional code/logic verification often relies on LLM self-debugging or syntax checking. CLOVER highlights that using an SAT solver to find mathematical counter-interpretations provides a rigorous, objective ground truth that text-based LLMs cannot match.
Key Results
CLOVER significantly outperformed previous neurosymbolic approaches (like Logic-LM) and standard Chain-of-Thought (CoT) prompting across the board.
- Massive Accuracy Boosts: On the challenging AR-LSAT dataset, CLOVER improved overall accuracy from 42.4% to 62.8% (+20.4%). On ZebraLogic, performance jumped from 45.4% to 75.4% (+30.0%).
- Robustness to Complexity: As shown in Figure 1, while baseline models suffer a catastrophic drop-off in translation accuracy as first-order logic complexity increases, CLOVER maintains remarkably high accuracy even at the highest complexity tiers.
- Error Elimination: Error analysis revealed that CLOVER eliminated nearly all pure logic and syntax errors during translation, leaving only minor preprocessing and solver-limitation errors.
Limitations and Future Work
- Increased Inference Costs: Because CLOVER breaks sentences down and samples multiple paths sequentially, it requires significantly more API calls. On the AR-LSAT subset, CLOVER cost $0.30 compared to Logic-LM's $0.08.
- Upstream Vulnerabilities: CLOVER is still dependent on the initial preprocessing step. If the initial theory generation or entity declaration is flawed, the downstream compositional translation cannot salvage it.
- Future Directions: The authors suggest exploring ways to optimize prompt lengths or fine-tuning smaller, open-source models specifically on logical dependency parsing to reduce computational overhead.
Summary updated