Skip to main content
QUICK REVIEW

[Paper Review] FactMix: Using a Few Labeled In-domain Examples to Generalize to Cross-domain Named Entity Recognition

Linyi Yang, Lifan Yuan|arXiv (Cornell University)|Aug 24, 2022
Topic ModelingComputer Science9 citations
TL;DR

FactMix proposes a model-agnostic, two-step data augmentation method that improves few-shot cross-domain Named Entity Recognition (NER) by generating context-level and entity-level semi-factual examples from a few labeled in-domain instances. It significantly boosts performance on both in-domain and out-of-domain NER benchmarks, outperforming state-of-the-art methods including prompt-tuning and prior data augmentation techniques.

ABSTRACT

Few-shot Named Entity Recognition (NER) is imperative for entity tagging in limited resource domains and thus received proper attention in recent years. Existing approaches for few-shot NER are evaluated mainly under in-domain settings. In contrast, little is known about how these inherently faithful models perform in cross-domain NER using a few labeled in-domain examples. This paper proposes a two-step rationale-centric data augmentation method to improve the model's generalization ability. Results on several datasets show that our model-agnostic method significantly improves the performance of cross-domain NER tasks compared to previous state-of-the-art methods, including the data augmentation and prompt-tuning methods. Our codes are available at https://github.com/lifan-yuan/FactMix.

Motivation & Objective

  • To address the challenge of poor generalization in few-shot Named Entity Recognition (NER) when transferring to out-of-domain settings.
  • To mitigate spurious correlations between non-entity tokens and entity labels that hinder cross-domain transfer.
  • To develop a data augmentation method that improves model generalization using only a few labeled in-domain examples.
  • To create a model-agnostic framework effective for both fine-tuning and prompt-tuning settings.
  • To enhance causal understanding of label dependencies by leveraging contrastive examples from semi-factual data.

Proposed method

  • FactMix generates context-level semi-factual examples by masking non-entity tokens and replacing them with predictions from a masked language model.
  • It creates entity-level semi-factual examples by replacing entity mentions with other entities of the same type while preserving context structure.
  • The method combines both types of augmented examples in a two-step contrastive learning framework to improve model robustness.
  • The approach is model-agnostic and can be applied to both fine-tuning and prompt-tuning setups.
  • It uses synonym substitution and masked language modeling to generate diverse, semantically plausible training instances.
  • The augmentation process is designed to reduce reliance on spurious token-label correlations by introducing controlled variations in context and entity content.

Experimental results

Research questions

  • RQ1Can a few labeled in-domain examples be leveraged to improve cross-domain NER generalization?
  • RQ2How does contrastive learning with semi-factual examples affect model generalization across domains?
  • RQ3Does context-level and entity-level data augmentation reduce spurious correlations in NER models?
  • RQ4How does FactMix compare to prompt-tuning and prior data augmentation methods in low-resource cross-domain settings?
  • RQ5What is the optimal number of training examples and augmentation ratio for FactMix to maximize performance?

Key findings

  • FactMix achieves the highest Micro F1 score of 88.51 on the CoNLL2003 test set under 5-shot prompt-tuning, outperforming EntLM and other baselines.
  • On the low-overlap Science dataset, FactMix achieves 18.62 F1, significantly outperforming EntLM and other methods, indicating strong OOD generalization.
  • With 100 in-domain training examples, FactMix improves performance over standard fine-tuning and outperforms Zeng et al. (2020) by up to 4.5% F1 on CoNLL2003.
  • The method maintains consistent gains across different augmentation ratios, with optimal performance at ratios of 1:4 and above, though gains diminish beyond 1:8.
  • FactMix shows stable performance across both fine-tuning and prompt-tuning, with no performance drop on BERT-large, unlike prior data augmentation methods.
  • Ablation studies confirm that both context-level and entity-level semi-factual generation contribute significantly to performance, with the two-step contrastive setup being more effective than single-step augmentation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.