To Split or Not to Split: Composing Compounds in Contextual Vector Spaces

Christopher Jenkins, Filip Miletic, Sabine Schulte im WaldeEMNLP 2023

Introduction

In morphologically rich languages like German, compounding is a productive process where existing nouns are combined to form new words (e.g., Zitronensaft for "lemon juice"). While humans easily decompose these into Zitrone (lemon) and Saft (juice), standard Large Language Models (LLMs) like BERT rely on sub-word tokenization methods such as WordPiece.

These tokenizers prioritize character frequency over linguistic structure, often fragmenting compounds into semantically opaque units. For instance, Zitronensaft might be tokenized as [Zit, ##ronen, ##sa, ##ft]. These fragments are semantically noisy and appear across unrelated contexts, hindering the model's ability to learn robust representations, particularly in data-scarce environments like historical archives.

Comparison of tokenization strategies for German compounds across different model configurations.

Methodology

This research evaluates four BERT configurations to determine the optimal handling of German compounds:

  1. Base: The standard bert-base-german-cased model.
  2. Base-ft-DTA: The base model fine-tuned on the Deutsches Textarchiv (DTA), a historical German corpus (1814–1900) containing 89 million tokens.
  3. Voc-rt-DTA: A model with a tokenizer completely re-trained on the DTA corpus.
  4. Split: A model where compounds were manually pre-split into their linguistic constituents (e.g., Zitrone + Saft) before training.

Models were evaluated using Masked Language Modeling (MLM) to test prediction accuracy and Compositionality Prediction, which correlates model-derived vector similarities with human judgments from the GhoSt-NN dataset. Semantic distances were further validated using GermaNet.

Key Insights

The core finding is that linguistic structure often outweighs statistical frequency. By pre-splitting compounds, the model leverages the well-learned representations of common constituents to understand rare compounds. In the "Split" configuration, the model's representation of a compound effectively becomes an average of its parts, mirroring human cognitive processing of compositional words.

Results

The experimental results demonstrate that the Split strategy significantly outperforms standard tokenization in low-resource settings. As shown in the performance metrics, the Split model achieved a "Partial Match" MLM score of 0.26, a substantial improvement over the 0.06 achieved by the default base model.

Performance metrics for MLM prediction and semantic precision against GermaNet across configurations.

Furthermore, the Split model exhibited the highest semantic precision (0.52) when evaluated against GermaNet, indicating that its predictions were more linguistically relevant. While the original BERT (trained on significantly more data) maintained the highest overall correlation with human ratings (ρ = 0.368), the Split model was the most effective among those restricted to the historical DTA dataset (ρ = 0.313).

Conclusion and Future Work

Pre-splitting compounds offers a powerful preprocessing step for improving semantic understanding in morphologically complex languages, especially when training data is limited. However, this approach requires reliable splitting tools and has currently only been tested on noun-noun compounds. Future research should investigate whether these benefits persist at massive scales (multi-billion token datasets) and explore more complex morphological structures like prefixed verbs.

Summary updated

BibTeX
@inproceedings{jenkins2023split,
  author = {Christopher Jenkins and Filip Miletic and Sabine Schulte im Walde},
  title = {{To Split or Not to Split: Composing Compounds in Contextual Vector Spaces}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.emnlp-main.1002},
}
Figure