NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Improving Character-Aware Neural Language Model by Warming up Character Encoder under Skip-gram Architecture

Yukun Feng, Chenlong Hu, Hidetaka Kamigaito, Hiroya Takamura, Manabu Okumura

Introduction

Character-aware neural language models (CNLMs) have emerged as a powerful solution for handling rare words and morphologically rich languages, such as Finnish or Turkish. Unlike standard models that rely on a fixed vocabulary of word embeddings, CNLMs use character encoders to construct word representations from individual letters. However, these models often suffer from orthographic bias: they tend to prioritize spelling similarities (e.g., "his" vs. "hhs") over semantic relationships (e.g., "his" vs. "my"). This paper introduces a novel "warm-up" phase using a Skip-gram architecture to force character encoders to align with semantic word-level meanings before the primary language modeling task begins.

Methodology: The Skip-gram Warm-up

The authors propose a two-stage training process designed to break orthographic bias without requiring additional training data or increasing inference complexity.

Stage 1: The Warm-up Phase

In this initial stage, the character encoder—specifically a Bidirectional LSTM (BiLSTM) operating over character trigrams—is trained within a Skip-gram framework. The encoder generates an embedding for a target word, which is then used to predict the surrounding context words.

Crucially, while the input word is constructed from characters, the target context words are represented by standard, word-based embeddings. This "Secret Sauce" forces the character encoder to map character sequences into a semantic space that mirrors how whole words are understood in context.

The proposed two-stage training architecture, featuring a Skip-gram warm-up phase for the character encoder.

Stage 2: Language Modeling

Once the warm-up is complete, the weights from the character encoder are used to initialize a standard CNLM (such as an AWD-LSTM). The model is then trained to predict the next word in a sequence. By starting with a semantically grounded encoder, the model avoids the pitfall of over-relying on surface-level spelling patterns.

Experimental Setup

The method was evaluated across two distinct scenarios:

  1. 14 Typologically Diverse Languages: Including Chinese, Japanese, Arabic, Russian, and Kannada. These datasets are challenging due to high volumes of low-frequency and unseen words in test sets.
  2. 5 Common Benchmarks: Standard European languages (Czech, German, Spanish, French, Russian) where unknown words are typically handled via an <UNK> token.

Key Results and Insights

The "Warmed-up" models consistently outperformed baseline character-aware models and strong word-level baselines across all tested languages.

Perplexity and Semantic Alignment

On the 14-language dataset, the warmed-up models showed significant improvements in perplexity (a measure where lower values indicate better prediction). In English, perplexity dropped from 302 to 278. Furthermore, word similarity tests (using benchmarks like SimLex-999) confirmed that the warmed-up encoder captured semantic features far more effectively than standard encoders.

Perplexity results on five common benchmarks, showing the performance of the Warmed-Char-BiLSTM-LSTM against existing models.

Rare Word Mastery

Analysis revealed that the most dramatic gains occurred in the "Rare" word category. Because the model possesses a superior "semantic map" of how characters form meanings, it can make significantly more accurate predictions for words encountered only a few times during training.

Conclusion

By using the Skip-gram objective as a regularizer during a warm-up phase, the authors successfully "pre-program" character encoders to prioritize context over orthography. While this study focused on LSTM-based architectures, the success of this semantic alignment suggests a promising path for future research into character-aware Transformer models and downstream tasks like machine translation.

Summary updated

Abstract

Character-aware neural language models can capture the relationship between words by exploiting character-level information and are particularly effective for languages with rich morphology. However, these models are usually biased towards information from surface forms. To alleviate this problem, we propose a simple and effective method to improve a character-aware neural language model by forcing a character encoder to produce wordbased embeddings under Skip-gram architecture in a warm-up step without extra training data. We empirically show that the resulting character-aware neural language model achieves obvious improvements of perplexity scores on typologically diverse languages, that contain many low-frequency or unseen words.
BibTeX
@inproceedings{feng2021improving,
  author = {Yukun Feng and Chenlong Hu and Hidetaka Kamigaito and Hiroya Takamura and Manabu Okumura},
  title = {{Improving Character-Aware Neural Language Model by Warming up Character Encoder under Skip-gram Architecture}},
  booktitle = {Ranlp},
  year = {2021},
}
Figure