Skip to main content
QUICK REVIEW

[Paper Review] Evaluation of contextual embeddings on less-resourced languages

Matej Ulčar, Aleš Žagar|arXiv (Cornell University)|Jul 22, 2021
Topic ModelingComputer Science47 references6 citations
TL;DR

This paper presents the first systematic multilingual evaluation of ELMo and BERT contextual embeddings across 14 tasks in nine less-resourced European languages. It finds that monolingual BERT models generally outperform ELMo and multilingual BERT, with trilingual BERT models excelling in cross-lingual transfer, especially from English to similar languages, though ELMo remains competitive on dependency parsing and terminology alignment tasks.

ABSTRACT

The current dominance of deep neural networks in natural language processing is based on contextual embeddings such as ELMo, BERT, and BERT derivatives. Most existing work focuses on English; in contrast, we present here the first multilingual empirical comparison of two ELMo and several monolingual and multilingual BERT models using 14 tasks in nine languages. In monolingual settings, our analysis shows that monolingual BERT models generally dominate, with a few exceptions such as the dependency parsing task, where they are not competitive with ELMo models trained on large corpora. In cross-lingual settings, BERT models trained on only a few languages mostly do best, closely followed by massively multilingual BERT models.

Motivation & Objective

  • To evaluate the performance of contextual embeddings—ELMo and BERT—on less-resourced European languages where large-scale pretraining is limited.
  • To investigate the effectiveness of monolingual versus multilingual BERT and ELMo models in both monolingual and cross-lingual settings.
  • To assess cross-lingual transfer performance from English to less-resourced languages, particularly focusing on low-resource language pairs.
  • To establish a benchmark suite of 14 tasks across nine languages for evaluating contextual embeddings in low-resource settings.
  • To compare the impact of training data size and model architecture on downstream task performance, especially for low-resource languages.

Proposed method

  • Evaluated two ELMo models (one multilingual, one monolingual) and three BERT variants: monolingual, massively multilingual (mBERT), and trilingual BERT.
  • Used a diverse set of 14 tasks across seven NLP categories: NER, POS tagging, dependency parsing, analogies, contextual similarity, terminology alignment, and SuperGLUE benchmarks.
  • Applied cross-lingual transfer by fine-tuning models on target languages using English as source, with zero-shot and few-shot transfer settings.
  • Employed cosine similarity for semantic and terminology alignment tasks, and standard classification metrics for sequence labeling and reasoning tasks.
  • Compared performance across language pairs, including both English-to-other and non-English-to-other transfers, with results reported as accuracy@1 and F1 scores.
  • Conducted ablation studies on data size, showing that even 1.1 billion tokens were insufficient for strong performance in some cases, highlighting data scarcity as a key bottleneck.

Experimental results

Research questions

  • RQ1How do monolingual BERT models compare to ELMo and multilingual BERT in monolingual settings across multiple low-resource European languages?
  • RQ2In cross-lingual transfer, which model architecture—trilingual BERT, mBERT, or ELMo with cross-lingual mapping—yields the best performance for transferring knowledge from English to less-resourced languages?
  • RQ3Does the performance of BERT-based models depend significantly on the size of the pretraining corpus, particularly in low-resource settings?
  • RQ4On which NLP tasks does ELMo still outperform BERT, despite BERT's dominance in most benchmarks?
  • RQ5How close is the performance of cross-lingual transfer models to their monolingual counterparts, and does this gap vary by language or task?

Key findings

  • Monolingual BERT models consistently outperform ELMo and multilingual BERT across most tasks, with the trilingual BERT model achieving the highest performance in several cases.
  • On dependency parsing, L-ELMo models outperform all BERT variants, indicating ELMo’s strength in syntactic modeling despite BERT’s general superiority.
  • Trilingual BERT models outperform both mBERT and ELMo in cross-lingual terminology alignment, achieving up to 28.4% accuracy@1 on English-to-Slovene transfer.
  • For English-to-Slavic and Finno-Ugric language pairs, trilingual BERT models achieve 21.5% to 28.4% accuracy@1, significantly outperforming mBERT (e.g., 10.3% on English-to-Slovene).
  • ELMo models achieve competitive results on terminology alignment (e.g., 18.7% on English-to-Swedish), outperforming mBERT in most cases, but are surpassed by trilingual BERT in most language pairs.
  • Performance drops in cross-lingual transfer are minimal (a few percentage points) for many tasks, indicating that transfer learning is viable even with limited data, though data size remains a critical factor—e.g., 500M tokens were insufficient for strong performance in LVBERT.

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.