Learning Distributed Representations for Multilingual Text Sequences

Hieu Pham, Thang Luong, Christopher D. Manning

Abstract

This paper introduces a novel approach for learning distributed representations of sentences and phrases in a multilingual context. By extending the paragraph vector model to a bilingual setting, the proposed method maps text sequences from different languages into a single, shared semantic space. Unlike traditional bag-of-words models, this approach captures compositional meaning and addresses linguistic asymmetries, such as German compound words. Evaluated on cross-lingual document classification tasks, the model achieves state-of-the-art performance and demonstrates remarkable symmetry across language pairs.

Introduction

In Natural Language Processing (NLP), representing words as high-dimensional vectors (embeddings) has become standard practice. However, extending these representations to larger text sequences like sentences remains a significant challenge. Most existing multilingual models rely on simple summation of individual word vectors, a "bag-of-words" approach that suffers from two major flaws: it fails to capture non-compositional meanings (idioms) and it struggles with linguistic asymmetry, where structural differences between languages (e.g., German's complex compounds vs. English's analytical structure) create divergent semantic footprints.

Methodology

The authors propose a Joint-space Bilingual Embedding model, which adapts the "Paragraph Vector" (Doc2Vec) algorithm for cross-lingual tasks. The core innovation lies in forcing parallel sentences—such as an English sentence and its German translation—to share the exact same "sentence vector" during training.

Architecture of the Joint-space Bilingual Embedding model.

As shown in the architecture above, this shared vector acts as a global context. The model is trained to predict target words within an N-gram sequence by combining the shared sentence vector with surrounding word vectors. In this hybrid architecture, the sentence vector is concatenated with the sum of word vectors in a sliding window to predict the next word. At inference time, for unseen sentences, the model keeps word weights fixed and performs a brief optimization to find the optimal sentence vector for the new input.

Experimental Setup

The model was trained using the Europarl v7 corpus, specifically the English-German portion containing approximately 1.8 million parallel sentence pairs. Evaluation was conducted using the RCV1/RCV2 dataset for Cross-Lingual Document Classification (CLDC). This task requires training a classifier on documents in one language and testing its accuracy on documents in another, serving as a rigorous test of the shared semantic space.

Results and Discussion

The proposed model, referred to as para_doc, achieved state-of-the-art results on the English-German CLDC task.

Cross-lingual document classification accuracy across different models.

As detailed in the results table, the model reached an accuracy of 92.7% for English-to-German and 91.5% for German-to-English classification. A critical finding is the model's symmetry; while previous high-performing baselines like the Autoencoder showed significant performance drops in one direction (91.8% vs. 72.8%), the para_doc model maintained nearly identical performance in both directions. This suggests the model successfully ignores structural linguistic differences to focus on underlying semantic intent. Furthermore, the holistic sequence representation (para_doc) significantly outperformed simple summation of the model's own word embeddings (para_sum), particularly in the German-to-English direction.

Conclusion

By bypassing the need for explicit word alignment and focusing on sequence-level equivalence, this joint-space model provides a robust solution for multilingual text representation. While the current implementation faces challenges regarding nondeterminism and computational costs during inference, its ability to create a truly symmetric, shared semantic space marks a significant advancement over previous bag-of-words and translation-based approaches. Future research will explore scaling this architecture to support more than two languages simultaneously.

Summary updated

BibTeX
@inproceedings{pham2015learning,
  author = {Hieu Pham and Thang Luong and Christopher D. Manning},
  title = {{Learning Distributed Representations for Multilingual Text Sequences}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2015},
  doi = {10.3115/v1/w15-1512},
}
Figure