TL;DR
This paper investigates the impact of "domain" on Named Entity Recognition (NER) models, even within a seemingly homogeneous source like news articles from a single newspaper. They found that topic variations within the news significantly affect NER performance, highlighting the need for diverse training data even in "in-domain" scenarios.
What Problem Does This Paper Address?
Machine learning models, particularly for Natural Language Processing (NLP) tasks like Named Entity Recognition (NER), often suffer a performance drop when applied to data that differs from their training set – a phenomenon known as "out-of-domain" (OOD) performance degradation. Researchers have traditionally defined "domain" broadly, often referring to distinct genres like news, social media, or scientific literature. However, the authors argue that this definition might be too coarse. They question whether even data from the same genre and source, like news articles from a single newspaper, can exhibit enough internal variation to cause similar performance issues. This paper aims to dissect this finer-grained notion of "domain" within a single news source to understand its impact on NER.
Methods
The core of the paper's methodology involves:
- Dataset Creation: They curated a dataset of sentences from the New York Times (NYT) Annotated Corpus, specifically focusing on articles from 1987-2007. This dataset was then annotated for named entities (Person, Location, Organization) following the CoNLL-2003 guidelines.
- Sub-domain Stratification: Crucially, they stratified the NYT data into nine distinct "sub-domains" based on the news topics (e.g., Arts, Business, Sports, Foreign). This allowed them to analyze performance variations within the broader "news" domain.
- NER Model Training and Evaluation: They fine-tuned a BERT-large-cased model. The evaluation strategy involved training models on specific sub-domains and testing them on others (OOD evaluation) as well as on their own sub-domain (in-subdomain or InD evaluation). This allowed them to quantify the performance gap between InD and OOD scenarios at a granular level.
- Data Selection Strategies: They explored different data selection strategies, including random sentence selection versus document-level selection, to assess their impact on mitigating OOD performance degradation.
Datasets
- New York Times (NYT) Annotated Corpus: This was the primary source for their custom dataset. It contains 1.8 million articles from 1987-2007.
- Newly Introduced Benchmark Dataset: The paper introduces a new dataset derived from the NYT corpus, annotated for named entities and stratified by news topic. This dataset is made publicly available.
- CoNLL-2003 Dataset: Used for comparison and to illustrate the impact of data selection strategies.
Key Insights and Ideas
- "Domain" is More Nuanced Than Genre: Even within a single, seemingly homogeneous source like the New York Times, variations in news topics (sub-domains) lead to significant differences in NER model performance. This suggests that "domain" is not just about broad genre but also about the specific content and style within that genre.
- Topic Matters for NER: The performance of NER models can vary substantially across different news topics. Some topics (like Classifieds and Sports) proved more challenging for NER models, even when trained on data from the same newspaper.
- Data Diversity is Crucial, Even "In-Domain": The findings strongly suggest that simply training on data from the same broad category (e.g., news) is insufficient if that data lacks diversity in terms of topics or other underlying characteristics.
- Sentence-Level Selection is Key: Randomly selecting sentences from a diverse corpus, rather than entire documents, is a more effective strategy for ensuring training data diversity and improving OOD performance compared to document-level selection.
- Ambiguity and Structure are Major Contributors to OOD Degradation: The paper points to structural differences in sentences and entity ambiguity as key factors contributing to performance drops, rather than just unseen entities.
Key Results
- Significant Performance Gaps: In-subdomain (InD) NER performance was consistently high (e.g., average F1 of 94.9%), but out-of-subdomain (OOD) performance dropped considerably (average F1 of 86.4%).
- Challenging Sub-domains: The "Classifieds" and "Sports" sub-domains consistently showed lower performance, both for training and testing, indicating inherent difficulties. For instance, the F1 on "Classifieds" when tested OOD could be as low as 64.2%.
- Impact of Data Augmentation: Adding just 10 sentences from other sub-domains to a training set for a specific sub-domain could improve F1 scores by up to 12 points.
- Random Sentence Selection Outperforms: A model trained with random sentence selection from a downsampled NYT corpus achieved an average F1 of 92.4%, comparable to InD performance and significantly better than some OOD scenarios.
Limitations and Future Work
- Limited Scope of "Domain": The study focused on news articles from a single source (NYT). Extending these findings to other domains and sources would require further investigation.
- Automatic Domain Prediction: The authors acknowledge the need for automatic predictors of domain to generalize their findings. They attempted domain classification experiments but found low accuracy (around 30%), indicating a need for better methods.
- Corpus Span: For truly diverse sentence selection, a corpus spanning the entire space of sentences is ideal, which is straightforward for news or Wikipedia but challenging for platforms like Reddit or Twitter. This points to the continued importance of domain knowledge for selecting diverse sentences in such cases.
- Future Work: The paper suggests exploring automatic domain prediction and developing methods to create more representative and diverse training datasets that can better handle the nuances of "domain" in NER.
Summary updated