Skip to main content
QUICK REVIEW

[Paper Review] Entity-Switched Datasets: An Approach to Auditing the In-Domain Robustness of Named Entity Recognition Models

Oshin Agarwal, Yinfei Yang|arXiv (Cornell University)|Apr 8, 2020
Topic ModelingComputer Science14 references21 citations
TL;DR

This paper introduces entity-switched datasets to audit the in-domain robustness of Named Entity Recognition (NER) models by replacing entities with plausible counterparts from different national origins while preserving context. It reveals that state-of-the-art NER models exhibit significant performance variation across national origins, with highest F1 scores on American and Indian entities and lowest on Vietnamese and Indonesian entities, highlighting fairness and generalization gaps in current systems.

ABSTRACT

Named entity recognition systems perform well on standard datasets comprising English news. But given the paucity of data, it is difficult to draw conclusions about the robustness of systems with respect to recognizing a diverse set of entities. We propose a method for auditing the in-domain robustness of systems, focusing specifically on differences in performance due to the national origin of entities. We create entity-switched datasets, in which named entities in the original texts are replaced by plausible named entities of the same type but of different national origin. We find that state-of-the-art systems' performance vary widely even in-domain: In the same context, entities from certain origins are more reliably recognized than entities from elsewhere. Systems perform best on American and Indian entities, and worst on Vietnamese and Indonesian entities. This auditing approach can facilitate the development of more robust named entity recognition systems, and will allow research in this area to consider fairness criteria that have received heightened attention in other predictive technology work.

Motivation & Objective

  • To address the lack of systematic evaluation of NER models on diverse national origins of entities within the same domain.
  • To investigate whether state-of-the-art NER models generalize equally well across entities from different countries.
  • To develop a scalable, programmatic method for generating diverse, context-preserving datasets to test in-domain robustness.
  • To expose fairness issues in NER systems related to national origin, particularly for underrepresented groups.
  • To support model card reporting by enabling audit of system strengths and weaknesses across entity groups.

Proposed method

  • Generate entity-switched datasets by replacing named entities in original texts with plausible entities of the same type but different national origin.
  • Maintain text coherence by using country-specific entity replacements, with separate versions for all entities and only PER (person) entities.
  • Use existing NER datasets (e.g., CoNLL-2003) as base and apply automated replacement using curated lists of entities from top populous countries.
  • Ensure contextual consistency by preserving syntactic and semantic patterns, including common templates like 'ORG newspaper' or 'LOC DATE'.
  • Evaluate state-of-the-art NER models (e.g., BERT, Lample, Devlin) on both original and switched datasets to measure performance shifts.
  • Perform error analysis on model predictions to identify failure modes, such as ignoring contextual cues and relying on word identity.

Experimental results

Research questions

  • RQ1How does the performance of state-of-the-art NER models vary when entities are replaced with counterparts from different national origins?
  • RQ2To what extent do NER models rely on word identity versus contextual cues when recognizing entities from non-native origins?
  • RQ3Are there systematic performance disparities across national origins, even within the same in-domain context?
  • RQ4Can entity-switched datasets effectively expose robustness and fairness issues in NER models?
  • RQ5How do common contextual patterns (e.g., 'newspaper name', 'team name') affect model generalization across entity origins?

Key findings

  • State-of-the-art NER models achieve the highest F1 scores on American and Indian entities, with F1 exceeding 98.0 on BERT for these origins.
  • Performance drops significantly on Vietnamese and Indonesian entities, with BERT achieving only 89.8 F1 and 92.0 F1 respectively, indicating poor generalization.
  • Even with strong contextual cues—such as 'newspaper' followed by a name—models fail to correctly identify the entity as ORG in switched datasets, especially for Vietnamese and Indonesian names.
  • Models often misclassify entities based on word identity rather than context, as seen when a name from a different origin is labeled incorrectly despite consistent patterns in training data.
  • Systems show inconsistent behavior on the same pattern: for example, 'LOC DATE' patterns are misclassified as LOC when the entity is Vietnamese, indicating context-ignorant prediction.
  • The model's performance on German-origin entities remains high regardless of origin, suggesting that some nationalities are better recognized than others, even when the name is foreign.

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.