Enhancing Continual Relation Extraction via Classifier Decomposition

Heming Xia, Peiyi Wang, Tianyu Liu, Binghuai Lin, Yunbo Cao, Zhifang Sui

Introduction

Continual Relation Extraction (CRE) is a critical task in natural language processing where a model must learn to identify new relationships from a stream of data without forgetting previously acquired knowledge. The standard paradigm for CRE involves a two-stage process: first, training on new data (Stage 1), and then "replaying" a small memory set of old data to refresh the model (Stage 2).

While significant research has focused on optimizing the replay mechanism in Stage 2, this paper argues that the primary damage to model performance actually occurs during Stage 1. Specifically, the authors identify two major hurdles: Classifier Bias, where the model improperly updates weights for old relations, leading to a preference for new ones; and Representation Bias, where new relations overlap with old ones in the model's internal vector space.

The CDec Framework

To address these biases, the authors propose CDec (Classifier Decomposition). This framework splits the final Feed-Forward Network (FFN) layer into distinct "previous" and "current" classifiers and introduces two novel strategies to stabilize learning.

Empirical Initialization

Before a new task begins, CDec utilizes a frozen copy of the previous classifier nodes. These well-trained weights serve as the initialization for the classifier in the next stage. This ensures that the model's existing "knowledge" of how to identify old relations is preserved and not skewed by the sudden influx of new, task-specific data.

Adversarial Tuning

Adversarial Tuning is designed to combat representation bias. During Stage 1, the model updates the weights of the previous classifier much more slowly than the current one. This creates an "adversarial" signal: if a new data point (e.g., "Mother") is too similar to an old one (e.g., "Father"), the old classifier will produce a high score. To minimize training loss, the model is forced to learn more distinct, robust representations that clearly separate new relations from old ones in the embedding space.

The CDec framework: (a) Empirical Initialization and (b) Adversarial Tuning strategies.

Experimental Results

The CDec framework was evaluated on two standard benchmarks: FewRel (80 relations) and TACRED (42 relations). In both cases, CDec consistently outperformed state-of-the-art (SOTA) models like CRECL and CRL.

  • FewRel: CDec achieved an average accuracy of 84.6% across 10 tasks, surpassing the previous best of 83.1%.
  • TACRED: CDec reached 78.6% accuracy, compared to the previous SOTA of 78.0%.

Ablation studies confirmed that both Empirical Initialization and Adversarial Tuning are essential; removing either component led to a significant drop in performance.

Visualizing Representation Separation

The impact of Adversarial Tuning is most visible in the model's internal representations. Using t-SNE plots to visualize the embedding space, the authors demonstrated that CDec effectively prevents the "shading" of old knowledge by new tasks. Without adversarial tuning, clusters for similar relations often overlap, leading to confusion. With CDec, these clusters remain distinct and separable even after multiple rounds of learning.

t-SNE visualization showing how Adversarial Tuning maintains distinct clusters for relations across tasks.

Conclusion

The success of CDec highlights a vital shift in CRE research: the importance of fixing biases during the initial learning of a new task rather than relying solely on memory replay. By decomposing the classifier and using old knowledge as an adversarial critic, CDec provides a simple yet powerful architecture for building more robust continual learning systems.

Summary updated

BibTeX
@inproceedings{xia2023enhancing,
  author = {Heming Xia and Peiyi Wang and Tianyu Liu and Binghuai Lin and Yunbo Cao and Zhifang Sui},
  title = {{Enhancing Continual Relation Extraction via Classifier Decomposition}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.findings-acl.638},
}
Figure