Skip to main content
QUICK REVIEW

[Paper Review] Portuguese Named Entity Recognition using BERT-CRF

Fábio Souza, Rodrigo Nogueira|arXiv (Cornell University)|Sep 23, 2019
Topic ModelingComputer Science26 references180 citations
TL;DR

The paper trains Portuguese BERT models and uses a BERT-CRF architecture for NER, achieving state-of-the-art results on HAREM I with notable F1 gains, especially in the total entity class scenario.

ABSTRACT

Recent advances in language representation using neural networks have made it viable to transfer the learned internal states of a trained model to downstream natural language processing tasks, such as named entity recognition (NER) and question answering. It has been shown that the leverage of pre-trained language models improves the overall performance on many tasks and is highly beneficial when labeled data is scarce. In this work, we train Portuguese BERT models and employ a BERT-CRF architecture to the NER task on the Portuguese language, combining the transfer capabilities of BERT with the structured predictions of CRF. We explore feature-based and fine-tuning training strategies for the BERT model. Our fine-tuning approach obtains new state-of-the-art results on the HAREM I dataset, improving the F1-score by 1 point on the selective scenario (5 NE classes) and by 4 points on the total scenario (10 NE classes).

Motivation & Objective

  • Motivate improving Portuguese NER performance with pre-trained language models due to scarce labeled data.
  • Assess how BERT-based representations perform on Portuguese NER under different transfer-learning strategies.
  • Evaluate the impact of CRF layer and span-based context handling on NER accuracy.
  • Provide reproducible models and code for Portuguese NER to facilitate benchmarking.

Proposed method

  • Train Portuguese BERT variants (BASE and LARGE) on a large Portuguese corpus (brWaC) using WordPiece/SentencePiece vocabulary.
  • Form a BERT-CRF architecture with a token-level classifier and a linear-chain CRF for sequence tagging.
  • Investigate feature-based (frozen BERT with BiLSTM and CRF classifier) vs. fine-tuning (jointly train BERT and classifier/CRF).
  • Handle long documents by splitting into overlapping spans with a stride; select final tags from the most context-rich span per token.
  • Preprocess HAREM data to resolve ALT tags and multi-class entities for IOB2 tagging.
  • Compare against prior NER baselines on HAREM First/ MiniHAREM datasets using CoNLL 2003 evaluation.

Experimental results

Research questions

  • RQ1Does Portuguese BERT-CRF outperform previous state-of-the-art NER systems on HAREM I (First HAREM and MiniHAREM)?
  • RQ2How do feature-based and fine-tuning transfer strategies compare for Portuguese NER with BERT?
  • RQ3What is the impact of including a CRF layer on top of BERT for Portuguese NER?
  • RQ4How does span-based evaluation with maximum context influence token-level predictions?
  • RQ5What are the effects of model size (BASE vs LARGE) on NER performance in Portuguese?

Key findings

  • PT-BERT BASE and LARGE with CRF achieve state-of-the-art results on MiniHAREM, with notable F1 gains over prior methods.
  • Fine-tuning generally outperforms feature-based approaches in this task.
  • CRF integration tends to improve precision while sometimes lowering recall, with post-processing of invalid IOB2 transitions contributing to F1 gains (~1–2 points).
  • Compared to English NER trends, Portuguese BERT models show strong performance improvements over non-CRF baselines (up to ~8.3 points in total scenario when compared to LSTM-CRF).
  • Large Portuguese BERTs provide the best overall results, especially in the total entity class scenario, though gains over BASE may be small in the selective scenario due to dataset size.

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.