Continual Relation Extraction via Sequential Multi-Task Learning

Thanh-Thien Le, Manh Nguyen, Tung Thanh Nguyen, Ngo Van Linh, Thien Huu Nguyen

Introduction

Relation Extraction (RE) is a fundamental task in Natural Language Processing (NLP) aimed at identifying semantic relationships between entities in text, such as recognizing that "Paris" is the "capital of" "France." In dynamic real-world environments, the set of relations to be extracted is often non-stationary, requiring models to learn new relations incrementally. However, standard deep learning models suffer from catastrophic forgetting, where learning new tasks leads to a sharp decline in performance on previously learned ones.

The Challenges of Continual Learning

Existing approaches to Continual Relation Extraction (CRE) often rely on experience replay, which involves storing a subset of previous training data in a memory buffer. This approach presents two significant hurdles:

  1. Privacy Risks: Storing raw text data long-term is often prohibited in sensitive domains due to privacy and security regulations.
  2. Optimization Conflicts: Balancing the learning objectives of new and old tasks is difficult. Simple weighted averages of losses often fail to account for the disparate gradient signals between the "loud" new task and the "quiet" replayed tasks.

The CREST Framework

The authors propose CREST (Continual Relation Extraction via Sequential Multi-task Learning), a rehearsal-free framework designed to address these challenges through three primary innovations:

  • Frozen Backbone: By freezing the BERT encoder, CREST maintains a stable latent space and ensures that the mathematical representation of text remains consistent over time, which also significantly reduces training overhead.
  • Generative Replay via Gaussian Mixture Models (GMMs): Instead of raw text, CREST stores the distribution of latent features for each relation using GMMs. During training on new tasks, synthetic features are sampled from these GMMs to simulate old tasks, preserving privacy and memory efficiency.
  • Adaptive Unified Gradient Descent (AUGD): This novel optimization strategy treats CRE as a sequential multi-task learning problem. Unlike standard multi-objective optimization (MOO) which assumes task parity, AUGD adaptively balances the high-intensity gradients of new tasks with the lower-intensity signals of replayed tasks to prevent interference and stabilize old knowledge.

Experimental Results

CREST was evaluated on two benchmark datasets: FewRel (80 relations split into 10 tasks) and TACRED (42 relations, including a "no_relation" category).

Performance comparison of CREST against state-of-the-art baselines on FewRel and TACRED datasets.

As shown in the results, CREST achieves state-of-the-art performance on the challenging TACRED dataset with a final accuracy of 79.4%, even outperforming models that utilize real data buffers. On FewRel, it remains highly competitive, matching top-tier rehearsal-based models with 84.8% accuracy.

Ablation and Gradient Optimization

A critical component of CREST's success is the AUGD optimization. The authors compared it against other popular gradient-balancing methods such as PCGrad and CAGrad to determine if standard Multi-Task Learning tools could suffice.

Ablation study comparing CREST's AUGD optimization with other multi-objective optimization methods across both datasets.

The ablation study demonstrates that standard MOO techniques are suboptimal for the lopsided dynamics of continual learning. CREST consistently outperforms these alternatives, validating the necessity of its specialized gradient handling for maintaining stability while acquiring new knowledge.

Conclusion

CREST provides a robust, privacy-preserving solution for continual relation extraction. By leveraging latent feature generation and a specialized optimization strategy, it overcomes the limitations of traditional memory buffers. While the model currently requires storing GMM parameters for every relation, future research may focus on scaling this management for thousands of relations and exploring parameter-efficient fine-tuning to enhance backbone adaptability without triggering forgetting.

Summary updated

BibTeX
@inproceedings{le2024continual,
  author = {Thanh-Thien Le and Manh Nguyen and Tung Thanh Nguyen and Ngo Van Linh and Thien Huu Nguyen},
  title = {{Continual Relation Extraction via Sequential Multi-Task Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i16.29805},
}
Figure