Abstract
German compound nouns present a unique challenge for vector space models due to their high productivity and single-word orthography. This study evaluates twelve composition models to predict the vector representations of German compounds from their constituent parts. We introduce "Mask Models"—where words learn role-specific filters (modifier vs. head)—and demonstrate that they significantly outperform traditional matrix-based and additive models. Our best-performing model, Wmask, achieves a median rank of 6 in a large-scale dictionary retrieval task, suggesting a robust approach to capturing semantic compositionality.
Introduction
In natural language processing, vector space models like GloVe or Word2Vec excel at representing individual words but often struggle with the infinite variety of phrases and sentences. German presents a unique "middle ground" challenge: it is highly productive in creating compound nouns (e.g., Apfelbaum for "apple tree"). Because these compounds are written as single words, we can observe their "true" meaning in a corpus. However, many compounds are rare or entirely new, meaning a model won't have a pre-learned vector for them. This research explores mathematical functions that combine the vectors of parts (the modifier and the head) to accurately reconstruct the vector of the whole.
Methods
The study evaluates 12 different composition models, ranging from simple addition to complex neural networks. The core contribution is the introduction of Mask Models, which rely on the intuition that a word’s meaning shifts depending on its role (e.g., "car" as a product in "car factory" vs. a primary vehicle in "company car").
The Masking Mechanism
For every word in the dictionary, the model learns two "masks" (vectors of the same dimension as the word embedding):
- Modifier Mask: Applied when the word acts as a modifier.
- Head Mask: Applied when the word acts as the head.
These filtered representations are then combined. The paper proposes Addmask (simple addition of masked vectors) and Wmask (passing concatenated masked vectors through a global matrix and a non-linearity like tanh). These are compared against established baselines like Lexfunc (learning a unique matrix for every modifier) and Fulladd (learning two global matrices for all modifiers and heads).
Experimental Setup
- GermaNet 9.0: A subset of 34,497 compounds was used, filtered to ensure all parts met a minimum frequency threshold of 500 occurrences in the corpus.
- DECOW14AX: A 10-billion token German corpus used to train initial GloVe embeddings at 50, 100, 200, and 300 dimensions.
- Evaluation: Models were evaluated using Rank: how close the predicted vector was to the actual observed vector compared to all other words in the dictionary. Lower ranks indicate better performance.
Key Results and Insights
The Power of Filtering
The "Mask" models (Models 11 and 12 in the table) strike a balance between complexity and generalization. While models like Lexfunc (Model 7) are theoretically powerful, they often suffer from data sparsity because they require learning high-dimensional matrices for every word. Mask models learn word-specific parameters but keep the parameter count low ($2n$ per word vs $n^2$ for matrix models), allowing them to capture nuance without over-fitting.
Performance Scaling
As shown in Table 1, performance improved consistently as the dimensionality of the word vectors increased. The Wmask model (Model 12) emerged as the clear winner across all dimensions. At 300 dimensions, it reached a median rank (Q2) of 6. This means that for half of the test cases, the "correct" compound vector was among the top 6 nearest neighbors to the model's prediction.
Head Dominance
Simple baselines (Model 1) confirmed that the "head" of a German compound (the second word) is a very strong indicator of the compound's overall meaning—often outperforming simple vector addition or multiplication without role-specific weighting.
Conclusion
This study demonstrates that role-specific masking is a highly effective strategy for modeling semantic composition in German compounds. While the current work focuses on two-word compounds, the success of the Wmask architecture suggests potential for recursive applications in multi-word compounds. Future research may also address the discrepancy between Rank and Mean Squared Error (MSE) metrics to better understand how different loss functions impact semantic "closeness" in high-dimensional spaces.
Summary updated