An Ensemble-of-Experts Framework for Rehearsal-free Continual Relation Extraction

Shen Zhou, Yongqi Li, Xin Miao, Tieyun QianACL 2024

Introduction

Continual Relation Extraction (CRE) is a critical task in natural language processing that requires models to learn new relations from a continuous data stream while maintaining performance on previously learned ones. Traditionally, this has been addressed through "rehearsal" methods, which store a subset of old training samples to mitigate catastrophic forgetting. However, in privacy-sensitive domains like healthcare or finance, storing historical data is often prohibited by strict regulations.

Existing rehearsal-free methods, while privacy-compliant, often struggle with the nuance of relation extraction. The primary bottleneck identified in this work is task identification: as the number of tasks grows, models increasingly fail to correctly categorize an input sentence into its corresponding task group before even attempting to predict the specific relation. This paper introduces the Ensemble-of-Experts (EoE) framework to overcome these challenges without the need for data replay.

The Ensemble-of-Experts (EoE) Framework

The EoE framework decomposes the CRE problem into two distinct phases: identifying the task and predicting the relation within that task. It leverages three core components to achieve high performance in a rehearsal-free setting.

1. Task-Specific Experts

To manage new information efficiently, the framework employs Parameter-Efficient Fine-Tuning (PEFT) via Low-Rank Adaptation (LoRA). For every new task encountered in the stream, a small set of "expert" parameters is created. This allows the model to specialize in new relations without overwriting the knowledge stored in the base language model or previous experts.

2. Discriminative Training and Relation Augmentation

To improve task identification, the authors introduce a discriminative training strategy using Relation Augmentation. Experts are trained not only on their assigned relations but also on "fake" analogous relations—such as reversed entity orders or context-stripped sentences. This process forces the expert to learn fine-grained boundaries, effectively distinguishing its assigned relations from similar-looking relations in other tasks.

Overview of the EoE framework, illustrating (a) discriminative training with relation augmentation, (b) parameter estimation, and (c) the cascade voting inference mechanism.

3. Cascade Voting Mechanism

During inference, the model utilizes a two-phase Cascade Voting Mechanism to determine the correct task ID. In the first phase, the most recent expert and the base model provide an initial prediction. If they agree, the result is returned immediately, ensuring high efficiency. If they disagree, a second phase involves a dynamic group of "qualified" experts (determined by a threshold $m$) who vote to resolve the ambiguity. This mechanism mitigates "transboundary risk," where experts trained at different times might have conflicting biases.

Experimental Evaluation

The framework was evaluated on two major benchmarks: FewRel, a balanced few-shot learning dataset, and TACRED, a noisy dataset derived from news and web text. Both were structured into 10 sequential sub-tasks to simulate a long-term continual learning environment.

Results and Discussion

The EoE framework demonstrated superior performance, surpassing existing rehearsal-free baselines and even rivaling state-of-the-art rehearsal-based methods that have the advantage of data replay.

  • Accuracy: On FewRel, EoE achieved a final accuracy of 85.5%, outperforming the best rehearsal-free baseline (EPI) by 3.4%. On the more challenging TACRED dataset, it reached 81.5% accuracy.
  • Task Identification: The core of EoE's success lies in its robust task identification. As shown in the performance curves, EoE maintains significantly higher identification accuracy than baselines as the number of tasks increases.
  • Efficiency: Despite the ensemble approach, the cascade mechanism is highly efficient; approximately 85% of test samples were resolved in the first phase of voting, minimizing computational overhead.
Comparison of task identification accuracy between the baseline EPI and the proposed EoE framework on the FewRel and TACRED datasets across 10 sequential tasks.

Conclusion

The Ensemble-of-Experts (EoE) framework represents a significant step forward for rehearsal-free continual relation extraction. By focusing on the task identification bottleneck and utilizing discriminative training with a cascade voting mechanism, it achieves state-of-the-art results while respecting data privacy. Future work will focus on enabling "forward transfer" between experts and optimizing the storage footprint as the number of tasks scales into the hundreds.

Summary updated

BibTeX
@inproceedings{zhou2024ensemble,
  author = {Shen Zhou and Yongqi Li and Xin Miao and Tieyun Qian},
  title = {{An Ensemble-of-Experts Framework for Rehearsal-free Continual Relation Extraction}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.findings-acl.83},
}
Figure