Continuous multilinguality with language vectors

Robert Östling, Jörg Tiedemann · DOI

TL;DR

This paper introduces a novel approach to multilingual natural language processing (NLP) by representing languages as continuous vectors within a single neural model. This allows the model to learn and generalize across languages, even those not explicitly seen during training, and reveals that these language vectors capture meaningful linguistic relationships.

What Problem Does This Paper Address?

Traditional multilingual NLP models treat each language as a distinct, independent entity. This approach requires training separate models for each language, which is inefficient and doesn't leverage the inherent similarities and shared properties between languages. Furthermore, data scarcity for many languages makes training robust individual models challenging. The authors aim to overcome these limitations by developing a single, unified model that can handle multiple languages simultaneously, learning a shared representation that benefits from cross-lingual information.

Methods

The core of the proposed method is a character-based neural language model, specifically a stacked LSTM architecture. The novelty lies in how languages are incorporated: instead of using discrete language identifiers (like one-hot encodings), the model learns dense, continuous vector representations for each language. These language vectors are concatenated with the input at each time step of the LSTMs and before the final softmax layer. This allows the model's predictive distribution to be a continuous function of the language vector, enabling interpolation and generalization. The authors also explore hierarchical agglomerative clustering on these learned language vectors for visualization and analysis.

Datasets

The primary dataset used is a large collection of Bible translations from approximately 990 languages, totaling 1,303 translations. This dataset was chosen for its multi-parallel nature (allowing control for semantic similarity) and for its broad linguistic coverage. The authors filtered translations to ensure the model alphabet size remained below 1000 symbols, primarily by selecting texts in Latin, Cyrillic, or Greek scripts. For evaluation, a subset of the 128 most commonly translated Bible verses was used as a held-out test set.

Key Insights and Ideas

  • Language as a Continuous Spectrum: The paper demonstrates that languages can be effectively represented as points in a continuous vector space, moving away from the discrete, categorical view.
  • Cross-Lingual Generalization: The continuous language vectors enable the model to generalize to unseen language varieties and even interpolate between known languages, suggesting a deeper understanding of linguistic relationships.
  • Discovery of Linguistic Relationships: Clustering the learned language vectors reveals hierarchical structures that closely mirror established genetic relationships between language families (e.g., Germanic languages).
  • Data Sparsity Mitigation: By sharing parameters across languages, the model can leverage data from high-resource languages to improve performance on low-resource ones, addressing the data sparsity problem.

Key Results

  • The model shows graceful degradation (or even improvement) in performance (measured by cross-entropy) as more languages are added, up to a certain point.
  • Hierarchical clustering of language vectors for Germanic languages accurately reflects their known genetic relationships.
  • Interpolating between language vectors (e.g., English and German) allows for sensible generation of text that smoothly transitions between the two languages.
  • Language identification can be performed by optimizing the language vector for a given text sample, achieving a noticeable improvement in cross-entropy. For example, using 32 sentences from the King James Bible improved test set cross-entropy from 1.39 to 1.35.

Limitations and Future Work

The authors acknowledge that their dataset, while large, has limitations: it's primarily the New Testament (with some Old Testament portions), has a narrow domain, and a high overlap of named entities. They also note that while the model can find relationships between closely related languages, connecting more remote ones (e.g., Germanic to Celtic) is more challenging. Future work could involve exploring how to scale the number of model parameters to accommodate even more languages and investigating more efficient methods for language vector inference than backpropagation.

Summary updated

BibTeX
@inproceedings{ostling2017continuous,
  author = {Robert Östling and Jörg Tiedemann},
  title = {{Continuous multilinguality with language vectors}},
  booktitle = {EACL},
  year = {2017},
  doi = {10.18653/v1/e17-2102},
}
Figure