Polyglot: Distributed Word Representations for Multilingual NLP

Rami Al-Rfou', Bryan Perozzi, Steven Skiena

Abstract

The Polyglot project democratizes Natural Language Processing (NLP) by providing high-quality word embeddings for 117 languages trained on Wikipedia. Utilizing an unsupervised ranking-based neural network, the authors demonstrate that these "off-the-shelf" features achieve near state-of-the-art performance on tasks such as Part-of-Speech (PoS) tagging without requiring language-specific expert tuning. This approach effectively lowers the barrier for developing NLP systems in low-resource languages.

Introduction

Historically, NLP research has been heavily biased toward "rich-resource" languages, primarily English. Developing systems for new languages typically required a significant "bottleneck" of human expertise, where linguists had to manually manufacture features and preprocessing pipelines tailored to a specific language's grammar and morphology.

While unsupervised feature learning (word embeddings) emerged as a potential solution, early efforts were computationally expensive and focused almost exclusively on English. The Polyglot project addresses these barriers by introducing a scalable, automated framework to generate meaningful word representations for over a hundred languages simultaneously.

Methodology

The core of the Polyglot system is a neural network architecture inspired by the SENNA model. Unlike traditional language models that predict the next word in a sequence, this model is trained on a discriminative ranking task.

The Ranking Task

The model receives a valid n-gram from Wikipedia and a "corrupted" version where the middle word is replaced by a random word from the vocabulary. The network is trained to assign a higher score to the original phrase than the corrupted one using a hinge loss function.

Architecture

As shown in the figure below, words are mapped to a shared embedding matrix $C$. These embeddings are concatenated into a projection layer, passed through a non-linear hidden layer (using a $\tanh$ activation function), and finally distilled into a single scalar score.

Neural network architecture for the discriminative ranking task.

The training was implemented using Theano, enabling optimizations that made processing billions of words across 117 languages computationally feasible. Notably, the model employs minimal normalization; for European languages, it avoids lowercasing to preserve semantic distinctions between proper and common nouns (e.g., "Apple" the company vs. "apple" the fruit).

Empirical Evaluation

The authors trained the model on Wikipedia corpora for 117 languages, each containing at least 10,000 articles. To evaluate the utility of the resulting embeddings, they were used as features for Part-of-Speech (PoS) tagging across nine languages, including English, German, and Slovene.

Key Results

Using only the word embeddings as features, the Polyglot-based tagger achieved accuracies between 93% and 97% across the tested languages. As detailed in the table below, the model proved highly competitive, outperforming the popular statistical TnT tagger in English and Danish, and coming within 0.02% of the state-of-the-art in Swedish.

Part-of-Speech tagging accuracy across multiple languages compared to the TnT tagger.

The most significant performance gains were observed in languages with limited labeled training data, such as Slovene, where using Polyglot embeddings reduced the error rate by 2.68% compared to random initialization.

Discussion and Insights

The Polyglot embeddings capture deep semantic relationships without explicit supervision. For instance, the English model recognizes "Mumbai" and "Bombay" as semantically identical, while the Arabic model groups words with their "and-" prefixed versions.

Furthermore, the decision to maintain case sensitivity proved beneficial. The model naturally clusters IT companies near "Apple" and various fruits near "apple," a nuance often lost in standard NLP pipelines. The success of a single architecture across diverse language families—including Indo-European, Semitic, and Sino-Tibetan—suggests that distributed representations can serve as a universal "interlingua" for NLP features.

Limitations and Future Work

Despite its success, the model faces challenges with Out-of-Vocabulary (OOV) words, as it uses a single UNK token for any word outside the top 100,000. This limits its ability to recognize rare words or morphological patterns like suffixes. Additionally, the Wikipedia-based training may not generalize perfectly to other domains like social media or technical journals. Future research aims to explore cross-lingual embeddings to allow for the direct translation of features between languages.

Summary updated

BibTeX
@inproceedings{alrfou2013polyglot,
  author = {Rami Al-Rfou' and Bryan Perozzi and Steven Skiena},
  title = {{Polyglot: Distributed Word Representations for Multilingual NLP}},
  booktitle = {CoNLL},
  year = {2013},
}
Figure