Abstract
We study the named entity recognition (NER) problem under the extremely weak supervision (XWS) setting, where only one example entity per type is given in a context-free way. While one can see that XWS is lighter than one-shot in terms of the amount of supervision, we propose a novel method X-NER that can outperform the state-of-the-art one-shot NER methods. We first mine entity spans that are similar to the example entities from an unlabelled training corpus. Instead of utilizing entity span representations from language models, we find it more effective to compare the context distributions before and after the span is replaced by the entity example. We then leverage the top-ranked spans as pseudo-labels to train an NER tagger. Extensive experiments and analyses on 4 NER datasets show the superior end-to-end NER performance of X-NER, outperforming the state-of-the-art few-shot methods with 1-shot supervision and ChatGPT annotations significantly. Finally, our X-NER possesses several notable properties, such as inheriting the cross-lingual abilities of the underlying language models.
Introduction
Named Entity Recognition (NER) is a fundamental task in Natural Language Processing, traditionally requiring extensive labeled datasets. While few-shot learning has reduced this burden, performance often degrades sharply when supervision is limited to a single example. This paper introduces the concept of Extremely Weak Supervision (XWS), where a model is provided with only one context-free example per entity category (e.g., "Artist: Frida Kahlo"). This setting is even more restrictive than standard one-shot learning, which typically provides an example within a specific sentence context.
Current few-shot methods struggle in the XWS regime due to overfitting on minimal signals and the inadequacy of simple embedding-based similarity metrics for capturing complex entity "slots." To address this, we propose X-NER, a framework that leverages pre-trained language models (PLMs) to mine high-quality training data from unlabeled corpora.
Methodology: Mining via Divergence Distance
The core innovation of X-NER is the use of Divergence Distance to identify candidate entity spans. Rather than comparing the vector representations of a candidate span and a seed entity, X-NER evaluates the functional similarity of their contexts.
As shown in the framework overview, the process involves:
- The Span Test: A candidate span in a raw sentence is replaced by the seed entity.
- Distributional Shift Analysis: A PLM predicts the probability distribution of surrounding words for both the original and revised sentences.
- KL Divergence: If the Kullback–Leibler (KL) divergence between these distributions is low, the candidate span is likely of the same entity type as the seed.
- Pseudo-Labeling: The highest-ranked spans (lowest divergence) are used to train a standard NER tagger (e.g., RoBERTa), enabling efficient inference.
Experimental Results
X-NER was evaluated across diverse benchmarks, including CoNLL03 (news), Tweebank (social media), WNUT17 (emerging entities), and MIT Restaurant (domain-specific).
The results demonstrate that X-NER significantly outperforms existing baselines. On the CoNLL03 dataset, X-NER achieved an F1 score of 60.2, drastically higher than the 6.5 F1 score of FFF-NER under 1-shot supervision. Furthermore, X-NER surpassed ChatGPT-based annotations on most datasets, particularly in noisy or specialized domains where general-purpose instructions often fail to define precise entity boundaries.
Discussion and Insights
Several key findings emerged from our analysis:
- Contextual Superiority: PLMs are more effective at identifying the "shape" of a linguistic slot than the specific content within it. Measuring how surroundings react to a swap bypasses the limitations of multi-token phrase embeddings.
- Bidirectional Advantage: Masked Language Models (MLMs) like RoBERTa outperform Causal Language Models (CLMs) for this task, as NER benefits significantly from bidirectional context.
- Cross-Lingual Transfer: By utilizing multilingual backbones (e.g., XLM-RoBERTa), X-NER can mine entities in one language using seeds from another, inheriting the cross-lingual capabilities of the underlying PLM.
Conclusion and Limitations
X-NER provides a robust solution for NER under extreme data scarcity. While the mining phase is computationally intensive due to multiple PLM passes, the resulting tagger offers fast inference. Future work will focus on optimizing mining efficiency and improving performance on nested entity structures.
Summary updated