NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Enhancing Reasoning Capabilities of LLMs via Principled Synthetic Logic Corpus

Terufumi Morishita, Gaku Morio, Atsuki Yamaguchi, Yasuhiro Sogawa

TL;DR

This paper introduces Additional Logic Training (ALT), a method that significantly boosts the reasoning capabilities of large language models (LLMs) by fine-tuning them on a highly structured, program-generated synthetic corpus. By training models on the newly created Formal Logic Deduction Diverse ($FLD_{\times 2}$) dataset, the authors achieved substantial performance leaps—up to 30 points on logic benchmarks and 10 points on math and coding—even for state-of-the-art models like LLaMA-3.1-70B.

What Problem Does This Paper Address?

While LLMs excel at tasks requiring factual recall and pattern matching, they notoriously struggle with strict logical reasoning. Recent studies show that LLMs often rely on memorized knowledge from pre-training rather than true step-by-step derivation; change the numbers in a math problem or the names in a logic puzzle, and the model's performance frequently collapses.

The authors argue that this flaw stems from the pre-training data itself. Human-written text is riddled with logical fallacies, cognitive biases, and informal arguments. To learn rigid, abstract reasoning rules, LLMs need high-quality examples of pure logic. However, creating a dataset that teaches abstract rules without causing the model to overfit or forget its existing real-world knowledge remains a major challenge.

Methods

The authors propose Additional Logic Training (ALT), which fine-tunes LLMs on synthetic, multi-step deductive reasoning samples. To ensure high quality, they established four core design principles grounded in symbolic logic theory:

  1. Reasoning with Unknown Facts: Using arbitrary, synthetic words (e.g., "Foo star", "Jaz star") forces the model to learn abstract logical rules (like modus ponens) rather than relying on semantic context or familiar concepts.
  2. Teaching Illogical Reasoning: The dataset includes negative samples where the provided premises are insufficient to reach a conclusion. This teaches the model precisely when a conclusion cannot be derived, preventing over-inference.
  3. Diverse Reasoning Rules: Instead of simple single-step rules, the corpus features multi-step deductions built from fundamental logical axioms and representative theorems (e.g., syllogism, contraposition, De Morgan's laws).
  4. Diverse Linguistic Expressions: Logical statements are mapped to deeply nested natural language templates to ensure the model learns the underlying logic rather than superficial phrasing.

Crucially, because synthetic data introduces "counterfactual" or unknown facts, standard fine-tuning would cause the model to forget its pre-trained real-world knowledge. To prevent this, the authors utilized the Recall Adam (RecAdam) optimizer, which regularizes parameter updates to keep the model's weights from drifting too far from its pre-trained state.

Datasets

The authors constructed Formal Logic Deduction Diverse ($FLD_{\times 2}$), a synthetic corpus containing 100k training samples, 5k validation samples, and 5k test samples. It features a large vocabulary (~100k words from WordNet), adversarial distractors, roughly 50 distinct deduction rules, and reasoning chains up to 8 steps long.

To evaluate generalization, they tested the models across 31 diverse benchmarks categorized into:

  • Logic: bAbI deduction, FOLIO, LogicNLI, RobustLR, AR-LSAT, LogiQA2, ReClor, AbductionRules, ART.
  • Natural Language Inference (NLI): HELP, MultiNLI, RTE, SNLI.
  • Math: GSM8k, MATH, MathQA.
  • Coding: HumanEval, MBPP, MBPP+, MultiPL-E.
  • Others & Aggregated: MMLU, MMLU-Pro, Big-Bench Hard (BBH).

Key Insights and Ideas

  • Logic is a Foundational Skill: Fine-tuning on pure, abstract logic didn't just improve performance on logic puzzles; it directly translated to better performance in math and coding. This indicates that formal logic acts as a core capability that underpins other structured problem-solving domains.
  • Negative Samples are Non-Negotiable: Ablation studies revealed that omitting negative samples (Principle 2) caused the sharpest drop in performance. Without them, LLMs default to guessing conclusions even when the premises are entirely inadequate.
  • Knowledge and Logic Can Co-exist: Through the use of RecAdam, the models successfully integrated newly acquired logical reasoning skills with the commonsense knowledge they obtained during pre-training, leading to notable improvements in NLI tasks.

Key Results

The authors applied ALT to LLaMA-3.1-8B and LLaMA-3.1-70B, yielding impressive across-the-board improvements:

Figure 1: The performance gains to LLaMA-3.1-70B by Additional Logic Training (ALT) on the proposed synthetic corpus, FLD×2 (Formal Logic Deduction Diverse). Each benchmark set, such as “Logic” and “Math”, comprises various benchmarks in that domain. Tables 2, 4 shows the details.
  • Logical Reasoning: LLaMA-3.1-70B saw massive improvements, such as a 32-point increase on RobustLR and a 16-point increase on LogicNLI.
  • Math and Coding: The 70B model gained up to 10 points on HumanEval (coding) and 7.6 points on MATH (0-shot CoT).
  • General Benchmarks: The model achieved a 5.3-point boost on BBH (3-shot CoT) and a 3.7-point boost on MMLU Pro.

Ablation tests confirmed that removing any single design principle degraded overall performance, validating their systematic approach to corpus design.

Limitations and Future Work

Despite the strong results, the authors note several limitations:

  • Deductive Bias: The synthetic corpus only covers deductive reasoning. Future iterations should explore abductive and inductive reasoning samples.
  • Scope of Logic: The framework is currently limited to first-order predicate logic, leaving other systems like modal or linear logic for future exploration.
  • Complex Procedural Bottlenecks: ALT provided only modest gains on multiple-choice science benchmarks (like ARC). The authors note that these tasks require complex, task-specific elimination strategies that pure logic training alone does not teach, suggesting a need for supplementary procedural training.

Summary updated

BibTeX
@inproceedings{morishita2024enhancing,
  author = {Terufumi Morishita and Gaku Morio and Atsuki Yamaguchi and Yasuhiro Sogawa},
  title = {{Enhancing Reasoning Capabilities of LLMs via Principled Synthetic Logic Corpus}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=mljDUaQpln},
}
Figure