Preserving Commonsense Knowledge from Pre-trained Language Models via Causal Inference

Junhao Zheng, Qianli Ma, Shengjie Qiu, Yue Wu, Peitian Ma +4 more
6/19/2023
cs.CLcs.AI

No official code found. Best implementation: zzz47zzz/CET (24 stars, last commit 2023-12-25). 1 more below.

Abstract

Fine-tuning has been proven to be a simple and effective technique to transfer the learned knowledge of Pre-trained Language Models (PLMs) to downstream tasks. However, vanilla fine-tuning easily overfits the target data and degrades the generalization ability. Most existing studies attribute it to catastrophic forgetting, and they retain the pre-trained knowledge indiscriminately without identifying what knowledge is transferable. Motivated by this, we frame fine-tuning into a causal graph and discover that the crux of catastrophic forgetting lies in the missing causal effects from the pretrained data. Based on the causal view, we propose a unified objective for fine-tuning to retrieve the causality back. Intriguingly, the unified objective can be seen as the sum of the vanilla fine-tuning objective, which learns new knowledge from target data, and the causal objective, which preserves old knowledge from PLMs. Therefore, our method is flexible and can mitigate negative transfer while preserving knowledge. Since endowing models with commonsense is a long-standing challenge, we implement our method on commonsense QA with a proposed heuristic estimation to verify its effectiveness. In the experiments, our method outperforms state-of-the-art fine-tuning methods on all six commonsense QA datasets and can be implemented as a plug-in module to inflate the performance of existing QA models.

View on arXivView PDF

Code Implementations(2)

zzz47zzz/CETCommunity100%

[ACL2023] Preserving Commonsense Knowledge from Pre-trained Language Models via Causal Inference

244PythonMay 4, 20232 years ago
causal-inferencefine-tuningpretrained-language-model
qianlima-lab/CETCommunity100%

[ACL2023] Preserving Commonsense Knowledge from Pre-trained Language Models via Causal Inference

30PythonMay 28, 20242 years ago

Similar Papers

Cite this paper

@article{zheng2023preserving,
  title  = {Preserving Commonsense Knowledge from Pre-trained Language Models via Causal Inference},
  author = {Junhao Zheng and Qianli Ma and Shengjie Qiu and Yue Wu and Peitian Ma and Junlong Liu and Huawen Feng and Xichen Shang and Haibin Chen},
  year   = {2023},
  eprint = {2306.10790},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2306.10790v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2306.10790.svg)](https://codeofpaper.com/paper/2306.10790)

Discussion