The Impact of Word Splitting on the Semantic Content of Contextualized Word Representations

Aina Garí Soler, Matthieu Labeau, Chloé Clavel

Introduction

Modern Pre-trained Language Models (PLMs), such as BERT and XLNet, rely on subword tokenization schemes like WordPiece or Byte Pair Encoding (BPE) to manage large vocabularies within a fixed token limit. While this approach effectively eliminates the "out-of-vocabulary" (OOV) problem by breaking unknown words into smaller, known sub-units (e.g., "hitchhiking" into "hitch," "##hi," and "##king"), it introduces a significant challenge for semantic representation. Specifically, it remains unclear how to best aggregate these sub-units into a single word-level vector and whether the resulting "reconstructed" representations maintain semantic integrity compared to in-vocabulary words.

Methodology and Pooling Strategies

To investigate the quality of split-word representations, the researchers conducted an intrinsic evaluation focused on lexical semantic similarity. They compared several prominent models, including BERT, ELECTRA, XLNet, and CharacterBERT—a model that bypasses subword tokenization by using a CNN to generate word-level representations from characters.

A central focus of the study was the evaluation of pooling strategies used to reconstruct word vectors from subword components:

  • Average (AVG): The simple mean of all constituent subword vectors.
  • Weighted Average (WAVG): An average weighted by the length of each subword.
  • Longest (LNG): Utilizing only the vector of the longest subword in the sequence.

The quality of these representations was measured using Spearman’s correlation between the models' cosine similarities and gold-standard similarity values derived from WordNet (WUP similarity).

The SPLIT-SIM Benchmark

Existing lexical similarity datasets, such as SimLex-999, often lack a sufficient number of split-words to draw statistically significant conclusions. To address this, the authors introduced SPLIT-SIM, a benchmark designed to evaluate different "split-types":

  • 0-SPLIT: Neither word in the pair is split by the tokenizer.
  • 1-SPLIT: One word in the pair is split.
  • 2-SPLIT: Both words in the pair are split.

SPLIT-SIM further categorizes word pairs by Part-of-Speech (POS) and polysemy, allowing for a granular analysis of how tokenization affects monosemous versus polysemous nouns and verbs. Additionally, the researchers utilized the Word-in-Context (WiC) dataset to evaluate within-word similarity.

Key Insights

The Robustness of Averaging

Despite the availability of more complex strategies like length-weighting, the study found that simple averaging (AVG) remains the most robust and effective strategy for reconstructing word meaning across various models. The mean vector consistently provided the most stable semantic representation.

The Polysemy Paradox

One of the most surprising findings was the "Polysemy Paradox." While split-words generally exhibit lower-quality representations than full words, polysemous nouns proved to be an exception. For these ambiguous words, split-word representations were often superior to their in-vocabulary counterparts. This suggests that the contextualization mechanism in Transformers may process ambiguous sub-tokens more effectively, potentially by forcing the model to rely more heavily on surrounding context to resolve the meaning of the fragments.

The Similarity Range Trap

The researchers identified a potential pitfall in evaluating OOV words: the "Similarity Range Trap." They observed that 2-SPLIT pairs naturally yield higher baseline cosine similarity values than 0-SPLIT pairs. This shift in distribution means that similarity scores are not directly comparable across split-types; a high score for a pair of OOV words might be mathematically "average" within its own category, complicating direct comparisons between split and non-split vocabulary.

Morphological Integrity

The quality of a representation is heavily dependent on how a word is split. When tokenizers preserve the morphological root (e.g., keeping "salt" intact in "saltshaker"), the semantic quality remains high. Conversely, if the split destroys the root, the representation suffers. Interestingly, in BERT, the first sub-token was often found to be the least semantically informative, challenging the assumption that English disambiguation cues are primarily located at the start of the word.

Results and Model Comparison

XLNet emerged as the strongest model overall for representing split-words, particularly when paired with WAVG or LNG strategies. While BERT's split-word representations required several layers of contextualization to reach the quality of full words, CharacterBERT demonstrated remarkable stability across all layers, likely due to its character-level CNN architecture which avoids subword fragmentation entirely.

Crucially, the authors demonstrated that the performance penalty associated with split-words is not merely a byproduct of low frequency. Even when controlling for frequency, the act of splitting a word into sub-tokens inherently degrades the semantic quality of its representation.

Conclusion and Future Work

This research highlights that while subword tokenization solves the OOV problem, it does so at a cost to semantic precision. While simple averaging is a viable stopgap, the "similarity range" discrepancy suggests a need for more sophisticated normalization or pooling methods to bridge the gap between in-vocabulary and OOV words. Future research should expand this analysis to morphologically rich languages and explore pooling innovations that can better preserve semantic content across different tokenization patterns.

Summary updated

BibTeX
@article{soler2024impact,
  author = {Aina Garí Soler and Matthieu Labeau and Chloé Clavel},
  title = {{The Impact of Word Splitting on the Semantic Content of Contextualized Word Representations}},
  journal = {Trans. Assoc. Comput. Linguistics},
  year = {2024},
  doi = {10.1162/tacl\_a\_00647},
}
Figure