[Paper Review] Learning to Create and Reuse Words in Open-Vocabulary Neural Language Modeling
This paper proposes a hierarchical character-level LSTM language model with a learnable cache mechanism that enables dynamic creation and reuse of words, particularly capturing bursty usage of rare words like proper nouns. The model achieves state-of-the-art perplexity on standard benchmarks and a new multilingual Wikipedia corpus by selectively generating words from either character-level decoding or cached past tokens, effectively modeling open-vocabulary dynamics with long-range dependencies.
Fixed-vocabulary language models fail to account for one of the most characteristic statistical facts of natural language: the frequent creation and reuse of new word types. Although character-level language models offer a partial solution in that they can create word types not attested in the training corpus, they do not capture the "bursty" distribution of such words. In this paper, we augment a hierarchical LSTM language model that generates sequences of word tokens character by character with a caching mechanism that learns to reuse previously generated words. To validate our model we construct a new open-vocabulary language modeling corpus (the Multilingual Wikipedia Corpus, MWC) from comparable Wikipedia articles in 7 typologically diverse languages and demonstrate the effectiveness of our model across this range of languages.
Motivation & Objective
- To address the limitations of fixed-vocabulary language models in handling open-vocabulary settings where new and rare words are frequently created.
- To model the bursty reuse of rare words—especially proper nouns—by incorporating a caching mechanism into a character-level language model.
- To develop a unified architecture that combines character-level generation with word-level reuse, preserving long-range dependencies via LSTMs.
- To evaluate the model on a new multilingual corpus to demonstrate robustness across typologically diverse languages.
- To analyze the contribution of the cache mechanism to word reuse and its preference for specific word types such as names, numbers, and content words.
Proposed method
- The model uses a hierarchical LSTM that generates words character-by-character, encoding each word into a vector via an LSTM over its character sequence.
- A learnable, LRU-style cache stores previously generated word representations, allowing the model to copy from past tokens instead of re-generating them.
- At each generation step, the model decides probabilistically whether to generate a word from the language model (character-level LSTM) or retrieve it from the cache, with this decision marginalized during training.
- The cache is indexed by the hidden state of the word-generating LSTM, enabling context-sensitive retrieval of previously seen words.
- The model is trained end-to-end using cross-entropy loss, with the cache mechanism integrated into the autoregressive generation process.
- A new multilingual Wikipedia corpus (MWC) was constructed from comparable Wikipedia articles in 7 typologically diverse languages to evaluate cross-lingual performance.
Experimental results
Research questions
- RQ1How effectively can a character-level language model with a cache mechanism model the bursty reuse of rare and newly created words?
- RQ2To what extent does the cache preferentially handle proper nouns versus content words or numbers in different languages?
- RQ3Does the proposed model outperform standard character-level and word-level language models in open-vocabulary settings?
- RQ4How does the cache mechanism contribute to long-range dependency modeling and perplexity reduction?
- RQ5Can the model generalize across diverse languages with varying morphological and orthographic properties?
Key findings
- The proposed HCLM with cache achieves lower perplexity than both the baseline HCLM and standard LSTM models on all datasets, with the largest gains on open-vocabulary benchmarks like WikiText-2 and the Multilingual Wikipedia Corpus.
- The cache is predominantly used for generating proper nouns, which exhibit high burstiness, while content words and numbers are more likely to be generated from the character-level language model.
- On the MWC, the model shows consistent improvements across 7 typologically diverse languages, confirming its robustness to linguistic variation.
- Posterior analysis confirms that the cache mechanism learns to model word reuse effectively, with proper nouns having a high probability of being retrieved from the cache.
- The model disfavors copying numbers from the cache, indicating it has learned that numbers are rarely reused, aligning with empirical word frequency patterns.
- The model’s parameter count is lower than standard word-level models due to the elimination of word projection layers, while maintaining strong performance through LSTMs and caching.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.