Abstract
Logical Machine Reading Comprehension (MRC) requires models to perform complex deductive reasoning based on provided premises. While large-scale proprietary models excel at these tasks, smaller open-source models often struggle due to "correct-answer bias" and limited high-quality training data. We present PODA-TPCL, a framework that combines Premise-Oriented Data Augmentation (PODA) with Thought-Path Contrastive Learning (TPCL). By generating counterfactual scenarios and training models to distinguish between nuanced reasoning paths, our approach significantly improves the logical reasoning capabilities of models like LLaMA-3 and Mistral-7B.
Introduction
Logical reasoning is a cornerstone of human intelligence, often tested through standardized examinations like the LSAT or GMAT. In the context of AI, Logical MRC tasks challenge models to identify the correct conclusion or assumption from a set of premises. Current training paradigms for Large Language Models (LLMs) suffer from two primary issues:
- Correct-Answer Bias: Fine-tuning typically focuses on the reasoning path leading to the correct answer, ignoring the logical structure of incorrect distractors.
- Rigid Data Augmentation: Traditional methods for expanding datasets often rely on simple perturbations that fail to maintain logical coherence.
To address these gaps, we propose a framework that leverages "counterfactual" logic to teach models not just why an answer is right, but why others are wrong.
Methodology
The PODA-TPCL framework consists of two main components: data augmentation and contrastive learning.
Premise-Oriented Data Augmentation (PODA)
PODA moves beyond simple text manipulation by focusing on the underlying logical premises. Using a teacher model (e.g., GPT-4), the system:
- Summarizes Premises: Distills the context into its core logical components.
- Analyzes All Options: Generates "thought-paths" for every choice, categorizing them as supported, contradicted, or unrelated.
- Generates Counterfactuals: It re-engineers the premises to make a previously incorrect option logically sound. This creates high-fidelity training pairs where the same question has different correct answers based on modified contexts.
Thought-Path Contrastive Learning (TPCL)
TPCL utilizes the augmented data to refine the model's reasoning. By comparing the original sample with its counterfactual twin, the model learns to:
- Cluster similar reasoning paths (e.g., identifying why a specific distractor remains incorrect across scenarios).
- Differentiate dissimilar paths (e.g., understanding the logical shift that makes an option correct in one context but incorrect in another). This is implemented using a preference-based loss function derived from the Bradley-Terry model.
Experimental Setup
We evaluated our method, TPReasoner, on two major benchmarks:
- ReClor: 6,138 questions from the LSAT and GMAT.
- LogiQA 2.0: 15,708 instances from the Chinese Civil Service Examination. Using PODA, we generated approximately 18,500 synthetic counterfactual samples to augment the training sets for LLaMA2-7B, LLaMA3-8B, and Mistral-7B.
Results and Discussion
TPReasoner demonstrated significant performance gains across all tested architectures and benchmarks.
As shown in the results table, TPReasoner consistently outperformed both standard instruction-tuned LLMs and specialized discriminative models. Notably, on the ReClor Test set:
- Mistral-7B improved from a baseline of 61.90% to 71.17%.
- LLaMA3-8B improved from 62.65% to 70.97%.
Furthermore, TPReasoner achieved a score of 66.01% on the ReClor "Hard" subset (Test-H), significantly narrowing the gap between easy and difficult logical tasks. Human evaluations confirmed that PODA-generated data maintains high coherence (4.61/5) and logical diversity.
Conclusion
The PODA-TPCL framework provides a robust method for improving logical reasoning in open-source LLMs. By focusing on the relationship between premises and all possible options—rather than just the correct one—models develop a deeper, more nuanced understanding of logic. Future work will explore the application of thought-path contrastive learning to other domains, such as mathematical reasoning and legal document analysis.
Summary updated