Skip to main content
QUICK REVIEW

[Paper Review] Using Similarity Measures to Select Pretraining Data for NER

Xiang Dai, Sarvnaz Karimi|arXiv (Cornell University)|Apr 1, 2019
Topic ModelingComputer Science50 references18 citations
TL;DR

This paper proposes three cost-effective similarity measures—target vocabulary covered rate, language model perplexity, and word vector variance—to predict the effectiveness of pretraining data for Named Entity Recognition (NER). It demonstrates that these measures reliably predict performance, showing that small, similar datasets outperform large, generic ones, especially when using pretrained language models over word vectors.

ABSTRACT

Word vectors and Language Models (LMs) pretrained on a large amount of unlabelled data can dramatically improve various Natural Language Processing (NLP) tasks. However, the measure and impact of similarity between pretraining data and target task data are left to intuition. We propose three cost-effective measures to quantify different aspects of similarity between source pretraining and target task data. We demonstrate that these measures are good predictors of the usefulness of pretrained models for Named Entity Recognition (NER) over 30 data pairs. Results also suggest that pretrained LMs are more effective and more predictable than pretrained word vectors, but pretrained word vectors are better when pretraining data is dissimilar.

Motivation & Objective

  • To address the lack of systematic methods for selecting pretraining data for NER tasks, which currently relies on heuristic intuition.
  • To develop cost-effective, quantitative measures that predict how well pretrained word vectors or language models will perform on a target NER dataset.
  • To investigate whether similarity in both field (subject matter) and tenor (discourse context) is critical for effective pretraining.
  • To evaluate whether modest, similar pretraining data can outperform large, generic corpora in terms of performance and computational cost.
  • To provide a practical, data-driven framework for researchers to select optimal pretraining data without extensive trial-and-error.

Proposed method

  • Propose three similarity measures: (1) target vocabulary covered rate (VCcR), measuring lexical overlap between source and target vocabularies; (2) language model perplexity, assessing how well a language model fits the target data; and (3) word vector variance, measuring changes in word vectors when fine-tuned on target data.
  • Train word vectors using skip-gram with negative sampling (word2vec) and LMs using a standard transformer-based architecture on various source corpora.
  • Evaluate pretrained models on 30 data pairs across five source and six target NER datasets, covering diverse fields (e.g., biology, local business) and tenors (e.g., Wikipedia, reviews, medical protocols).
  • Use statistical correlation analysis to assess how well each measure predicts downstream NER F1-score improvements.
  • Conduct ablation studies to isolate the impact of source data size, similarity, and hyper-parameter settings on model performance.
  • Compare results against publicly available models pretrained on much larger corpora to validate cost-effectiveness.

Experimental results

Research questions

  • RQ1Can target vocabulary covered rate, language model perplexity, and word vector variance serve as reliable predictors of pretraining data effectiveness for NER?
  • RQ2Does similarity in both field and tenor significantly influence the performance of pretrained models, or is field similarity sufficient?
  • RQ3Can small, domain-specific pretraining corpora outperform large, generic corpora in terms of NER performance while reducing computational cost?
  • RQ4How does the choice between pretrained word vectors and pretrained language models depend on the similarity between source and target data?
  • RQ5To what extent does source data size moderate the impact of similarity on model performance?

Key findings

  • The target vocabulary covered rate (VCcR) is the strongest predictor of pretrained word vector effectiveness, with higher overlap strongly correlating with better NER performance.
  • Pretrained language models outperform word vectors when the source and target data are similar, achieving up to 79.62 F1 on WetLab and 42.07 on ScienceIE with optimized settings.
  • Models pretrained on 500 MB of PubMed data (a small, similar corpus) outperform models trained on 1 billion tokens of generic data, reducing training time from weeks to hours.
  • For dissimilar data pairs (e.g., PubMed to CoNLL2003), pretrained word vectors consistently outperform language models, regardless of source size.
  • The hyper-parameter setting proposed by Chiu et al. (2016) improves word vector performance across most data pairs, but the benefit of similarity remains dominant.
  • Source data size has diminishing returns beyond 500 MB, indicating that similarity is more important than size for effective pretraining.

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.