TL;DR
This paper explores how to inject commonsense knowledge from a knowledge graph (ATOMIC2020) into pre-trained language models (PLMs) to improve their understanding of cause-and-effect relationships. By continually pre-training BERT with this knowledge, they achieve significant performance gains on cause-effect classification and commonsense reasoning tasks without altering the model architecture.
What Problem Does This Paper Address?
Understanding cause-and-effect is fundamental to human reasoning and crucial for many NLP tasks, like question answering and text generation. While pre-trained language models (PLMs) like BERT have shown impressive capabilities, their ability to grasp causal relationships is still an open question. Existing methods for augmenting PLMs with external knowledge, such as knowledge graphs, have shown varying success across different tasks and domains. This paper specifically investigates how to effectively leverage commonsense knowledge graphs to enhance PLMs for the challenging tasks of cause-effect relation classification and commonsense causal reasoning.
Methods
The core of the proposed method involves a two-step process:
- Knowledge Graph Verbalization: The ATOMIC2020 knowledge graph, which contains commonsense knowledge in the form of (subject, relation, target) triples, is converted into natural language text. This is achieved by using human-readable templates associated with each relation type and then applying a grammar checker to ensure the generated sentences are coherent. The authors filter out duplicate triples and those with missing information.
- Continual Pre-training: The verbalized knowledge graph data is used to further pre-train a BERT-large model using the standard Masked Language Modeling (MLM) objective. This process, termed "continual pre-training," allows the model to learn causal reasoning patterns directly from the commonsense knowledge. The pre-training is performed on the ATOMIC2020 training and development splits.
For downstream tasks, the continually pre-trained BERT model is fine-tuned. For multiple-choice tasks like COPA and BCOPA-CE, a multiple-choice head is added. For the Temporal and Causal Reasoning (TCR) dataset, a specialized R-BERT model is used, which is known to incorporate entity information.
Datasets
- ATOMIC2020: This is the primary source of commonsense knowledge used for pre-training. It's a large-scale knowledge graph containing commonsense knowledge about events, social interactions, and physical entities. The authors utilize its train, development, and test splits for their pre-training.
- Temporal and Causal Reasoning (TCR) dataset: Used for evaluating joint reasoning of temporal and causal relations.
- Choice Of Plausible Alternatives (COPA) dataset: A widely used benchmark for commonsense causal reasoning.
- BCOPA-CE: A newer benchmark inspired by COPA, designed to be more challenging due to unbiased token distributions.
Key Insights and Ideas
- Knowledge Graph Verbalization is Key: The paper demonstrates that simply converting knowledge graph triples into natural language sentences and using them for continual pre-training can significantly boost performance. This suggests that PLMs can effectively learn from structured knowledge when presented in a language-like format.
- Event-Centric Knowledge Matters: For COPA-related tasks, focusing on "event-centric" relations from ATOMIC2020 yielded better results than using all relation types. This highlights the importance of domain-specific knowledge for specific reasoning tasks.
- No Architecture Changes Needed: A significant finding is that these performance improvements are achieved without modifying the underlying BERT architecture or using specially curated, high-quality fine-tuning data. This implies that the knowledge injection itself is the primary driver of improvement.
- Smaller Models Benefit: The authors note that their approach significantly benefits a BERT-large model, which has fewer parameters than state-of-the-art models like Google T5-11B. This suggests the method is efficient and can be applied to various model sizes.
Key Results
- TCR Dataset: The ATOMIC-BERT-large model achieved an accuracy of 91.0%, significantly outperforming the baseline BERT-large (75.0%) and a previous ILP-based framework (77.3%).
- COPA-test Dataset: The ATOMIC-BERT-large model achieved 88.9% accuracy, surpassing the baseline BERT-large (83.0%) and other prior work. This improvement was particularly notable on the "Hard" questions, indicating better understanding of nuanced causal relationships.
- BCOPA-CE Dataset: The ATOMIC-BERT-large model (event-only pre-training) achieved 58.1% accuracy, outperforming the baseline BERT-large (55.8%). Interestingly, for BCOPA-CE, adding question type as a prompt improved performance, suggesting task-specific prompt engineering can further enhance results.
Limitations and Future Work
- Data-to-Text and Grammar Checking: The authors acknowledge that the quality of the verbalized knowledge graph data is dependent on the chosen Data-to-Text generation and grammar-checking methods. Investigating alternative methods for these steps is a direction for future work.
- Model Improvement Methods: The paper suggests that further enhancements could be achieved by incorporating more advanced techniques, such as margin-based loss functions (used in Causal-BERT), extra regularization, or using unbiased fine-tuning datasets like BCOPA.
- Unbiased Fine-tuning: The authors note that they did not use crowdsourcing or manual re-writing for their pre-training data, which is a common practice for creating high-quality datasets. Future work could explore how such efforts might further boost performance.
- Prompt Engineering: While prompt engineering showed promise for BCOPA-CE, its effectiveness on other tasks, like COPA, was less pronounced. Further exploration of prompt-based approaches for causal reasoning is warranted.
Summary updated