Making Pre-trained Language Models Better Continual Few-Shot Relation Extractors

Shengkun Ma, Jiale Han, Yi Liang, Bo Cheng
2/24/2024
cs.CLcs.AI

No official code found. Best implementation: mashengkun/CPL (5 stars, last commit 2024-02-27).

Abstract

Continual Few-shot Relation Extraction (CFRE) is a practical problem that requires the model to continuously learn novel relations while avoiding forgetting old ones with few labeled training data. The primary challenges are catastrophic forgetting and overfitting. This paper harnesses prompt learning to explore the implicit capabilities of pre-trained language models to address the above two challenges, thereby making language models better continual few-shot relation extractors. Specifically, we propose a Contrastive Prompt Learning framework, which designs prompt representation to acquire more generalized knowledge that can be easily adapted to old and new categories, and margin-based contrastive learning to focus more on hard samples, therefore alleviating catastrophic forgetting and overfitting issues. To further remedy overfitting in low-resource scenarios, we introduce an effective memory augmentation strategy that employs well-crafted prompts to guide ChatGPT in generating diverse samples. Extensive experiments demonstrate that our method outperforms state-of-the-art methods by a large margin and significantly mitigates catastrophic forgetting and overfitting in low-resource scenarios.

View on arXivView PDF

Code Implementations(1)

mashengkun/CPLCommunity100%

This is the implementation of our CPL model with paper: Making Pre-trained Language Models Better Continual Few-Shot Relation Extractors

50Shell, PythonFeb 24, 20242 years ago

Similar Papers

Cite this paper

@article{ma2024making,
  title  = {Making Pre-trained Language Models Better Continual Few-Shot Relation Extractors},
  author = {Shengkun Ma and Jiale Han and Yi Liang and Bo Cheng},
  year   = {2024},
  eprint = {2402.15713},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.15713v1}
}

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/2402.15713.svg)](https://codeofpaper.com/paper/2402.15713)

Discussion