Few-Shot, No Problem: Descriptive Continual Relation Extraction

Nguyen Xuan Thanh, Anh Duc Le, Quyen Tran, Thanh-Thien Le, Linh Ngo Van, Thien Huu Nguyen

Abstract

Continual Relation Extraction (CRE) faces the dual challenge of catastrophic forgetting and data scarcity in few-shot settings. We present Descriptive Continual Relation Extraction (DCRE), a novel framework that utilizes Large Language Models (LLMs) to generate detailed, diverse relation descriptions. These descriptions act as stable semantic pivots, anchoring the model's latent space and preventing the drift typically caused by learning new tasks from limited samples. DCRE demonstrates superior performance and robustness against forgetting on standard benchmarks like FewRel and TACRED.

Introduction

In Relation Extraction (RE), models identify semantic links between entities (e.g., "Steve Jobs" and "Apple" share a founder relationship). Real-world applications require models to learn new relations over time (Continual Learning), often with very few examples (Few-Shot Learning).

Traditional methods rely on a "memory buffer" to store old samples for rehearsal. However, with only a handful of samples (e.g., 5 or 10), models tend to overfit to specific sentence structures rather than capturing the underlying relation semantics. As new tasks are introduced, the internal representations of previous tasks degrade, leading to catastrophic forgetting.

The DCRE Framework

DCRE addresses these issues by shifting the learning paradigm from raw samples to semantic definitions. The framework consists of three core components:

  1. LLM-Generated Descriptions: Using Gemini 1.5, the system generates $K$ diverse, detailed descriptions and sentence examples for every relation. These serve as "stable pivots" in the latent space.
  2. Description-Pivot Learning: The model employs a bi-encoder setup with specialized loss functions. Hard Margin Loss improves discriminative power between similar relations, while Mutual Information (MI) Loss aligns input sample representations with their corresponding retrieved descriptions.
  3. Descriptive Retrieval Inference (DRI): During inference, the model uses Reciprocal Rank Fusion to combine distances to class prototypes with semantic similarity to LLM-generated descriptions, ensuring more robust predictions.
The DCRE architecture illustrating the integration of sample-based and description-pivot losses.

Crucially, the LLM is only used once for description generation and is not required during training or inference, maintaining computational efficiency.

Experimental Evaluation

DCRE was evaluated on two gold-standard benchmarks:

  • FewRel: A large-scale dataset used in a 10-way, 5-shot setup.
  • TACRED: A challenging, noisy dataset used in a 5-way, 5-shot setup.

Both datasets were organized into 8 sequential tasks to rigorously test the model's ability to learn incrementally without losing prior knowledge.

Results and Insights

DCRE established a new state-of-the-art (SOTA) across both benchmarks. On FewRel, DCRE outperformed the previous strongest baseline (CPL) by up to 3.74%. On the noisier TACRED dataset, the performance gap increased to 5.82%.

Performance comparison of DCRE against baselines on FewRel and TACRED datasets across sequential tasks.

Key insights from the study include:

  • Stability of Definitions: While individual sentences vary, relation definitions remain constant. Aligning samples to these definitions creates "semantic anchors" that resist drift.
  • LLMs as Semantic Augmentors: LLMs provide a richer "expert" understanding of classes compared to traditional word-swapping data augmentation.
  • Retrieval-Based Learning: Framing RE as a retrieval task (matching samples to definitions) handles expanding class sets more effectively than standard classification.

Conclusion

DCRE demonstrates that leveraging LLM-generated descriptions can significantly mitigate catastrophic forgetting in few-shot continual learning. While the method shows impressive gains, future work will explore the impact of LLM hallucination on pivot quality and dynamic methods for determining the optimal number of descriptions ($K$) per relation.

Summary updated

BibTeX
@inproceedings{thanh2025few,
  author = {Nguyen Xuan Thanh and Anh Duc Le and Quyen Tran and Thanh-Thien Le and Linh Ngo Van and Thien Huu Nguyen},
  title = {{Few-Shot, No Problem: Descriptive Continual Relation Extraction}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i24.34715},
}
Figure