CausalBERT: Injecting Causal Knowledge Into Pre-trained Models with Minimal Supervision

Zhongyang Li, Xiao Ding, Kuo Liao, Ting Liu, Bing QinarXiv 2021

Introduction

Pre-trained language models (PLMs) like BERT and ALBERT have set new standards in natural language processing. However, these models are essentially sophisticated statistical engines that excel at pattern recognition but often fail to grasp the underlying causal relationships—the "why" behind the "what." For example, while a model might associate "rain" with "wet," it does not inherently understand the directional causal link.

CausalBERT addresses this gap by introducing a framework to inject causal reasoning into PLMs with minimal supervision. This approach overcomes two primary challenges: the scarcity of high-quality, large-scale causal datasets and the risk of "catastrophic forgetting," where a model loses its general linguistic capabilities while learning specialized knowledge.

Methodology: Three-Stage Sequential Transfer

The CausalBERT framework employs a three-stage sequential transfer learning process designed to integrate causal knowledge without degrading the model's foundational language understanding.

The three-stage sequential transfer learning framework of CausalBERT.
  1. General Pre-training: The process begins with a standard PLM (such as BERT, RoBERTa, or ALBERT) pre-trained on massive unlabeled corpora.
  2. Causal Knowledge Injection: This self-supervised stage is the core innovation. The model is trained on causal pairs using two tasks:
  3. Causal Pair Classification: Predicting the existence of a causal relationship between two terms using Cross-Entropy Loss.
  4. Causal Pairs Ranking: Learning to rank true cause-effect pairs above corrupted ones using a Margin-based Loss. To mitigate catastrophic forgetting, L2 regularization is applied to the model parameters, ensuring the model remains anchored to its original linguistic foundations.

  5. Task-Specific Fine-tuning: Finally, the model is fine-tuned for specific downstream applications, such as Causal Question Answering or the Choice of Plausible Alternatives (COPA).

Data and Knowledge Sources

The study leverages diverse datasets to capture causality at multiple granularities:

  • Word-level: 558K pairs extracted from Common Crawl using precise template matching (e.g., "X caused Y").
  • Phrase/Sentence-level: Data from CausalBank (314M pairs) and ConceptNet.
  • Evaluation Benchmarks: SemEval 2010 Task 8, NATO-SFA, Risk Models, COPA, BCOPA, CausalQA, and CosmosQA.

Key Results and Performance

CausalBERT demonstrates significant improvements across various benchmarks. Most notably, on the COPA dataset, a CausalBERT model based on ALBERT-xxlarge achieved 93.5% accuracy, nearing the performance of the much larger T5-11B model (94.8%).

Performance comparison of CausalBERT variants against baselines on COPA and BCOPA benchmarks.

Beyond fine-tuned performance, the model's zero-shot capabilities are remarkable. Without any task-specific training on COPA, the causal-enhanced ALBERT reached 86.4% accuracy, surpassing many models that were explicitly fine-tuned on the dataset. Furthermore, the model showed robustness on BCOPA, a "balanced" version of COPA designed to penalize models that rely on superficial linguistic cues rather than true causal logic.

Conclusion and Future Directions

CausalBERT proves that causal reasoning can be effectively injected into PLMs using large-scale, automatically harvested data and structured transfer learning. While the model excels at direct causal classification, challenges remain in indirect causal inference, where causes must be inferred from complex, multi-step narratives (as seen in CosmosQA). Future research will explore more sophisticated injection methods and parameter-efficient adapters to further enhance these reasoning capabilities.

Summary updated

BibTeX
@misc{li2021causalbert,
  author = {Zhongyang Li and Xiao Ding and Kuo Liao and Ting Liu and Bing Qin},
  title = {{CausalBERT: Injecting Causal Knowledge Into Pre-trained Models with Minimal Supervision}},
  year = {2021},
  eprint = {2107.09852},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2107.09852},
}
Figure