TL;DR
LogiCoT introduces a novel instruction-tuning dataset of approximately 70,000 instances designed to instill complex logical reasoning capabilities into large language models (LLMs) via chain-of-thought (CoT) distillation from GPT-4. By fine-tuning a modest LLaMA-7b model on this dataset, the authors achieve remarkable performance boosts on logical reasoning benchmarks, frequently outperforming much larger open-source models (up to 40B parameters) and rivaling ChatGPT on specific tasks.
What Problem Does This Paper Address?
While instruction tuning has successfully elevated the general proficiency of open-source LLMs in tasks like open-domain text generation and paraphrasing, these models still struggle with complex, multi-step logical reasoning. Proprietary models like GPT-4 excel at logical deduction, but their training data and methodologies remain private.
To bridge this gap, the authors address the lack of high-quality, diverse, and structured logical reasoning data available for open-source community models. They tackle the challenge of teaching smaller models how to think sequentially and adhere to formal logic rules without relying on massive parameter scaling.
Methods
The authors present LogiCoT (Logical Chain-of-Thought), a dataset constructed by leveraging GPT-4 as a "teaching assistant" to generate high-quality logical rationales.
The pipeline involves:
- Seminal Data Selection: Repurposing existing high-quality logical reasoning datasets that contain gold-standard labels and, optionally, human-annotated reasoning chains.
- Instruction Formulation: Translating these tasks into clear, unambiguous prompts designed to elicit structured, step-by-step logical reasoning from GPT-4.
- CoT Generation: Feeding the prompts along with the gold labels into GPT-4 to collect its step-by-step reasoning paths, ensuring the generated rationales are anchored to the correct answers.
The instructions are categorized into two main paradigms:
- General Inference Tasks: Including Language to Logic translation, One-Step Inference prediction, and multi-step Inference Chains (both in natural and symbolic language).
- Reading Comprehension Tasks: Machine reading comprehension tasks requiring critical argument analysis (e.g., strengthening/weakening arguments, identifying flaws, or resolving situational discrepancies).
Finally, the authors fine-tune a standard LLaMA-7b model on this dataset to create LLaMA-7b-logicot.
Datasets
The LogiCoT dataset comprises 68,983 data instances distilled from five seminal datasets:
- LOGICINFERENCE: Synthetic sequence-to-sequence propositional and first-order logic.
- EntailmentBank: Open-domain science QA with human-authored entailment trees.
- FOLIO: First-order logic annotations automatically verified by an inference engine.
- ReClor & LogiQA: Verbal logical reasoning examinations (standard multiple-choice).
The final dataset distribution is split across four primary task types:
For evaluation, the authors utilize the LogiEval benchmark (consisting of 8 distinct logical reasoning subsets) and the MMLU (Massive Multitask Language Understanding) benchmark to test generalizability.
Key Insights and Ideas
- Quality Over Scale: A relatively small 7B parameter model can achieve competitive logical reasoning performance if it is explicitly trained on structured, multi-step reasoning paths rather than just raw text or simple instruction-reply pairs.
- The Power of Chained Deductions: Ablation studies revealed that removing "Inference Chain" data caused the most significant drop in logical benchmark performance, proving that learning to chain multiple logical steps together is the core driver of reasoning proficiency.
- Cross-Domain Generalization: Training explicitly on logical structures inherently improves performance on broader, non-logic subjects. The fine-tuned model saw substantial accuracy gains across diverse MMLU subjects like business, computer science, and economics, despite never being tuned on those topics.
Key Results
- LogiEval Benchmark: LLaMA-7b-logicot achieved an overall accuracy of 40.69%, vastly outperforming its base model (20.22%), LLaMA-30b-supercot (24.78%), and Falcon-40b-instruct (23.63%).
- Comparison to ChatGPT: Despite its small size, the 7B LogiCoT model performed on par with or slightly better than ChatGPT on several subsets, including ReClor, LogiQA OOD, and TaxiNLI.
- MMLU Benchmark: The model raised the average base LLaMA accuracy from 31.8% to 43.3%, showing a consistent boost across every single tested subject.
Limitations and Future Work
Despite the impressive gains, the authors note several limitations:
- Language and Length Bottlenecks: The model significantly lags behind ChatGPT on the Chinese version of LogiQA and on the ConTRoL dataset, indicating weaknesses in handling non-English corpora and long, passage-level texts.
- The Proprietary Gap: A noticeable performance gap still remains between the 7B model and GPT-4 (which scores 60.56% overall on LogiEval).
- Rationale Faithfulness: Human evaluation showed that while relevance and coherence scores were exceptionally high, there is still room to improve the factual "faithfulness" of the generated reasoning chains to prevent hallucinations.
Future work will focus on refining the generation process to enhance rationale faithfulness and integrating LogiCoT into dialogue-oriented models like Alpaca.
Summary updated