Abstract
Pre-trained language models (PLMs) have demonstrated remarkable success in natural language understanding but continue to struggle with tasks requiring formal logical reasoning. This paper introduces LReasoner, a neuro-symbolic framework that enhances the reasoning capabilities of PLMs by explicitly incorporating symbolic logic. By extracting logical structures from text, performing formal inference, and verbalizing derived rules back into natural language, LReasoner achieves state-of-the-art performance on complex benchmarks like ReClor and LogiQA, even surpassing human-level accuracy in certain settings.
Introduction
While deep learning models like RoBERTa and DeBERTa excel at capturing semantic patterns, they often fail to grasp the discrete, symbolic nature of logical arguments. For instance, a model may understand a premise but fail to recognize its logically equivalent contrapositive. This gap exists because standard deep learning is statistical and continuous, whereas logical deduction is discrete and rule-based.
LReasoner addresses this by providing a "symbolic crutch," allowing models to leverage formal logic laws to uncover hidden implications within a text context.
Methodology
The LReasoner framework consists of two primary components: Logic-Driven Context Extension (CE) and Logic-Driven Data Augmentation (DA).
1. Logic-Driven Context Extension (CE)
This process involves three distinct stages to enrich the model's input with logical insights:
- Logic Identification: Using a constituency parser and keyword triggers (e.g., "if," "unless," "not"), the system translates natural language sentences into symbolic logic expressions (e.g., $\neg \alpha \rightarrow \neg \beta$).
- Logic Extension: The system applies formal logic laws—specifically Contraposition and the Transitive Law—to derive new, implicit logical consequences.
- Logic Verbalization: These derived symbolic rules are converted back into natural language templates (e.g., "If... then...") and appended to the original context, enabling the PLM to process them using its existing linguistic strengths.
2. Logic-Driven Data Augmentation (DA)
To improve robustness, the authors employ contrastive learning using "logical negative samples." By intentionally breaking logical expressions—such as reversing implications or incorrectly negating symbols—the model is trained to distinguish between sound logic and deceptive, pattern-matched traps. This forces the model to prioritize logical connectives over simple keyword overlap.
Experimental Results
The framework was evaluated on the ReClor (LSAT/GMAT-based) and LogiQA datasets. Key findings include:
- State-of-the-Art Performance: LReasoner, built on a DeBERTa-large backbone, achieved 71.8% accuracy on the ReClor test set, outperforming the baseline DeBERTa (68.9%).
- Surpassing Human Baselines: An ensemble version of LReasoner reached 76.1% accuracy on ReClor, significantly higher than the average human performance of 63.0%.
- Robustness on "Hard" Data: The model showed its most significant gains on the "HARD" subset of ReClor, suggesting it successfully learned to reason rather than relying on statistical shortcuts.
Discussion and Limitations
LReasoner demonstrates the power of neuro-symbolic synergy, showing that symbolic logic can serve as an effective pre-processing step for neural networks. However, the approach has limitations. The current logic parser is unsupervised and has an accuracy of approximately 48.9%. Furthermore, while the model excels at implication-based reasoning, it shows less improvement on "Weaken" or "Conclusion" question types, which may require more complex modal or first-order logic. Future work will focus on improving parsing accuracy and expanding the library of supported logical laws.
Summary updated