Skip to main content
QUICK REVIEW

[Paper Review] Small and Practical BERT Models for Sequence Labeling

Henry Tsai, Jason Riesa|arXiv (Cornell University)|Aug 31, 2019
Natural Language Processing TechniquesComputer Science10 references17 citations
TL;DR

This paper proposes a distilled, small, and efficient multilingual BERT model for sequence labeling tasks that achieves state-of-the-art performance on 70 treebanks across 48 languages while being 6x smaller and 27x faster than standard BERT, with superior performance on low-resource languages and robustness to code-mixed input without explicit training on such data.

ABSTRACT

We propose a practical scheme to train a single multilingual sequence labeling model that yields state of the art results and is small and fast enough to run on a single CPU. Starting from a public multilingual BERT checkpoint, our final model is 6x smaller and 27x faster, and has higher accuracy than a state-of-the-art multilingual baseline. We show that our model especially outperforms on low-resource languages, and works on codemixed input text without being explicitly trained on codemixed examples. We showcase the effectiveness of our method by reporting on part-of-speech tagging and morphological prediction on 70 treebanks and 48 languages.

Motivation & Objective

  • To develop a single, small, and practical multilingual model for sequence labeling that maintains high accuracy while being deployable on a single CPU.
  • To improve performance on low-resource languages through cross-lingual transfer in a multilingual setting.
  • To enable robust inference on code-mixed input without requiring explicit training on such data.
  • To reduce model size and inference latency while preserving the performance gains of large multilingual BERT models.
  • To demonstrate that knowledge distillation can yield a compact model that outperforms strong baselines like Meta-LSTM on multilingual sequence labeling tasks.

Proposed method

  • Fine-tune a cased multilingual BERT model pre-trained on 104 languages using a softmax layer on the first subword piece of each token for sequence labeling.
  • Apply knowledge distillation to compress the large multilingual BERT model into a smaller, faster model (MiniBERT) with reduced hidden size (256 units) and only 3 layers.
  • Train the distilled model using soft labels from the teacher model, preserving high-quality predictions in a compact architecture.
  • Use a unified training setup across all 48 languages, concatenating and shuffling examples from all treebanks during training to enable joint multilingual learning.
  • Evaluate on both part-of-speech tagging and morphological feature prediction using the Universal Dependencies 2.7 dataset across 70 treebanks.
  • Test robustness on code-mixed Hindi-English data without fine-tuning on such examples, relying on the model’s ability to infer language boundaries from context.

Experimental results

Research questions

  • RQ1Can a single multilingual model achieve state-of-the-art performance on sequence labeling tasks across 48 diverse languages while being small and efficient?
  • RQ2Does knowledge distillation preserve the performance of large multilingual BERT models while drastically reducing model size and inference latency?
  • RQ3How does the distilled multilingual model perform on low-resource languages compared to language-specific or multilingual baselines?
  • RQ4Can a multilingual model generalize to code-mixed input without explicit training on such data?
  • RQ5To what extent does cross-lingual transfer from high-resource to low-resource languages improve performance in a multilingual setting?

Key findings

  • The distilled model (m MiniBERT) is 6 times smaller and 27 times faster than the original multilingual BERT model, with inference taking only 8.5ms on a CPU.
  • m MiniBERT achieves an average POS F1 of 81.4 on low-resource languages (e.g., Kazakh, Marathi), outperforming the multilingual Meta-LSTM (52.9 F1) and matching or exceeding BERT-based baselines.
  • On the Hindi-English code-mixed POS tagging task, m MiniBERT achieves 79.5 F1, within 10 points of the supervised BERT model (90.6 F1), despite never seeing code-mixed data during training.
  • The multilingual BERT model (m BERT) achieves 95.0 F1 on POS tagging for Belarusian and 90.0 F1 for Lithuanian—higher than any per-language model or baseline.
  • For languages with fewer than 500 training examples, m MiniBERT outperforms both the multilingual Meta-LSTM and individual BERT models, demonstrating strong zero-shot cross-lingual transfer.
  • The distilled model maintains 95% of the performance of the full multilingual BERT model while being significantly more efficient, making it practical for real-world deployment on CPU-only systems.

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.