This paper explores a fundamental question in AI: Can we teach Large Language Models (LLMs) to reason logically without relying on the "knowledge" they memorized during pre-training? By using a principled synthetic corpus, the authors demonstrate that even the most advanced models, like LLaMA-3.1-70B, have significant room for improvement in pure deductive reasoning.
TL;DR
The authors propose Additional Logic Training (ALT), a method to boost LLM reasoning by fine-tuning them on a high-quality, program-generated synthetic corpus called FLD$_{\times2}$. This approach decouples reasoning from world knowledge, leading to massive gains of up to 30 points on logic benchmarks and 10 points on math and coding tasks for state-of-the-art models.
The Problem: Knowledge-Biased LLMs
Current LLMs are inherently "knowledge-biased." They excel at tasks where they can recall patterns seen during pre-training but often stumble on novel problems or those involving "unknown facts." For example, an LLM might solve a famous math problem perfectly but fail if the names and numbers are changed.
The authors argue this stems from the pre-training data itself: human-written text is often reflexive, biased, and logically inconsistent. To fix this, we need a way to teach models the "rules of the game"—pure symbolic logic—independently of the factual content.
Methods: Additional Logic Training (ALT)
The core of the paper is the Additional Logic Training (ALT) framework. The researchers established four "Design Principles" (DP) to create high-quality synthetic training data:
- Reasoning with Unknown Facts (DP1): Using arbitrary words (e.g., "A Foo star exists") to ensure the model learns the structure of the argument rather than relying on semantic meaning.
- Illogical Reasoning (DP2): Including "negative samples" where a conclusion cannot be reached from the premises. This teaches the model to say "unknown" rather than hallucinating a connection.
- Diverse Reasoning Rules (DP3): Moving beyond simple implications to include axioms of first-order logic and representative theorems like De Morgan’s laws and syllogisms.
- Diverse Linguistic Expressions (DP4): Using multiple natural language templates for the same logical formula (e.g., "If A then B" vs. "A results in B") to ensure the model doesn't overfit to specific phrasing.
To prevent the model from forgetting its original world knowledge during this training, they utilized the Recall Adam optimizer, which regularizes updates to keep parameters close to their pre-trained state.
Datasets and Evaluation
The authors introduced FLD$_{\times2}$ (Formal Logic Deduction Diverse), a synthetic corpus of 100,000 samples featuring multi-step deductions (up to 8 steps) and a large vocabulary of 100,000 words.
For evaluation, they used a massive suite of 31 benchmarks, categorized into:
- Logic: FOLIO, LogicNLI, ProofWriter, etc.
- NLI (Natural Language Inference): MNLI, SNLI, RTE.
- Math & Coding: GSM8k, MATH, HumanEval, MBPP.
- General/Aggregated: MMLU, BBH (Big-Bench Hard).
Key Insights
- Logic as an "Operating System": The most striking insight is that training on pure, abstract logic improves performance on math and coding. This suggests that logical deduction is a foundational skill that generalizes across structured domains.
- The Necessity of "Unknowns": Ablation studies showed that using a large, arbitrary vocabulary (DP1) was critical. Without it, models failed to generalize to novel scenarios.
- Learning to Say "I Don't Know": By including distractors and insufficient premises (DP2), the authors successfully reduced the model's tendency to force a logical conclusion where none exists.
- Knowledge Integration: Case studies showed that after ALT, models could successfully combine their pre-existing commonsense knowledge with their new rigid reasoning capabilities to solve complex Natural Language Inference (NLI) tasks.
Key Results
The results were significant across the board for the LLaMA-3.1-70B model.
- Logical Reasoning: Gains of up to 30 points on specific benchmarks like LogicNLI.
- Math & Coding: Improvements of up to 10 points on benchmarks like MATH and HumanEval.
- General Reasoning: A 5-point boost on the challenging BBH suite.
- Consistency: The improvements were consistent across model sizes (from 8B to 70B parameters), proving that even very large models benefit from explicit logic training.
Limitations and Future Work
While the results are impressive, the authors acknowledge several areas for growth:
- Deduction Only: The current corpus focuses on deductive reasoning. Future work could incorporate abductive (guessing premises) or inductive (generalizing from examples) reasoning.
- Logic Systems: The study is limited to first-order predicate logic. Expanding to modal logic (dealing with necessity and possibility) or linear logic could further enhance LLM capabilities.
- Complex Procedures: ALT helps with single-trace reasoning, but the authors found that models still struggle with "complex procedures" (like multi-choice science questions) that require task-specific strategies beyond pure logic.
Summary updated