Multilingual and cross-lingual document classification: A meta-learning approach

Niels van der Heijden, Helen Yannakoudakis, Pushkar Mishra, Ekaterina Shutova

TL;DR

This paper introduces a meta-learning approach to tackle the challenge of document classification in low-resource languages. By framing classification as a series of "learning to learn" tasks, their method, foProtoMAMLn, achieves state-of-the-art results on several multilingual and cross-lingual benchmarks, demonstrating significant improvements over traditional supervised methods, especially in heterogeneous data settings.

What Problem Does This Paper Address?

The vast majority of the world's languages are "under-resourced" for deep learning, meaning they lack the massive datasets typically required to train high-performing NLP models. Even for widely spoken languages, data can be imbalanced across different domains, and language itself is constantly evolving. While multilingual models and cross-lingual transfer learning have made strides, they often fall short of high-resource language performance or are computationally expensive. This paper aims to bridge this gap by developing a meta-learning framework that enables efficient adaptation to new languages and domains with minimal labeled data.

Methods

The core of this work is a meta-learning approach, specifically an adaptation of MAML (Model-Agnostic Meta-Learning) and Prototypical Networks. The authors propose foProtoMAMLn, which combines the strengths of both.

  • Meta-learning: Instead of training a model for a single task, meta-learning trains a model to learn how to learn new tasks quickly. This involves training on a distribution of diverse tasks (e.g., classifying documents in different languages or domains) so that the model can generalize to unseen tasks with only a few examples (few-shot learning).
  • Prototypical Networks: This metric-based meta-learning approach learns to classify new samples by comparing them to "prototypes" (class centroids) in an embedding space.
  • MAML: This optimization-based meta-learning approach learns an initialization that can be quickly fine-tuned for new tasks.
  • foProtoMAMLn: This novel method builds upon ProtoMAML by:
  • Using a first-order approximation of MAML (foMAML) for computational efficiency.
  • Crucially, applying L2 normalization to the prototypes. This simple yet effective modification stabilizes training, leading to faster convergence and improved performance, especially in challenging settings.

The authors also incorporate standard meta-learning improvements like cosine annealing of the learning rate.

Datasets

The paper evaluates its approach on two primary datasets:

  • MLDoc: A multilingual news story dataset spanning 8 languages (English, Spanish, French, Italian, Russian, Japanese, Chinese), classified into four categories (Corporate/Industrial, Economics, Government/Social, Markets).
  • Amazon Sentiment Polarity: An augmented dataset including product reviews in English, French, German, Japanese, and Chinese, classified as positive or negative sentiment.

Key Insights and Ideas

  • Meta-learning thrives on heterogeneity: The proposed meta-learning approach shows its greatest advantage when the distribution of tasks is diverse and exhibits "domain drift" (differences in language and culture that aren't simple translations). This is where traditional methods struggle.
  • Simple normalization is powerful: The L2 normalization of prototypes in foProtoMAMLn is a key innovation. It significantly stabilizes training and improves convergence speed and final performance, demonstrating that even minor adjustments to existing meta-learning techniques can yield substantial gains.
  • Cross-lingual adaptation is challenging but achievable: The paper highlights that simply aligning languages isn't enough; accounting for cultural differences (domain drift) is crucial for robust cross-lingual performance. Meta-learning, particularly with their proposed method, offers a promising solution.
  • Efficiency matters: The use of a first-order MAML approximation (foMAML) makes the approach computationally feasible for practical applications, especially when compared to methods requiring second-order derivatives.

Key Results

  • State-of-the-art performance: foProtoMAMLn achieves new state-of-the-art results on several languages (German, Italian, Japanese, Russian) in the MLDoc dataset for few-shot joint training.
  • Significant accuracy gains: In cross-lingual adaptation, foProtoMAMLn consistently outperforms non-episodic baselines, with improvements of up to 9.1% on average in some settings.
  • Robustness to low-resource settings: The method demonstrates strong performance even with very limited labeled data, making it suitable for under-resourced languages.
  • Improved stability and speed: The L2 normalization of prototypes leads to more stable validation accuracy curves and faster convergence compared to the original foProtoMAML.

Limitations and Future Work

  • Computational cost: While more efficient than some alternatives, meta-learning still requires more computational resources than standard supervised learning, especially during the meta-training phase.
  • Hyperparameter sensitivity: The paper mentions performing grid search to find optimal hyperparameters, suggesting that performance can be sensitive to these choices.
  • Future work could explore:
    • Investigating the impact of domain drift more deeply.
  • Applying the framework to other NLP tasks beyond document classification.
  • Further optimizing the meta-training process for even greater efficiency.

Summary updated

BibTeX
@inproceedings{heijden2021multilingual,
  author = {Niels van der Heijden and Helen Yannakoudakis and Pushkar Mishra and Ekaterina Shutova},
  title = {{Multilingual and cross-lingual document classification: A meta-learning approach}},
  booktitle = {EACL},
  year = {2021},
}
Figure