A Corpus for Multilingual Document Classification in Eight Languages

Holger Schwenk, Xian Li

Introduction

Cross-lingual document classification (CLDC) is a pivotal task in natural language processing, where the objective is to train a classification model on a source language (e.g., English) and deploy it on a target language (e.g., Japanese) without any additional training data in the target domain. Despite its importance, progress in CLDC has been hampered by limitations in existing benchmarks. This paper introduces MLDoc, a new benchmark dataset designed to address these flaws and provide a more rigorous evaluation framework for multilingual models.

The Problem: Class Imbalance in RCV2

Prior to the introduction of MLDoc, the research community relied heavily on subsets of the Reuters Corpus Volume 2 (RCV2). However, these subsets suffered from two major issues: language scarcity and severe class imbalance. Most studies focused on a narrow set of language pairs, and the distribution of document categories varied wildly between languages.

Class distribution in the original RCV2 subset, showing significant imbalance across languages.

As shown in the table above, some test sets were dominated by a few categories (e.g., over 80% of Spanish documents belonging to a single class). This imbalance created a "prior trap," where models could achieve high accuracy by simply learning the label distribution of the target language rather than capturing meaningful cross-lingual features.

The MLDoc Dataset

To fix these issues, the authors developed MLDoc, a balanced subset of RCV2 covering eight languages: English (EN), German (DE), French (FR), Spanish (ES), Italian (IT), Russian (RU), Chinese (ZH), and Japanese (JA).

The dataset is structured around four top-level categories: Corporate (CCAT), Economics (ECAT), Government/Social (GCAT), and Markets (MCAT). Crucially, every split—including training sets (1k to 10k stories), development sets (1k), and test sets (4k)—is perfectly balanced, with each class representing exactly 25% of the data. This ensures that accuracy metrics reflect the model's actual transfer capabilities.

Methodology

The authors establish baselines using two primary approaches for language-independent representations:

  1. Multilingual Word Embeddings (MultiCCA): Pre-trained word vectors are aligned across languages. A one-layer Convolutional Neural Network (CNN) aggregates these embeddings to make document-level predictions.
  2. Joint Sentence Embeddings: A BiLSTM with max-pooling is trained on parallel corpora (Europarl or United Nations) to map sentences into a shared vector space. A Multi-Layer Perceptron (MLP) then classifies these fixed representations.

Evaluation is conducted under three schemes: Zero-shot (no target data), Targeted (using target dev set for model selection), and Joint (training on a balanced mix of all languages).

Experimental Results

The results on MLDoc provide a much clearer picture of cross-lingual transfer performance.

Comprehensive accuracy results for zero-shot transfer across eight languages using different embedding methods.

Key findings include:

  • Zero-Shot Asymmetry: Using MultiCCA, an English-trained model reaches 81.2% accuracy on German and 74.7% on Chinese. However, the reverse (German to English) drops significantly to 55.9%, suggesting that English is not always the most effective "teacher" language.
  • Embedding Robustness: While word-level models (MultiCCA + CNN) excel on linguistically similar languages, sentence-level embeddings (trained on UN data) prove more robust for distant languages like Chinese (71.9% accuracy).
  • Joint Training Benefits: Even with minimal data (200 examples per language), training on all languages simultaneously often outperforms zero-shot transfer from a single source, indicating that multilingual exposure helps models identify universal features.

Conclusion

MLDoc provides a necessary correction to the evaluation of cross-lingual document classification. By eliminating the "prior trap" of class imbalance and expanding the language scope, it offers a rigorous benchmark for the next generation of multilingual models. Future work will likely involve testing these baselines against more complex transformer-based architectures and extending the dataset to lower-resource languages.

Summary updated

BibTeX
@inproceedings{schwenk2018corpus,
  author = {Holger Schwenk and Xian Li},
  title = {{A Corpus for Multilingual Document Classification in Eight Languages}},
  booktitle = {LREC},
  year = {2018},
}
Figure