Finding Function in Form: Compositional Character Models for Open Vocabulary Word Representation

Wang Ling, Chris Dyer, Alan W. Black, Isabel Trancoso, Ramon Fermandez, Silvio Amir, Luís Marujo, Tiago Luís

Introduction

In traditional Natural Language Processing (NLP), words are typically treated as atomic units. Each word in a vocabulary is assigned a unique vector—an embedding—stored in a massive lookup table. While this "word-level" approach has powered many early successes in the field, it suffers from three fundamental flaws. First is the Out-of-Vocabulary (OOV) problem: if a model encounters a word not seen during training, it is effectively blind. Second is morphological blindness: traditional models treat "run," "runs," and "running" as entirely independent symbols, ignoring the structural similarities that hint at shared meaning. Finally, there is the issue of parameter explosion: as vocabularies grow, especially in morphologically rich languages like Turkish or Finnish, the number of parameters required to store every possible word form becomes computationally impractical.

This paper introduces the Character-to-Word (C2W) model, which proposes that we should find "function in form." By using the orthographic structure—the spelling—of a word to derive its functional representation, the model can handle unseen words and capture morphological patterns with a fraction of the parameters.

The C2W Model

The core innovation of this research is the replacement of the standard word lookup table with a compositional model based on a Bidirectional Long Short-Term Memory (Bi-LSTM) network.

The C2W model (bottom) generates word embeddings from characters, contrasting with the traditional word lookup table (top).

The C2W architecture operates as follows:

  1. Character Embeddings: Each unique character (e.g., 'a', 'b', 'c') is assigned a small, learnable vector.
  2. The "Read" Process: For a given word, the model feeds its character vectors into two LSTMs. One reads the word from left to right (forward), and the other reads it from right to left (backward).
  3. Composition: The final hidden states of both LSTMs are concatenated and passed through a linear layer to produce a single $d$-dimensional vector representing the entire word.

To mitigate the computational cost of running an LSTM for every word, the authors suggest caching the resulting vectors for frequently occurring words, only invoking the compositional model for rare or unseen tokens.

Experimental Setup

The authors evaluated the C2W model across two primary NLP tasks to test its robustness and generalizability: Language Modeling and Part-of-Speech (POS) tagging.

The C2W model integrated into a standard language modeling pipeline, where word embeddings are fed into a higher-level LSTM to predict the next token.

For Language Modeling, the model was tested using Wikipedia dumps in five languages: English, Portuguese, Catalan, German, and Turkish. These languages were selected to represent a spectrum of morphological complexity, from the relatively "poor" English to the highly "agglutinative" Turkish. For POS Tagging, the model was evaluated on the Wall Street Journal (Penn Treebank) dataset for English and CoNLL shared task datasets for the other four languages.

Key Results and Insights

The C2W model demonstrated significant advantages over traditional word-level baselines:

  • Morphological Awareness: The model successfully learned that words with similar endings (like -ing or -ed) often share syntactic roles. Crucially, it could generate meaningful embeddings for "nonce" (invented) words. For example, it could "guess" that a made-up word like "phding" is related to "modelling" based on its suffix.
  • Parameter Efficiency: The C2W model uses a fixed set of parameters regardless of vocabulary size. In English, this reduced the parameter count from 4.3 million to just 180,000—a nearly 25x reduction.
  • Superior Performance: In Language Modeling, the C2W model achieved lower perplexity across all five languages. The gains were most dramatic in Turkish, where perplexity dropped from 44.01 (word-level) to 32.88 (C2W). In POS tagging, the model established a new state-of-the-art for English at the time, with 97.36% accuracy.
  • Bi-LSTM vs. CNN: The authors found that the Bi-LSTM approach outperformed Convolutional Neural Networks (CNNs) for character modeling, likely because LSTMs are better suited to capturing the long-distance dependencies inherent in word structure.

Conclusion

The C2W model proves that "form" is a powerful proxy for "function." By shifting from atomic word lookups to character-level composition, the model solves the OOV problem and captures morphological richness while remaining parameter-efficient. While the computational overhead of LSTMs remains a consideration, the use of caching makes the model a viable and superior alternative for processing diverse languages. Future work will explore integrating C2W into tasks like machine translation and dependency parsing.

Summary updated

BibTeX
@inproceedings{ling2015finding,
  author = {Wang Ling and Chris Dyer and Alan W. Black and Isabel Trancoso and Ramon Fermandez and Silvio Amir and Luís Marujo and Tiago Luís},
  title = {{Finding Function in Form: Compositional Character Models for Open Vocabulary Word Representation}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2015},
  doi = {10.18653/v1/d15-1176},
}
Figure