TL;DR
This paper introduces umLabeller, a novel tool to classify subword tokenizations as either "morphological" (semantically meaningful) or "alien" (linguistically implausible). They then propose the "OOV Generalization Challenge," a benchmark to evaluate how these tokenization types impact downstream NLP tasks, finding that morphological tokenization consistently leads to better generalization.
What Problem Does This Paper Address?
Modern Natural Language Processing (NLP) models, like BERT and GPT, rely heavily on subword tokenization to break down words into smaller units. This process helps manage vocabulary size and handle out-of-vocabulary (OOV) words. However, popular methods like Byte-Pair Encoding (BPE) are primarily driven by statistical co-occurrence of characters, not linguistic principles. This can lead to "alien" subword compositions where the constituent subwords don't align with human understanding of word formation (e.g., "h_iked" for "hiked"). While various tokenization algorithms exist, there's a lack of standardized methods to evaluate their linguistic validity and their impact on downstream task performance, especially concerning generalization to unseen words.
Methods
The core contribution is the umLabeller tool, which classifies subword tokenizations into four categories: vocab (the word itself is a subword), morph (morphologically meaningful composition), alien (linguistically implausible composition), and n/a (no information available). umLabeller leverages the UniMorph database, a rich source of morphological information, to determine if subword segments correspond to actual morphemes.
To evaluate the impact of these tokenization types, the authors introduce the OOV Generalization Challenge 1.0. This benchmark consists of three downstream NLP tasks:
- Word and Definition (WaD): Classifying if a word matches a given definition.
- Word and Morphology (WaM): Classifying if a word contains inflection, derivation, or compounding.
- Word and Word (WaW): Classifying if two words are semantically related.
These tasks are designed to test compositional and morphological generalization under "fully-generated covariate shifts," meaning the test data is intentionally constructed to be different from the training data in specific ways.
Datasets
- UniMorph: Used as the primary resource for morphological information to build
umLabeller. - Book Corpus: Used to train BPE tokenizers with varying vocabulary sizes.
- English WordNet: Used to develop the WaD (Word and Definition) subtask.
- SIGMORPHON Shared Task 2022: Data from this task was used to develop the WaM (Word and Morphology) subtask.
- Custom datasets: Developed for the WaW (Word and Word) subtask, drawing from English WordNet.
The OOV Generalization Challenge 1.0 itself is a newly introduced benchmark comprising the WaD, WaM, and WaW subtasks.
Key Insights and Ideas
- "Alien" tokenizations are detrimental: The paper strongly suggests that subword tokenizations that don't respect morphological boundaries (i.e., are "alien") lead to poorer generalization in downstream NLP tasks.
- Morphological awareness matters: Tokenizers that produce "morphological" subword compositions, aligning with linguistic structures, enable models to perform better, especially on OOV words.
umLabelleris a valuable diagnostic tool: This tool provides a much-needed way to quantify the linguistic quality of subword tokenizations, moving beyond purely statistical measures.- OOV generalization is a critical challenge: The proposed benchmark highlights that current models struggle when faced with words that require understanding their internal structure (morphology) rather than just their statistical occurrence.
Key Results
umLabellerachieves 98% accuracy in classifying subword compositions.- Across all tested language models (ALBERT, BERT, RoBERTa, DeBERTa), "alien" tokenizations consistently resulted in poorer generalization compared to "morphological" ones.
- In the WaD subtask, models showed significantly higher accuracy (around 95%) for vocabulary words compared to morphologically composed or alien words.
- The WaM subtask showed absolute improvements of 2.7% to 7.2% for morphological compositions over alien ones.
- The WaW subtask also demonstrated better performance for models using morphological subword compositions.
- The authors found that an optimal BPE vocabulary size for balancing coverage and morphological plausibility lies between 40,000 and 50,000 tokens.
Limitations and Future Work
- English-centric: The current work is limited to English due to its reliance on the UniMorph English database.
- UniMorph dependency: The accuracy and coverage of
umLabellerare directly tied to the quality and completeness of the UniMorph dataset. - Future Work: The authors welcome contributions to improve UniMorph and expand
umLabeller's capabilities. They also suggest that text characterization tools likeumLabellerare foundational for robust NLP evaluation and can play a crucial role in understanding the impact of subword tokenization.
Summary updated