Skip to main content
QUICK REVIEW

[Paper Review] Domain-Specific NER via Retrieving Correlated Samples

Xin Zhang, Yong Jiang|arXiv (Cornell University)|Aug 27, 2022
Topic ModelingComputer Science9 citations
TL;DR

This paper proposes a domain-specific NER approach that enhances model performance by retrieving and leveraging correlated unlabeled samples from in-domain text. Using BM25 retrieval and a multi-instance cross-encoder to model correlations, the method improves entity type prediction via voting and joint encoding, achieving state-of-the-art results on Chinese address and e-commerce NER benchmarks, with F1 gains of up to 1.11 points over strong baselines.

ABSTRACT

Successful Machine Learning based Named Entity Recognition models could fail on texts from some special domains, for instance, Chinese addresses and e-commerce titles, where requires adequate background knowledge. Such texts are also difficult for human annotators. In fact, we can obtain some potentially helpful information from correlated texts, which have some common entities, to help the text understanding. Then, one can easily reason out the correct answer by referencing correlated samples. In this paper, we suggest enhancing NER models with correlated samples. We draw correlated samples by the sparse BM25 retriever from large-scale in-domain unlabeled data. To explicitly simulate the human reasoning process, we perform a training-free entity type calibrating by majority voting. To capture correlation features in the training stage, we suggest to model correlated samples by the transformer-based multi-instance cross-encoder. Empirical results on datasets of the above two domains show the efficacy of our methods.

Motivation & Objective

  • Address the challenge of poor NER performance on domain-specific texts like Chinese addresses and e-commerce titles, where entities are ambiguous without contextual background.
  • Overcome the limitations of standard NER models that treat input samples as independent and fail on hard, ambiguous cases.
  • Leverage naturally correlated unlabeled samples from the same domain to provide disambiguation context for entity recognition.
  • Develop a training-free calibration method using majority voting across retrieved samples to refine predicted entity types.
  • Propose a multi-instance cross-encoder to explicitly model correlations between the input and retrieved samples during training.

Proposed method

  • Retrieve correlated samples using a sparse BM25 retriever powered by Elasticsearch, based on lexical similarity in large-scale in-domain unlabeled text.
  • Perform entity type calibrating via parallel inference on the input and retrieved samples, followed by majority voting to resolve ambiguity.
  • Train a transformer-based multi-instance cross-encoder to jointly encode the input and retrieved samples, capturing complex correlation features.
  • Integrate the cross-encoder into a BiLSTM-CRF framework using NEZHA as the contextual representation, enabling end-to-end learning of correlated patterns.
  • Use the cross-encoder to attend to both the input and retrieved texts, allowing the model to dynamically weigh relevant context for better prediction.
  • Optimize inference by concatenating retrieved texts before CRF decoding, reducing redundant computation and improving speed.

Experimental results

Research questions

  • RQ1Can retrieving correlated unlabeled samples from in-domain data improve NER performance on ambiguous, domain-specific texts?
  • RQ2Does a training-free entity type calibration via majority voting over retrieved samples lead to consistent improvements in NER accuracy?
  • RQ3Can a multi-instance cross-encoder that jointly models input and retrieved samples capture richer correlation features than standard NER models?
  • RQ4How does the size and quality of the unlabeled retrieval corpus affect the performance of the proposed method?
  • RQ5What is the trade-off between performance gain and inference speed when using retrieval-augmented NER methods?

Key findings

  • The proposed method achieved a state-of-the-art F1 score of 93.89 on the address dataset dev set, representing a 1.11-point improvement over the baseline NEZHA-BiLSTM-CRF.
  • The entity-voting method improved F1 by 0.58 points compared to the baseline, demonstrating the effectiveness of cross-instance calibration.
  • The multi-instance cross-encoder outperformed all baselines, including strong models like NEZHA-BC, on both the address and e-commerce datasets.
  • Performance gains were most significant with the top 10 retrieved samples, indicating diminishing returns beyond this number.
  • The cross-encoder method achieved inference speed only 2× slower than the baseline, with a runtime of 38.41 seconds on a 4,000-sample test set, making it practical for real-world use.
  • Smaller or lower-quality unlabeled corpora led to fewer relevant retrieved samples and reduced performance gains, highlighting the importance of data quality.

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.