Towards Realistic Single-Task Continuous Learning Research for NER

Justin Payan, Yuval Merhav, He Xie, Satyapriya Krishna, Anil Ramakrishna, Mukund Sridhar, Rahul Gupta

Introduction

Current academic benchmarks for Continuous Learning (CL) often fail to capture the complexities of production environments. While most CL research focuses on "multi-task" scenarios—learning entirely different tasks sequentially—industry challenges typically involve "single-task" evolution. For instance, a Named Entity Recognition (NER) system for technical support must adapt as new programming languages and libraries emerge over a decade. This paper addresses the lack of distribution shift and class incrementality in existing NLP benchmarks by introducing a non-stationary version of the StackOverflowNER dataset.

Methodology

The researchers implemented a CL model using a GPT-2 language model base, followed by two Bi-LSTM layers and a CRF layer for sequence labeling. They evaluated four distinct training strategies:

  • Baseline (non-CL): An upper-bound model trained on the entire dataset simultaneously.
  • CL without Replay: Sequential fine-tuning on new data episodes.
  • CL with Real Replay: A strategy where 20% of each training batch consists of randomly sampled examples from previous episodes.
  • GDumb: A baseline that trains exclusively on a balanced memory buffer of past samples.

To simulate realistic data drift, the authors proposed a Skewed Class Distribution Setup. Using a Dirichlet distribution, they sampled entity types for each episode to create variance in label frequency and simulated "class incrementality" by introducing or removing specific entity types at different time steps.

Dataset: StackOverflowNER-NS

The study utilizes StackOverflowNER-NS (Non-Stationary), a modified version of the StackOverflowNER dataset covering a decade of Q&A threads (2008–2018). The authors initially attempted a chronological Temporal Split, but found the data distribution too stable to induce significant forgetting. To create a more challenging environment, they developed Skewed Episodes that force the model to navigate aggressive shifts in entity frequency.

Comparison of entity distributions in Temporal (a) vs. Skewed (b) splits.

Results and Discussion

The experimental results highlight a critical finding: standard temporal splits in historical datasets may not be sufficient for CL research. In the temporal setup, the performance gap between the non-CL baseline and CL with replay was negligible (51.36 vs 51.12 F1).

However, the Skewed Split revealed the true difficulty of the task. Without replay, performance plummeted to 42.61 F1, compared to the 52.24 F1 baseline. While adding real data replay improved performance to 49.82 F1, it still fell short of the joint-training upper bound.

F1 performance across training and testing episodes for different CL strategies in Skewed and Temporal scenarios.

Key insights include:

  • Subtle Distribution Shifts: Changes in entity mapping (e.g., "Android" shifting from an APPLICATION label to an OPERATING_SYSTEM label) cause significant forgetting in incremental models.
  • Replay Strength: Simple data rehearsal remains a powerful baseline for mitigating catastrophic forgetting.
  • GDumb Limitations: Unlike its success in image classification, GDumb performed poorly in NER, suggesting that sequence labeling requires full sentence context rather than balanced label buffers.

Conclusion

This research demonstrates that simulating realistic data drift is essential for evaluating CL models in single-task scenarios. While replay strategies offer a strong defense against forgetting, a performance gap remains. Future work should explore generative replay to address privacy concerns and investigate continuous human-in-the-loop annotation to further bridge the gap between academic research and production reality.

Summary updated

BibTeX
@inproceedings{payan2021towards,
  author = {Justin Payan and Yuval Merhav and He Xie and Satyapriya Krishna and Anil Ramakrishna and Mukund Sridhar and Rahul Gupta},
  title = {{Towards Realistic Single-Task Continuous Learning Research for NER}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2021},
  url = {https://openreview.net/forum?id=iBqOLew2oR},
}
Figure