Improving Low-Resource Named Entity Recognition using Joint Sentence and Token Labeling

Canasai Kruengkrai, Thien Hai Nguyen, Sharifah Aljunied Mahani, Lidong BingACL 2020 · DOI

Abstract

Named Entity Recognition (NER) is a critical component for search and recommendation systems, yet it remains challenging in low-resource scenarios where manually labeled token-level data is scarce. This paper introduces a joint labeling framework developed by researchers at Alibaba's DAMO Academy. The approach leverages abundant, "free" sentence-level category labels (e.g., "Electronics") to support the fine-grained task of identifying entities like brands or materials. By integrating a shared BiLSTM architecture with a novel "Self + Learned" attention mechanism, the model achieves substantial F1 score improvements in Southeast Asian e-commerce contexts, specifically for Vietnamese, Thai, and Indonesian languages.

Introduction: The Data Scarcity Problem

In the domain of e-commerce, identifying key information such as "Nike" (Brand) or "Cotton" (Material) within product titles is essential for effective information retrieval. However, training high-performing NER models typically requires massive amounts of token-level annotations, which are expensive and time-consuming to produce. This is particularly problematic for languages and domains where such data is limited.

Conversely, sentence-level labels are often readily available. Sellers frequently categorize their products into broad hierarchies (e.g., "Health & Beauty" or "Fashion"). The central hypothesis of this work is that these high-level category labels can serve as a powerful auxiliary signal, helping a model learn robust representations that benefit the more granular NER task.

Methodology: Joint Training and Dynamic Attention

The authors propose a joint labeling framework that treats sentence classification as an auxiliary task to the primary NER goal.

Shared Architecture

The model utilizes a Bidirectional Long Short-Term Memory (BiLSTM) backbone. The lower layers of the network are shared between two distinct task-specific heads:

  1. NER Head: A Conditional Random Field (CRF) layer that predicts token-level labels.
  2. Classification Head: A linear layer that predicts the overall product category.
The joint model architecture featuring shared BiLSTM layers and task-specific heads for NER and category classification.

Pre-training and Regularization

To maximize the utility of the auxiliary data, the authors employ a two-stage training process. First, the sentence classifier is pre-trained on a massive dataset of product titles containing only category labels. These pre-trained weights provide a "warm start" for the subsequent joint training phase. This joint approach acts as a regularizer, forcing the shared layers to learn domain-relevant features that prevent the NER model from overfitting on small token-labeled datasets.

"Self + Learned" Attention

A key technical contribution is the "Self + Learned" attention mechanism. Standard attention distributions in models like Transformers are often "soft," spreading focus across multiple words. For NER, however, a "sharp" focus on specific entity tokens is often more effective. The authors introduced a learnable scaling factor ($\delta$) for each token, allowing the model to dynamically adjust the concentration of its attention, effectively "sharpening" its focus on potential entities within noisy titles.

Experimental Setup

The framework was evaluated on e-commerce product titles from three Southeast Asian markets:

  • Languages: Vietnamese (VI), Thai (TH), and Indonesian (ID).
  • NER Data: 2,000 manually annotated titles per language, covering six tags: PRODUCT, BRAND, CONSUMER_GROUP, MATERIAL, PATTERN, and COLOR.
  • Auxiliary Data: A large-scale set of unannotated titles categorized by sellers (e.g., 1.2 million titles for Thai) used for pre-training.

Results and Discussion

The experimental results demonstrate that the joint model with "Self + Learned" attention consistently outperforms standard BiLSTM-CRF baselines.

Comparative performance of NER-only, Joint, and Joint + Pre-trained models across different attention mechanisms and languages.

As shown in the results table, the "Joint + Pre-trained" configuration with "Self + Learned" attention achieved the highest F1 scores across all three languages:

  • Vietnamese: +3.78% improvement.
  • Thai: +4.20% improvement.
  • Indonesian: +2.08% improvement.

The findings suggest that standard "scaled dot-product" attention is less effective for NER than the proposed learnable scaling. Furthermore, the success of hard parameter sharing confirms that sentence classification and NER are sufficiently related to provide mutual benefits in low-resource settings.

Conclusion

This research highlights the potential of leveraging "free" auxiliary labels to boost performance in data-scarce NLP tasks. By combining joint training with a specialized attention mechanism, the authors provide a robust solution for NER in the challenging context of Southeast Asian e-commerce. Future work may involve integrating larger pre-trained language models like BERT to further enhance the base representations.

Summary updated

BibTeX
@inproceedings{kruengkrai2020improving,
  author = {Canasai Kruengkrai and Thien Hai Nguyen and Sharifah Aljunied Mahani and Lidong Bing},
  title = {{Improving Low-Resource Named Entity Recognition using Joint Sentence and Token Labeling}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2020},
  doi = {10.18653/v1/2020.acl-main.523},
}
Figure