Discrepancy and Uncertainty Aware Denoising Knowledge Distillation for Zero-Shot Cross-Lingual Named Entity Recognition

Ling Ge, Chunming Hu, Guanghui Ma, Jihong Liu, Hong ZhangAAAI 2024

Abstract

Zero-shot cross-lingual Named Entity Recognition (NER) leverages high-resource source language data to train models for low-resource target languages. However, the resulting "pseudo-labels" generated by teacher models often contain significant noise due to the linguistic gap. We present DenKD (Denoising Knowledge Distillation), a framework designed to mitigate negative knowledge transfer. DenKD employs an adversarial teacher network to learn robust, language-invariant representations and an uncertainty-aware distillation mechanism using Monte-Carlo Dropout to weight student learning. Experimental results on the Wikiann benchmark across 28 languages demonstrate that DenKD achieves a new state-of-the-art average F1 score of 73.92%, significantly outperforming existing methods.

Introduction

Named Entity Recognition (NER) is a fundamental NLP task, yet its performance is heavily dependent on large-scale annotated datasets, which are unavailable for the majority of the world's languages. Zero-shot cross-lingual transfer has emerged as a viable solution, where a teacher model trained on a source language (e.g., English) annotates unlabeled target language data. A student model is then trained on these pseudo-labels.

The primary challenge in this paradigm is the "language gap." Teacher models often produce inaccurate labels for target languages, leading to "negative knowledge transfer" where the student inherits and reinforces the teacher's errors. DenKD addresses this by denoising the distillation process at both the representation and label levels.

Methodology

The DenKD framework consists of two main components: Discrepancy-aware Denoising and Uncertainty-aware Distillation.

The DenKD architecture, illustrating the adversarial teacher training (left) and the uncertainty-weighted student distillation (right).

1. Discrepancy-aware Denoising (Teacher Side)

To improve the quality of pseudo-labels, the teacher model utilizes two distinct classifiers on a shared multilingual encoder. An adversarial "max-min" training strategy is employed: the classifiers are trained to maximize their prediction discrepancy to identify noisy samples near decision boundaries, while the encoder is trained to minimize this discrepancy. This forces the encoder to learn discriminative, language-agnostic features, effectively aligning the target language distribution with the source language.

2. Uncertainty-aware Distillation (Student Side)

To further protect the student from residual noise, DenKD estimates the reliability of each pseudo-label using Monte-Carlo (MC) Dropout. By performing multiple inference passes with stochastic dropout, the model calculates the variance of its predictions. High variance indicates high uncertainty and likely noise. The student's loss function is weighted by this uncertainty, ensuring it focuses on high-confidence, reliable teacher predictions.

Experimental Setup

The framework was evaluated on the Wikiann benchmark, covering 28 languages. This includes a diverse set of high-resource and low-resource languages. Notably, the evaluation included four "unseen" languages not present in the original mBERT pre-training: Esperanto (eo), Norwegian (no), Serbo-Croatian (sh), and Cantonese (zh-yue), testing the model's zero-shot generalization capabilities in extreme scenarios.

Results and Discussion

DenKD establishes a new state-of-the-art for zero-shot cross-lingual NER. As shown in the comprehensive results table below, the model achieves an average F1 score of 73.92% across all 28 languages, a 2.47% improvement over the previous best model, ProKD.

Performance comparison of DenKD against baseline and state-of-the-art methods across 28 languages on the Wikiann dataset.

Key findings include:

  • Significant Local Gains: In specific languages like Spanish (es), DenKD improved performance by 5.49% over the previous state-of-the-art.
  • Robustness to Unseen Languages: The denoising mechanism proved effective even for languages absent from the base model's pre-training, suggesting that adversarial representation learning successfully bridges linguistic gaps.
  • Representation Quality: t-SNE visualizations confirm that DenKD produces tighter and more distinct clusters for entity types compared to standard distillation methods, reducing the overlap that typically causes misclassification.

Conclusion and Limitations

DenKD effectively mitigates the impact of noisy pseudo-labels in cross-lingual transfer through adversarial representation learning and uncertainty-weighted distillation. While highly effective, the approach introduces computational overhead due to the multiple inference passes required for MC Dropout (typically $M=50$). Future research will focus on more efficient uncertainty estimation techniques to reduce training time and memory requirements.

Summary updated

BibTeX
@inproceedings{ge2024discrepancy,
  author = {Ling Ge and Chunming Hu and Guanghui Ma and Jihong Liu and Hong Zhang},
  title = {{Discrepancy and Uncertainty Aware Denoising Knowledge Distillation for Zero-Shot Cross-Lingual Named Entity Recognition}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i16.29762},
}
Figure