Learning to Generate Word Representations using Subword Information

Yeachan Kim, Kang-Min Kim, Ji-Min Lee, SangKeun Lee

Introduction

Traditional Natural Language Processing (NLP) models often treat words as atomic units, failing to capture the internal structural relationships between related forms like "run," "running," and "ran." This approach leads to two significant challenges: the Out-of-Vocabulary (OOV) problem, where unknown words are reduced to a generic <unk> token, and the neglect of subword information, which is crucial for generalizing across morphologically rich languages like German or Russian.

While existing solutions like FastText utilize character n-grams, they often require extensive computational resources and long training cycles. This paper introduces Generated Word Representation (GWR), a supervised model designed to efficiently reconstruct high-quality word embeddings from character sequences by leveraging pre-trained vectors.

Methodology

The GWR architecture is designed to map a sequence of characters to a target embedding space through a multi-stage neural pipeline.

The GWR architecture featuring the Convolution module, Highway module, and Optimization process.

Character-based Convolution Module (CNN)

The process begins with one-hot encoded characters. A CNN is employed to extract local features, such as prefixes and suffixes (e.g., "un-" or "-ing"). Unlike Recurrent Neural Networks (RNNs), CNNs are particularly effective at identifying these locally salient subword units. To handle varying word lengths, a stride max-pooling operation condenses these features into a fixed-size vector.

Highway Network Module

A critical component of GWR is the Highway Network. Using a gating mechanism similar to LSTMs, the Highway module regulates the flow of information, deciding which features to transform and which to pass through unchanged. This allows for deeper training and a more nuanced mapping between subword features and the final semantic embedding.

Optimization

GWR is trained as a reconstruction task. The model minimizes the squared Euclidean distance between its generated vector and a target pre-trained vector (e.g., word2vec). This supervised approach allows the model to learn the "logic" of an embedding space without needing to re-process a massive raw corpus.

Experimental Results

The model was evaluated across seven languages, focusing on both intrinsic word similarity and extrinsic language modeling tasks.

Performance in Morphologically Rich Languages

GWR demonstrated its greatest strengths in languages with complex morphology. As shown in the table below, GWR consistently achieved the lowest perplexity scores across all tested languages, outperforming established baselines like FastText and Mimick.

Perplexity results for GWR compared to word2vec, FastText, and Mimick across multiple languages.

Key quantitative findings include:

  • Language Modeling: An average 18.5% improvement in perplexity for morphologically rich languages.
  • Word Similarity: Significant gains in German and French, indicating that the generated vectors align well with human semantic intuition.
  • OOV Robustness: Qualitative analysis showed that GWR generates meaningful representations for unseen words. For example, the OOV word "bluejacket" was mapped near "jacket" and "pants," whereas traditional models provided no data.

Efficiency and Speed

One of the most striking advantages of GWR is its efficiency. By learning from existing embeddings rather than raw text, GWR is approximately 16x faster to train than FastText. In experimental trials, GWR learned 100,000 word embeddings in just 52 minutes, a task that took FastText 14 hours on identical hardware.

Conclusion

GWR provides a powerful and efficient framework for generating word representations from subword information. By combining CNNs for feature extraction with Highway Networks for deep transformation, the model effectively addresses the OOV problem and improves performance in morphologically diverse languages. While the model's quality is currently tied to its "teacher" pre-trained vectors, its speed and generalization capabilities make it a compelling tool for modern NLP pipelines.

Summary updated

BibTeX
@inproceedings{kim2018learning,
  author = {Yeachan Kim and Kang-Min Kim and Ji-Min Lee and SangKeun Lee},
  title = {{Learning to Generate Word Representations using Subword Information}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2018},
}
Figure