Skip to main content
QUICK REVIEW

[Paper Review] Evaluating Subword Tokenization: Alien Subword Composition and OOV Generalization Challenge

Khuyagbaatar Batsuren, Ekaterina Vylomova|arXiv (Cornell University)|Apr 20, 2024
Natural Language Processing TechniquesComputer Science5 citations
TL;DR

The paper introduces umLabeller to classify subword tokenizations as morphological or alien, and an Out-of-Vocabulary (OOV) Generalization Challenge to evaluate how tokenization affects downstream tasks across several language models.

ABSTRACT

The popular subword tokenizers of current language models, such as Byte-Pair Encoding (BPE), are known not to respect morpheme boundaries, which affects the downstream performance of the models. While many improved tokenization algorithms have been proposed, their evaluation and cross-comparison is still an open problem. As a solution, we propose a combined intrinsic-extrinsic evaluation framework for subword tokenization. Intrinsic evaluation is based on our new UniMorph Labeller tool that classifies subword tokenization as either morphological or alien. Extrinsic evaluation, in turn, is performed via the Out-of-Vocabulary Generalization Challenge 1.0 benchmark, which consists of three newly specified downstream text classification tasks. Our empirical findings show that the accuracy of UniMorph Labeller is 98%, and that, in all language models studied (including ALBERT, BERT, RoBERTa, and DeBERTa), alien tokenization leads to poorer generalizations compared to morphological tokenization for semantic compositionality of word meanings.

Motivation & Objective

  • Motivate a unified intrinsic–extrinsic framework for evaluating subword tokenization quality.
  • Develop umLabeller to categorize subword sequences as vocabulary, morphological, alien, or n/a using UniMorph resources.
  • Propose the OOV Generalization Challenge 1.0 with three downstream text classification subtasks to test OOV generalization.
  • Demonstrate how alien subword compositions impact semantic compositionality and model generalization across multiple LMs.

Proposed method

  • Introduce umLabeller, an algorithm that labels a word’s subword sequence as vocab, alien, morph, or n/a based on morphological merges from UniMorph and related resources.
  • Compute a morphological merge list by generating all morpheme n-grams and merging them into unigrams, guided by UniMorph and SIGMORPHON data.
  • Classify w,s using rules: vocab if w in vocabulary; n/a if UniMorph lacks info; alien if fewer than n-1 morph subwords; morph if at least n-1 morph subwords.
  • Validate umLabeller with human annotators, achieving 98.0% accuracy on sampled UniMorph data.
  • Define OOV Generalization Challenge 1.0 comprising three downstream tasks (WaD, WaM, WaW) to test compositional and morphological generalization under covariate shifts.
  • Evaluate four models (BERT, RoBERTa, ALBERT, DeBERTa) with varied tokenizers on the OOV tasks and analyze by umLabeller categories.

Experimental results

Research questions

  • RQ1Does alien subword composition degrade semantic compositionality and downstream task performance compared to morphological composition?
  • RQ2Can intrinsic labeling with umLabeller predict extrinsic model generalization performance on OOV words across different LM architectures?
  • RQ3How do different tokenization schemes (BPE vs ULM) interact with morphological vs alien subword compositions in affecting accuracy?
  • RQ4Do OOV words composed morphologically yield better generalization than vocabulary or alien compositions across WaD, WaM, and WaW tasks?

Key findings

  • umLabeller accurately labels subword compositions with 98.0% accuracy on manual validation.
  • Across all models studied (ALBERT, BERT, RoBERTa, DeBERTa), alien tokenization yields poorer generalization than morphological tokenization for semantic compositionality.
  • In WaD, best overall performance occurs for vocabulary, but morphological compositions outperform alien across models by 5.4% absolute on average.
  • In WaM, all models show larger gains for morphological compositions over alien across inflection, derivation, and compound categories (range up to 7.2%).
  • In WaW, models perform best when both words are morphologically composed, indicating OOV words with morphological cues are more informative than vocabulary words for this task.
  • Compared to WiC, alien composition causes noticeable performance drops across models (e.g., up to ~10% in some cases).

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.