Abstract
Cross-domain few-shot Named Entity Recognition (NER) faces significant challenges due to structural differences and label inconsistencies between source and target domains. We present SLC-DA, a novel framework that employs structure and label constraints during data augmentation to bridge these gaps. By utilizing Gaussian embeddings to capture structural uncertainty and a specialized pre-training task for label alignment, SLC-DA achieves state-of-the-art performance across both flat and nested NER benchmarks, outperforming even large-scale models like GPT-3.5 in specialized domains.
Introduction: The Challenge of Cross-Domain NER
Named Entity Recognition (NER) is a fundamental NLP task that typically requires extensive labeled data. In few-shot scenarios, where only a handful of examples are available for a new target domain, models must transfer knowledge from a source domain. This transfer is hindered by two primary hurdles:
- Structural Differences: Entities may be "flat" in one domain (e.g., "The Lincoln Memorial" as a single location) but "nested" in another (e.g., "Lincoln" as a person within a location).
- Label Inconsistency: Different datasets often use varying schemas, such as tagging "Washington D.C." as
GPE(Geo-Political Entity) in one andLocationin another.
Existing augmentation techniques often produce noisy data that fails to respect these nuances, leading to suboptimal performance.
Methodology: The SLC-DA Framework
The proposed Structure and Label Constrained Data Augmentation (SLC-DA) framework addresses these issues through two integrated modules:
Structure Constrained Data Augmentation
To ensure augmented entities maintain the structural integrity of the target domain, SLC-DA employs Gaussian Embeddings. Unlike traditional point embeddings, Gaussian embeddings represent tokens as distributions, effectively capturing semantic uncertainty and word-to-word relational "space." By minimizing the KL-divergence between original and augmented entity structures, the model generates data that respects whether entities should be flat or nested.
Label Constrained Pre-training
To resolve naming conflicts (word-to-tag relations), a pre-training step is introduced. The model identifies entities appearing in both domains with different labels and learns a mapping between these schemas. This allows the model to "translate" source domain knowledge into the target domain's label space without causing conflict.
Experimental Evaluation
The framework was evaluated using OntoNotes 5.0 as the source domain and a diverse set of target domains, including flat NER (CoNLL 2003, WNUT 17, I2B2, GUM) and nested NER (ACE2004, ACE2005).
Key Results
SLC-DA demonstrated superior performance across all benchmarks:
- Flat NER: Achieved a 1.9% average improvement over previous SOTA and a 12.1% improvement over contrastive learning baselines like CONTaiNER.
- Nested NER: Showed significant gains (6.45% to 11.2%) over baselines on ACE04 and ACE05, highlighting its robustness in handling complex entity structures.
- Comparison with LLMs: SLC-DA outperformed GPT-3.5 in few-shot settings, particularly in specialized domains like the medical I2B2 dataset.
Discussion and Conclusion
Ablation studies revealed that the structure constraint is the most critical component, with its removal leading to F1 score drops of over 20% in some instances. This suggests that the "shape" of an entity is often more vital for domain adaptation than its specific label.
While SLC-DA excels at flat and nested NER, future work will address discontinuous entities and explore the integration of these structural constraints into Large Language Models via prompt engineering. In summary, SLC-DA provides a robust mechanism for high-precision NER in low-resource, cross-domain environments.
Summary updated