Abstract
We present a novel approach to learning word embeddings by exploring subword information (character n-gram, root/affix and inflections) and capturing the structural information of their context with convolutional feature learning. Specifically, we introduce a convolutional neural network architecture that allows us to measure structural information of context words and incorporate subword features conveying semantic, syntactic and morphological information related to the words. To assess the effectiveness of our model, we conduct extensive experiments on the standard word similarity and word analogy tasks. We showed improvements over existing state-of-the-art methods for learning word embeddings, including skipgram, GloVe, char n-gram and DSSM.
Introduction
Most classic word embedding models, such as the original word2vec, treat words as "atomic" units—independent, indivisible tokens. This approach suffers from two major flaws: morphological blindness and structural neglect. By ignoring the internal structure of words, these models fail to recognize that "absorb," "absorbing," and "absorptive" share a semantic root. Furthermore, by treating context as a "bag of words," they ignore the specific order and structural relationships between surrounding words that define local syntax.
This paper introduces a neural architecture that "looks inside" words for linguistic clues and "looks around" them using a Convolutional Neural Network (CNN) to capture structural context. This dual approach allows for more robust embeddings, particularly for rare words or complex morphological forms.
Methodology
The proposed model consists of three primary components integrated into a unified neural architecture:
Subword Feature Layer
Instead of a simple lookup table, words are represented by a combination of three feature types:
- Character Trigrams: Words are broken into 3-letter chunks (e.g., "#ab", "abs") to handle rare words and spelling variations.
- Roots and Affixes: The model explicitly identifies derivational morphology, such as identifying "sorb" as the root of "absorbent."
- Inflectional Features: Various forms of a word (e.g., "liquids") are mapped back to a normalized root ("liquid").
Convolutional Context Learning
To represent the context of a target word, the model employs a CNN with a sliding window. Unlike fully connected layers, the CNN preserves the local ordering of words, which is crucial for capturing syntactic dependencies. A max-pooling layer then extracts the most informative features from these convolutions to form a context embedding.
Training Objective
The model is trained to maximize the cosine similarity between a target word's embedding (generated via a two-layer MLP) and its context embedding (generated by the CNN), utilizing negative sampling to distinguish real contexts from random noise.
Experimental Results
The model was trained on the enwik9 corpus (1 billion characters of Wikipedia) and evaluated across several standard benchmarks for word similarity (WS353, MEN, MT, Rel122, RG) and word analogy (Google and Microsoft datasets).
Performance Comparison
The proposed model consistently outperformed state-of-the-art baselines like skipgram, GloVe, and DSSM. On the MEN similarity dataset, the model achieved a Spearman correlation of 69.0, significantly higher than skipgram's 59.8. In the Microsoft analogy task, the model reached an accuracy of 52.8%, a substantial improvement over GloVe (24.5%) and skipgram (22.6%).
Ablation and Efficiency
Ablation studies confirmed that explicit linguistic knowledge—specifically inflectional features—provides a major boost in performance. Furthermore, despite the added complexity of subword processing, the model is approximately 40% faster than the DSSM baseline while maintaining higher accuracy. It also demonstrates remarkable robustness when trained on smaller datasets (enwik8), as it can infer the meaning of rare words from their subword components.
Discussion and Conclusion
The integration of CNNs for context modeling and rich subword features represents a significant step forward in word embedding research. By moving beyond atomic word representations, the model becomes more "syntactically aware" and morphologically grounded. While the current implementation is tailored for English morphology, future work could explore adapting these subword strategies for other languages and utilizing more flexible architectures like Attention mechanisms to capture long-distance dependencies.
Summary updated