[Paper Review] Making Pre-trained Language Models Better Continual Few-Shot Relation Extractors
This paper proposes a Contrastive Prompt Learning (CPL) framework that leverages prompt learning and margin-based contrastive learning to mitigate catastrophic forgetting and overfitting in continual few-shot relation extraction. By using well-crafted prompts to guide few-shot data generation via ChatGPT and employing a nearest-class-mean classifier, CPL achieves state-of-the-art performance, improving accuracy by 6.28% on TACRED compared to prior methods.
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.
Motivation & Objective
- To address catastrophic forgetting and overfitting in continual few-shot relation extraction (CFRE), where models must learn new relations with minimal labeled data.
- To explore the implicit capabilities of pre-trained language models (PLMs) through prompt learning to improve generalization across old and new relations.
- To reduce overfitting in low-resource scenarios by leveraging large language models (LLMs) for data augmentation.
- To develop a unified framework that combines prompt representation, contrastive learning, and memory augmentation for robust continual learning.
- To outperform existing state-of-the-art methods in CFRE benchmarks while maintaining strong generalization and stability.
Proposed method
- Proposes a Contrastive Prompt Learning (CPL) framework that integrates prompt representation and margin-based contrastive learning to enhance feature discrimination and reduce forgetting.
- Uses a semi-automated prompt template to convert relation extraction into a text infilling task, enabling PLMs to learn generalizable, category-agnostic representations.
- Applies margin-based contrastive learning to focus on hard negative samples, promoting uniform feature distribution and reducing overfitting.
- Introduces a memory augmentation strategy using well-crafted prompts to guide ChatGPT in generating diverse, high-quality synthetic training samples for low-resource relations.
- Employs a nearest-class-mean classifier instead of softmax to better suit incremental classification in continual learning settings.
- Combines prompt-based representation learning with contrastive learning and LLM-augmented data to jointly address forgetting and overfitting.
Experimental results
Research questions
- RQ1Can prompt learning unlock implicit capabilities in pre-trained language models to improve continual few-shot relation extraction?
- RQ2How can contrastive learning with margin-based sampling reduce overfitting and improve feature generalization in low-resource settings?
- RQ3To what extent can LLM-generated synthetic data via prompt-guided generation alleviate overfitting in few-shot continual learning?
- RQ4Does combining prompt learning, contrastive learning, and data augmentation lead to better performance and reduced forgetting than existing methods?
- RQ5How does the nearest-class-mean classifier compare to softmax in incremental relation extraction under continual learning?
Key findings
- The proposed CPL framework achieves a 6.28% absolute improvement in accuracy over the state-of-the-art method on the TACRED benchmark.
- The model significantly reduces catastrophic forgetting, maintaining high performance on previously learned relations during continual learning.
- The margin-based contrastive learning component improves feature distribution and reduces overfitting, especially in low-resource scenarios.
- The LLM-augmented data generation strategy produces diverse, high-quality synthetic samples that enhance model generalization and robustness.
- Ablation studies confirm that each component—prompt learning, contrastive learning, and data augmentation—contributes independently and synergistically to performance gains.
- The nearest-class-mean classifier outperforms softmax in incremental classification, particularly in long-tail and few-shot settings.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.