CoolFace
Datasetpublic

leobertolazzi/syllogistic-logic

Dataset Summary Syllogistic-logic is a synthetic dataset designed to evaluate the logical reasoning abilities of LLMs. It focuses on the task of logical premise selection — identifying the minimal set of premises in a knowledge base that entails a given hypothesis. The dataset is built on the syllogistic fragment of first-order logic and supports systematic generalization experiments, including generalization to unseen knowledge bases and reasoning with longer or shorter… See the full description on the dataset page: https://huggingface.co/datasets/leobertolazzi/syllogistic-logic.

sourceHugging Facecc-by-4.0updated 9mo agoView on Hugging Face
0likes78downloads
Dataset Card

Dataset Summary

Syllogistic-logic is a synthetic dataset designed to evaluate the logical reasoning abilities of LLMs. It focuses on the task of logical premise selection — identifying the minimal set of premises in a knowledge base that entails a given hypothesis. The dataset is built on the syllogistic fragment of first-order logic and supports systematic generalization experiments, including generalization to unseen knowledge bases and reasoning with longer or shorter inference chains than seen during training.

The dataset is used to train and evaluate models using the MIND (Meta-learning for IN-context Deduction) fine-tuning approach, which adapts few-shot meta-learning to logical reasoning. Each row in the dataset includes a knowledge base, study examples (support), a query hypothesis, and the set of premises from which the query hypothesis can be derived.

Further details can be found in the paper where the dataset was proposed: A MIND for Reasoning: Meta-learning for In-context Deduction

Features

Each example in the dataset includes the following fields:

ColumnTypeDescription
knowledge_basestringConcatenated premises representing the KB.
study_examples_allstringConcatenated study (support) examples for core generalization (see paper).
study_examples_compstringConcatenated study (support) examples for long->short generalization (see paper).
study_examples_recstringConcatenated study (support) examples for short->long generalization (see paper).
query_hypstringQuery hypothesis to be proven.
query_infstringMinimal set of premises within KB that entail the query hypothesis.
kb_idstringIdentifier of the knowledge base.
pword_aint64Pseudowords assignment.
kb_permutint64Permutation index of the orderd of premises within KB.
#prem_kbint64Total premises in the KB.
inf_lengthint64Number of minimal premises necessary to derive the query hypotheisis.
inf_typeint64Type of syllogistic inference (from 1 to 7).

To load the dataset, run:

python
from datasets import load_dataset

data_files = {
  "train": "train.csv",
  "validation": "validation.csv",
  "test": "test.csv",
  "test_ood_constants": "test_ood_constants.csv",
  "test_ood_support": "test_ood_support.csv",
  "test_ood_words": "test_ood_words.csv",
}
full_data = load_dataset("leobertolazzi/syllogistic-logic", data_files=data_files)

Licensing

This dataset is licensed under a CC BY-SA 4.0 License.

Cite

bibtex
@misc{bertolazzi-et-al-2025-mind,
      title={A MIND for Reasoning: Meta-learning for In-context Deduction}, 
      author={Leonardo Bertolazzi and Manuel Vargas Guzmán and Raffaella Bernardi and Maciej Malicki and Jakub Szymanik},
      year={2025},
      eprint={2505.14313},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2505.14313}, 
}