Proceedings of the First Workshop on Subword and Character Level Models in NLP

Matthieu Labeau, Alexandre Allauzen, Martı́n Abadi, Ashish Agarwal, Paul Barham, Eugene Brevdo, Zhifeng Chen, Craig Citro, Greg Cor- Rado, Andy Davis, Jeffrey Dean, Matthieu Devin, Sanjay Ghemawat, Ian Goodfellow, Andrew Harp, Geoffrey Irving, Michael Isard, Yangqing Jia, Rafał Józefowicz, Łukasz Kaiser, Manjunath Kudlur, Josh Levenberg, Dan Mané, Rajat Monga, Sherry Moore, Derek G. Murray, Chris Olah, Mike Schuster, Jonathon Shlens, Benoit Steiner, Ilya Sutskever, Kunal Tal- War, Paul A. Tucker, Vincent Vanhoucke, Vijay Va- Sudevan, Fernanda Viégas, Oriol Vinyals, Pete Warden, Jacob Devlin, Rabih Zbib, Zhongqiang Huang, Thomas Lamar, Richard Schwartz, Anoop Kunchukuttan, Pushpak Bhattacharyya, Bushra Jawaid, Amir Kamran, Ondřej Bo, Philipp Koehn, Hieu Hoang, Alexandra Birch, Chris Callison-Burch, Marcello Federico, Nicola Bertoldi, Gaël Lejeune, Émmanuel Cartier, Maria Ponomareva, Kirill Milintsevich, Ekaterina Chernyak, Anatoly Starostin, Sanghyuk Choi, Taeuk Kim, Jinseok Seol, Sang‐goo Lee, Sang-Goo Lee, Katharina Kann, Ryan Cotterell, Hinrich Schtze, Hai-Son Le, Franc ois Yvon, Ilya Oparin, Jean-Luc Gauvain, Wang Ling, Chris Dyer, Alan Black, Isabel Trancoso, Ramon Fermandez, Silvio Amir, Luis Marujo, Tiago Luis, Thomas Mueller, Hinrich Schuetze, Barbara Plank, Anders Sgaard, Yoav Goldberg, Siyu Qiu, Qing Cui, Jiang Bian, Bin Gao, Tie-Yan Liu, D Cicero, Bianca Santos, Zadrozny, Holger Schwenk, Henning Sperr, Jan Niehues, Lukasz KaiserOpenalex Unknown 2017 · DOI · OpenAlex

Abstract

Traditional neural language models (NLMs) typically utilize word-level embeddings to predict the next token in a sequence. While subword and character-level information have been successfully integrated into the input (context) side of these models, their application to the output (prediction) layer remains less explored. This paper investigates the impact of using character and factored morphological decompositions to construct output representations for NLMs. Focusing on Czech—a morphologically rich language—the study demonstrates that augmenting output word representations with character-based embeddings significantly improves performance, particularly for rare words.

Introduction

In Natural Language Processing, the standard approach treats words as atomic units. This paradigm faces significant hurdles when applied to morphologically rich languages (MRLs) like Czech, German, or Finnish. In these languages, a single root can produce a vast array of surface forms through inflection, leading to a "combinatorial explosion."

This phenomenon results in three primary challenges for traditional models:

  1. Data Sparsity: Many inflected forms appear infrequently, preventing the model from learning robust, independent embeddings.
  2. Out-of-Vocabulary (OOV) Errors: Unseen word forms are typically mapped to a generic <UNK> token, stripping them of semantic and syntactic utility.
  3. Parameter Inefficiency: Treating "run," "runs," and "running" as entirely unrelated entities ignores structural regularities that could streamline the model.

While subword units have successfully mitigated these issues on the input side, this research explores whether character-level information can enhance the output layer's predictive capabilities.

Methodology

The authors implement a recurrent neural language model based on the Long Short-Term Memory (LSTM) architecture. The innovation lies in the construction of the output word representations used during the prediction step.

Augmented Output Representations

Instead of relying solely on a lookup table for word IDs, the model generates an output representation by concatenating a standard word embedding with a subword-based embedding. Two distinct architectures were evaluated for generating these subword components:

  • CharCNN: A Convolutional Neural Network designed to capture local patterns, such as prefixes and suffixes.
  • CharBiLSTM: A bidirectional LSTM that processes character sequences to capture global word structure.

To manage the interaction between these concatenated sources, "Highway" layers were employed. These layers allow the model to dynamically gate the flow of information, deciding the relative importance of the word-level and character-level features for a given prediction.

Computational Efficiency

Predicting across the massive vocabulary of Czech is computationally expensive. To address this, the authors utilized Target Sampling, a form of importance sampling. This technique approximates the full softmax probability by considering only the correct word and a small subset of the vocabulary during each training iteration, making the training of large-vocabulary models feasible.

Experimental Setup

The study utilized the Czech News Commentary 2015 corpus, comprising approximately 4.7 million tokens. To test the model's robustness against data sparsity, the researchers experimented with various vocabulary thresholds. By varying the frequency required for a word to be included in the lookup table (e.g., appearing at least 5 or 10 times), they could observe how the model handled an increasing number of rare or "unknown" words.

Results and Discussion

The experimental results indicate a clear performance gain when incorporating character-level information into the output layer.

Perplexity Gains

In a "full vocabulary" scenario where data sparsity is most acute, a standard word-only model achieved a perplexity of 495. The addition of character-based augmentation (Words + CharCNN) reduced this significantly to 411. When a frequency threshold of 5 was applied—effectively forcing the model to rely on character representations for rare words—the perplexity dropped further to 376.

The Role of Rare Words

A key insight from the study is that character-based embeddings serve as a critical "safety net." For frequent words, the model continues to rely on standard word embeddings. However, for rare words where word-level embeddings are poorly trained, the character-level features provide the necessary morphological clues to maintain predictive accuracy. The authors found that reducing the size of the word lookup table actually improved overall performance by forcing the model to leverage these subword structures.

Architecture and Stability

The CharCNN architecture generally outperformed the CharBiLSTM, likely due to its proficiency in identifying specific morphological markers common in Czech. However, the authors noted that training these augmented models is inherently more unstable than traditional word-based models, often requiring backtracking to previous checkpoints to ensure convergence.

Conclusion

This research demonstrates that character-level information is a powerful tool for improving the output layer of neural language models in morphologically rich contexts. By providing a "smoother" mapping for rare and unseen words, these models overcome the limitations of atomic word representations. While challenges remain regarding training stability and complex factored predictions, these findings suggest that subword-based output representations are essential for robust language modeling in MRLs.

Summary updated

Abstract

Most of neural language models use different kinds of embeddings for word prediction. While word embeddings can be associated to each word in the vocabulary or derived from characters as well as factored morphological decomposition, these word representations are mainly used to parametrize the input, i.e. the context of prediction. This work investigates the effect of using subword units (character and factored morphological decomposition) to build output representations for neural language modeling. We present a case study on Czech, a morphologically-rich language, experimenting with different input and output representations. When working with the full training vocabulary, despite unstable training, our experiments show that augmenting the output word representations with character-based embeddings can significantly improve the performance of the model. Moreover, reducing the size of the output look-up table, to let the character-based embeddings represent rare words, brings further improvement. Highway Layer LSTM Softmax 'to' 'reln' '?' Look-up table
BibTeX
@inproceedings{labeau2017proceedings,
  author = {Matthieu Labeau and Alexandre Allauzen and Martı́n Abadi and Ashish Agarwal and Paul Barham and Eugene Brevdo and Zhifeng Chen and Craig Citro and Greg Cor- Rado and Andy Davis and Jeffrey Dean and Matthieu Devin and Sanjay Ghemawat and Ian Goodfellow and Andrew Harp and Geoffrey Irving and Michael Isard and Yangqing Jia and Rafał Józefowicz and Łukasz Kaiser and Manjunath Kudlur and Josh Levenberg and Dan Mané and Rajat Monga and Sherry Moore and Derek G. Murray and Chris Olah and Mike Schuster and Jonathon Shlens and Benoit Steiner and Ilya Sutskever and Kunal Tal- War and Paul A. Tucker and Vincent Vanhoucke and Vijay Va- Sudevan and Fernanda Viégas and Oriol Vinyals and Pete Warden and Jacob Devlin and Rabih Zbib and Zhongqiang Huang and Thomas Lamar and Richard Schwartz and Anoop Kunchukuttan and Pushpak Bhattacharyya and Bushra Jawaid and Amir Kamran and Ondřej Bo and Philipp Koehn and Hieu Hoang and Alexandra Birch and Chris Callison-Burch and Marcello Federico and Nicola Bertoldi and Gaël Lejeune and Émmanuel Cartier and Maria Ponomareva and Kirill Milintsevich and Ekaterina Chernyak and Anatoly Starostin and Sanghyuk Choi and Taeuk Kim and Jinseok Seol and Sang‐goo Lee and Sang-Goo Lee and Katharina Kann and Ryan Cotterell and Hinrich Schtze and Hai-Son Le and Alexandre Allauzen and Franc ois Yvon and Hai-Son Le and Ilya Oparin and Alexandre Allauzen and Jean-Luc Gauvain and Francois Yvon and Wang Ling and Chris Dyer and Alan Black and Isabel Trancoso and Ramon Fermandez and Silvio Amir and Luis Marujo and Tiago Luis and Thomas Mueller and Hinrich Schuetze and Barbara Plank and Anders Sgaard and Yoav Goldberg and Siyu Qiu and Qing Cui and Jiang Bian and Bin Gao and Tie-Yan Liu and D Cicero and Bianca Santos and Zadrozny and Holger Schwenk and Henning Sperr and Jan Niehues and Lukasz Kaiser},
  title = {{Proceedings of the First Workshop on Subword and Character Level Models in NLP}},
  booktitle = {Openalex Unknown},
  year = {2017},
  doi = {10.18653/v1/w17-41},
}
Figure