Skip to main content
QUICK REVIEW

[Paper Review] Breaking Character: Are Subwords Good Enough for MRLs After All?

Omri Keren, Tal Avinari|arXiv (Cornell University)|Apr 10, 2022
Topic ModelingComputer Science7 citations
TL;DR

This paper proposes TavBERT, a BERT-style masked language model pretrained on character-level spans instead of subwords, to assess whether character-level modeling improves performance on morphologically rich languages (MRLs). Despite marginal gains on morphological tasks, subword-based models significantly outperform TavBERT on semantic tasks like named entity recognition and question answering across Hebrew, Turkish, and Arabic, demonstrating that subword tokenization remains a strong inductive bias for MRLs.

ABSTRACT

Large pretrained language models (PLMs) typically tokenize the input string into contiguous subwords before any pretraining or inference. However, previous studies have claimed that this form of subword tokenization is inadequate for processing morphologically-rich languages (MRLs). We revisit this hypothesis by pretraining a BERT-style masked language model over character sequences instead of word-pieces. We compare the resulting model, dubbed TavBERT, against contemporary PLMs based on subwords for three highly complex and ambiguous MRLs (Hebrew, Turkish, and Arabic), testing them on both morphological and semantic tasks. Our results show, for all tested languages, that while TavBERT obtains mild improvements on surface-level tasks à la POS tagging and full morphological disambiguation, subword-based PLMs achieve significantly higher performance on semantic tasks, such as named entity recognition and extractive question answering. These results showcase and (re)confirm the potential of subword tokenization as a reasonable modeling assumption for many languages, including MRLs.

Motivation & Objective

  • To investigate whether subword tokenization is inadequate for morphologically rich languages (MRLs), as previously hypothesized.
  • To evaluate the performance of a character-level masked language model (TavBERT) against subword-based BERT models on MRLs.
  • To compare TavBERT and subword models on both morpho-syntactic and semantic downstream tasks in Hebrew, Turkish, and Arabic.
  • To assess whether character-level pretraining enables better capture of morphological patterns in MRLs.
  • To re-evaluate the assumption that subword tokenization undermines PLM performance in MRLs.

Proposed method

  • Pretrain a BERT-style transformer encoder using a masked language modeling (MLM) objective on raw character sequences.
  • Mask random spans of characters (not subwords) using a Poisson distribution for span length, with 15% of the sequence masked on average.
  • Use [MASK] tokens to predict the original characters in the masked spans, training solely on the MLM objective without next sentence prediction.
  • Train TavBERT on monolingual OSCAR corpora for Hebrew, Turkish, and Arabic, using character frequency to define a vocabulary covering 99.93% of the corpus.
  • Fine-tune TavBERT on downstream tasks including POS tagging, morphological disambiguation, NER, and extractive question answering.
  • Compare TavBERT’s performance against subword-based models (mBERT, HeBERT, BERTurk, AraBERT) on identical benchmarks.

Experimental results

Research questions

  • RQ1Does character-level pretraining (TavBERT) outperform subword-based models on morphological tasks in morphologically rich languages?
  • RQ2To what extent does TavBERT improve on full morphological disambiguation compared to subword-based BERTs?
  • RQ3How do subword-based models compare to TavBERT on semantic tasks like named entity recognition and question answering?
  • RQ4Is subword tokenization a sufficient inductive bias for modeling morphological richness in MRLs?
  • RQ5Can a character-level model learn complex morphological patterns without explicit linguistic priors?

Key findings

  • On part-of-speech tagging, TavBERT performs on par with subword-based models, with only marginal improvements in some languages.
  • On full morphological disambiguation, TavBERT achieves a 25% error reduction over mBERT on SPMRL and a 39% reduction on UD, outperforming mBERT but not monolingual subword models by a large margin.
  • On named entity recognition, TavBERT underperforms subword models: it scores 81.54 F1 on Hebrew (vs. 84.91 for AlephBERT), 91.19 F1 on Turkish (vs. 93.57 for BERTurk), and 79.45 F1 on Arabic (vs. 83.48 for AraBERT).
  • On extractive question answering, TavBERT shows a significant performance gap: it scores 48.7 F1 / 29.1 EM on Hebrew (vs. 49.6 F1 / 26.0 EM for AraBERT), 61.7 F1 / 46.7 EM on Turkish (vs. 78.2 F1 / 61.1 EM for BERTurk), and 60.0 F1 / 45.9 EM on Arabic (vs. 83.5 F1 / 71.1 EM for AraBERT).
  • Across all three languages, subword-based models consistently outperform TavBERT on semantic tasks, indicating stronger semantic representation learning.
  • The results suggest that subword tokenization is a reasonable and effective inductive bias for MRLs, contrary to prior claims of its inadequacy.

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.