RuleBert: Teaching Soft Rules to Pre-trained Language Models
Not on the map. Why?
Abstract (arXiv)
While pre-trained language models (PLMs) are the go-to solution to tackle many natural language processing problems, they are still very limited in their ability to capture and to use common-sense knowledge. In fact, even if information is available in the form of approximate (soft) logical rules, it is not clear how to transfer it to a PLM in order to improve its performance for deductive reasoning tasks. Here, we aim to bridge this gap by teaching PLMs how to reason with soft Horn rules. We introduce a classification task where, given facts and soft rules, the PLM should return a prediction with a probability for a given hypothesis. We release the first dataset for this task, and we propose a revised loss function that enables the PLM to learn how to predict precise probabilities for the task. Our evaluation results show that the resulting fine-tuned models achieve very high performance, even on logical rules that were unseen at training. Moreover, we demonstrate that logical notions expressed by the rules are transferred to the fine-tuned model, yielding state-of-the-art results on external datasets.
Key facts. Cited by 25 papers in the map (data through 7 Oct 2026). Builds on 33 of its 55 references that are in the map. First posted on arXiv 24 Sep 2021.
Builds on
33 of 55 references.
References · 33
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
- 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,140
- 2019Language Models as Knowledge Bases?cited by 1,922
- 2019Energy and Policy Considerations for Deep Learning in NLPcited by 1,242
- 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 994
- 2020Beyond Accuracy: Behavioral Testing of NLP models with CheckListcited by 979
- 2020A Primer in BERTology: What we know about how BERT workscited by 807
- 2019Green AIcited by 620
- 2019The Woman Worked as a Babysitter: On Biases in Language Generationcited by 540
- 2020Fine-Tuning Pretrained Language Models: Weight Initializations, Data Orders, and Early Stoppingcited by 377
21 more
- 2017Measuring Catastrophic Forgetting in Neural Networkscited by 359
- 2015Towards AI-Complete Question Answering: A Set of Prerequisite Toy Taskscited by 309
- 2019Learning Deep Transformer Models for Machine Translationcited by 309
- 2020ProofWriter: Generating Implications, Proofs, and Abductive Statements over Natural Languagecited by 309
- 2021Towards Understanding and Mitigating Social Biases in Language Modelscited by 294
- 2019Deep Learning for Symbolic Mathematicscited by 266
- 2020Transformers as Soft Reasoners over Languagecited by 265
- 2020On the Stability of Fine-tuning BERT: Misconceptions, Explanations, and Strong Baselinescited by 254
- 2019Negated and Misprimed Probes for Pretrained Language Models: Birds Can Talk, But Cannot Flycited by 240
- 2020Towards Debiasing Sentence Representationscited by 170
- 2019oLMpics -- On what Language Model Pre-training Capturescited by 161
- 2020Continual Lifelong Learning in Natural Language Processing: A Surveycited by 152
- 2018Embedding Logical Queries on Knowledge Graphscited by 120
- 2019Evaluating Commonsense in Pre-trained Language Modelscited by 95
- 2020Hurtful Words: Quantifying Biases in Clinical Contextual Word Embeddingscited by 79
- 2014Clingo = ASP + Control: Preliminary Reportcited by 56
- 2020What Do Position Embeddings Learn? An Empirical Study of Pre-Trained Language Model Positional Encodingcited by 52
- 2019Differentiable Reasoning on Large Knowledge Bases and Natural Languagecited by 30
- 2020Leap-Of-Thought: Teaching Pre-Trained Models to Systematically Reason Over Implicit Knowledgecited by 24
- 2016Learning Executable Semantic Parsers for Natural Language Understandingcited by 21
- 2017Computing LPMLN Using ASP and MLN Solverscited by 8
Built on by
Citing papers per year: 2021: 1; 2022: 8; 2023: 6; 2024: 4; 2025: 4; 2026: 2.
25 papers.
Sort:
By area:
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2022FOLIO: Natural Language Reasoning with First-Order Logiccited by 233
- 2022A Survey of Knowledge Enhanced Pre-trained Language Modelscited by 76
- 2024LogicBench: Towards Systematic Evaluation of Logical Reasoning Ability of Large Language Modelscited by 67
- 2022LAMBADA: Backward Chaining for Automated Reasoning in Natural Languagecited by 66
- 2023BoardgameQA: A Dataset for Natural Language Reasoning with Contradictory Informationcited by 42
- 2022Transfer Learning with Synthetic Corpora for Spatial Role Labeling and Reasoningcited by 32
- 2022Chain of Thought Imitation with Procedure Cloningcited by 30
- 2024Enhancing Reasoning Capabilities of LLMs via Principled Synthetic Logic Corpuscited by 29
- 2023Improved Logical Reasoning of Language Models via Differentiable Symbolic Programmingcited by 18
- 2025Large language models for artificial general intelligence (AGI): A survey of foundational principles and approachescited by 18
- 2023RECKONING: Reasoning through Dynamic Knowledge Encodingcited by 17
13 more
- 2025Extracting Probabilistic Knowledge from Large Language Models for Bayesian Network Parameterizationcited by 15
- 2024LogicPro: Improving Complex Logical Reasoning via Program-Guided Learningcited by 14
- 2023GLUECons: A Generic Benchmark for Learning Under Constraintscited by 9
- 2024A Survey on Symbolic Knowledge Distillation of Large Language Modelscited by 9
- 2026RFEval: Benchmarking Reasoning Faithfulness under Counterfactual Reasoning Intervention in Large Reasoning Modelscited by 9
- 2025Leveraging Large Language Models for Bengali Math Word Problem Solving with Chain of Thought Reasoningcited by 8
- 2023Teaching Probabilistic Logical Reasoning to Transformerscited by 7
- 2022Automatic Rule Induction for Interpretable Semi-Supervised Learningcited by 6
- 2021A Survey of Knowledge Enhanced Pre-trained Modelscited by 3
- 2022Reasoning over Logically Interacted Conditions for Question Answeringcited by 3
- 2023Dynamic MOdularized Reasoning for Compositional Structured Explanation Generationcited by 1
- 2026Where Reasoning Breaks: Logic-Aware Path Selection by Controlling Logical Connectives in LLMs Reasoning Chainscited by 1
- 2025MIH-TCCT: Mitigating Inconsistent Hallucinations in LLMs via Event-Driven Text-Code Cyclic Trainingcited by 0
- 2026Where Reasoning Breaks: Logic-Aware Path Selection by Controlling Logical Connectives in LLMs Reasoning Chains22 Apr 2026
- 2026RFEval: Benchmarking Reasoning Faithfulness under Counterfactual Reasoning Intervention in Large Reasoning Models19 Feb 2026
- 2025Leveraging Large Language Models for Bengali Math Word Problem Solving with Chain of Thought Reasoning27 May 2025
- 2025Extracting Probabilistic Knowledge from Large Language Models for Bayesian Network Parameterization21 May 2025
- 2025MIH-TCCT: Mitigating Inconsistent Hallucinations in LLMs via Event-Driven Text-Code Cyclic Training13 Feb 2025
- 2025Large language models for artificial general intelligence (AGI): A survey of foundational principles and approaches6 Jan 2025
- 2024Enhancing Reasoning Capabilities of LLMs via Principled Synthetic Logic Corpus19 Nov 2024
- 2024LogicPro: Improving Complex Logical Reasoning via Program-Guided Learning19 Sep 2024
- 2024A Survey on Symbolic Knowledge Distillation of Large Language Models12 Jul 2024
- 2024LogicBench: Towards Systematic Evaluation of Logical Reasoning Ability of Large Language Models23 Apr 2024
- 2023Dynamic MOdularized Reasoning for Compositional Structured Explanation Generation14 Sep 2023
- 2023BoardgameQA: A Dataset for Natural Language Reasoning with Contradictory Information13 Jun 2023
13 more
- 2023Teaching Probabilistic Logical Reasoning to Transformers22 May 2023
- 2023RECKONING: Reasoning through Dynamic Knowledge Encoding10 May 2023
- 2023Improved Logical Reasoning of Language Models via Differentiable Symbolic Programming5 May 2023
- 2023GLUECons: A Generic Benchmark for Learning Under Constraints16 Feb 2023
- 2022LAMBADA: Backward Chaining for Automated Reasoning in Natural Language20 Dec 2022
- 2022A Survey of Knowledge Enhanced Pre-trained Language Models11 Nov 2022
- 2022Transfer Learning with Synthetic Corpora for Spatial Role Labeling and Reasoning30 Oct 2022
- 2022FOLIO: Natural Language Reasoning with First-Order Logic2 Sep 2022
- 2022Reasoning over Logically Interacted Conditions for Question Answering25 May 2022
- 2022Chain of Thought Imitation with Procedure Cloning22 May 2022
- 2022Automatic Rule Induction for Interpretable Semi-Supervised Learning18 May 2022
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Models28 Jan 2022
- 2021A Survey of Knowledge Enhanced Pre-trained Models1 Oct 2021
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2022FOLIO: Natural Language Reasoning with First-Order Logiccited by 233
- 2024LogicBench: Towards Systematic Evaluation of Logical Reasoning Ability of Large Language Modelscited by 67
- 2022LAMBADA: Backward Chaining for Automated Reasoning in Natural Languagecited by 66
- 2023BoardgameQA: A Dataset for Natural Language Reasoning with Contradictory Informationcited by 42
- 2022Transfer Learning with Synthetic Corpora for Spatial Role Labeling and Reasoningcited by 32
- 2022Chain of Thought Imitation with Procedure Cloningcited by 30
- 2024Enhancing Reasoning Capabilities of LLMs via Principled Synthetic Logic Corpuscited by 29
- 2023Improved Logical Reasoning of Language Models via Differentiable Symbolic Programmingcited by 18
- 2023RECKONING: Reasoning through Dynamic Knowledge Encodingcited by 17
- 2024LogicPro: Improving Complex Logical Reasoning via Program-Guided Learningcited by 14
- 2026RFEval: Benchmarking Reasoning Faithfulness under Counterfactual Reasoning Intervention in Large Reasoning Modelscited by 9
12 most cited of 15 All 15 (JSON)
- 2026Where Reasoning Breaks: Logic-Aware Path Selection by Controlling Logical Connectives in LLMs Reasoning Chains22 Apr 2026
- 2026RFEval: Benchmarking Reasoning Faithfulness under Counterfactual Reasoning Intervention in Large Reasoning Models19 Feb 2026
- 2025Leveraging Large Language Models for Bengali Math Word Problem Solving with Chain of Thought Reasoning27 May 2025
- 2024Enhancing Reasoning Capabilities of LLMs via Principled Synthetic Logic Corpus19 Nov 2024
- 2024LogicPro: Improving Complex Logical Reasoning via Program-Guided Learning19 Sep 2024
- 2024LogicBench: Towards Systematic Evaluation of Logical Reasoning Ability of Large Language Models23 Apr 2024
- 2023BoardgameQA: A Dataset for Natural Language Reasoning with Contradictory Information13 Jun 2023
- 2023Teaching Probabilistic Logical Reasoning to Transformers22 May 2023
- 2023RECKONING: Reasoning through Dynamic Knowledge Encoding10 May 2023
- 2023Improved Logical Reasoning of Language Models via Differentiable Symbolic Programming5 May 2023
- 2022LAMBADA: Backward Chaining for Automated Reasoning in Natural Language20 Dec 2022
- 2022Transfer Learning with Synthetic Corpora for Spatial Role Labeling and Reasoning30 Oct 2022
12 newest of 15 All 15 (JSON)
- 2022A Survey of Knowledge Enhanced Pre-trained Language Modelscited by 76
- 2025Extracting Probabilistic Knowledge from Large Language Models for Bayesian Network Parameterizationcited by 15
- 2023GLUECons: A Generic Benchmark for Learning Under Constraintscited by 9
- 2024A Survey on Symbolic Knowledge Distillation of Large Language Modelscited by 9
- 2022Automatic Rule Induction for Interpretable Semi-Supervised Learningcited by 6
- 2021A Survey of Knowledge Enhanced Pre-trained Modelscited by 3
- 2022Reasoning over Logically Interacted Conditions for Question Answeringcited by 3
- 2023Dynamic MOdularized Reasoning for Compositional Structured Explanation Generationcited by 1
- 2025MIH-TCCT: Mitigating Inconsistent Hallucinations in LLMs via Event-Driven Text-Code Cyclic Trainingcited by 0
- 2025Extracting Probabilistic Knowledge from Large Language Models for Bayesian Network Parameterization21 May 2025
- 2025MIH-TCCT: Mitigating Inconsistent Hallucinations in LLMs via Event-Driven Text-Code Cyclic Training13 Feb 2025
- 2024A Survey on Symbolic Knowledge Distillation of Large Language Models12 Jul 2024
- 2023Dynamic MOdularized Reasoning for Compositional Structured Explanation Generation14 Sep 2023
- 2023GLUECons: A Generic Benchmark for Learning Under Constraints16 Feb 2023
- 2022A Survey of Knowledge Enhanced Pre-trained Language Models11 Nov 2022
- 2022Reasoning over Logically Interacted Conditions for Question Answering25 May 2022
- 2022Automatic Rule Induction for Interpretable Semi-Supervised Learning18 May 2022
- 2021A Survey of Knowledge Enhanced Pre-trained Models1 Oct 2021