Exploring Pretraining via Active Forgetting for Improving Cross Lingual Transfer for Decoder Language Models

Divyanshu Aggarwal, Ashutosh Sathe, Sunayana SitaramarXiv 2024 · DOI

Abstract

Large Language Models (LLMs) demonstrate remarkable reasoning capabilities but often suffer from significant performance degradation when applied to non-English languages. While vocabulary expansion is a common remedy, it frequently introduces a trade-off where gains in target languages come at the expense of performance in the original training languages—a phenomenon often linked to the "curse of multilinguality." This paper presents Active Forgetting (AFA), a novel pretraining strategy that periodically resets token embeddings to random values. This approach prevents the model from over-relying on specific word-to-vector mappings, forcing the internal Transformer layers to develop more robust, language-agnostic structural representations. Our results show that AFA-trained models exhibit superior plasticity and achieve better cross-lingual transfer across a variety of benchmarks, outperforming standard adaptation baselines without sacrificing performance on pretrained languages.

Introduction

As LLMs like GPT-4 push the boundaries of artificial intelligence, a persistent challenge remains: maintaining high performance across the diverse linguistic landscape. Most state-of-the-art models are predominantly trained on English data, leading to a sharp drop in efficacy for other languages. The standard approach to bridge this gap is "vocabulary expansion," where a pretrained model is adapted to a new language by adding new tokens and training their corresponding embeddings.

However, this method faces two primary hurdles. First, the "Curse of Multilinguality" suggests that as more languages are added, the per-language performance often decreases due to capacity constraints. Second, standard adaptation (Baseline Adapted or BA) typically improves performance in the new language but significantly degrades it in the original languages. Researchers from Microsoft Research India investigated whether a more "plastic" model—one capable of transferring core reasoning abilities across linguistic structures—could be developed during the initial pretraining phase.

Methodology: Active Forgetting (AFA)

The core proposal of this work is Active Forgetting (AFA). In a standard Transformer architecture, token embeddings serve as the entry point, mapping discrete tokens to continuous numerical vectors. In the AFA framework, these token embeddings are reset to random values every $k$ steps (e.g., every 10,000 steps) during the pretraining phase.

The process of adapting a base model through vocabulary expansion and instruction finetuning.

By periodically "deleting" the learned word-to-vector mappings, the model is prevented from settling into a specific vocabulary too early. This forces the hidden Transformer layers (the "stack") to learn deeper, more generalized semantic and structural patterns that are independent of any specific token set. This process acts as a powerful regularizer, ensuring that the model remains flexible and capable of adapting to new vocabularies later in its lifecycle.

Experimental Setup

The study utilized Wikipedia dumps across 26 languages, partitioned into 12 languages for initial pretraining and 14 for subsequent adaptation. The researchers compared three distinct model configurations:

  1. Baseline: A standard model pretrained on the initial 12 languages.
  2. Baseline Adapted (BA): The Baseline model adapted to the 14 new languages using standard vocabulary expansion.
  3. Active Forgetting Adapted (AFA): A model pretrained with the AFA strategy and then adapted to the same 14 languages.

Performance was evaluated using a comprehensive suite of seven multilingual benchmarks, including Belebele (reading comprehension), MLQA & XQuAD (question answering), XCOPA (causal reasoning), XLSum (summarization), and FLORES-200 (machine translation).

Results and Analysis

The experimental results highlight the effectiveness of AFA in promoting cross-lingual transfer. AFA models outperformed both the Baseline and BA models on 6 out of 7 benchmarks. Notably, AFA successfully addressed the performance trade-off inherent in standard adaptation.

Performance comparison of Baseline, BA, and AFA models across various benchmarks and language categories.

Key Insights:

  • Forced Plasticity: By preventing early convergence on specific embeddings, AFA keeps the hidden layers "plastic." This results in higher-quality internal representations characterized by increased isotropy—where word vectors are distributed more uniformly in the embedding space, enhancing semantic representation.
  • Universal Improvement: Unlike BA, which often hurts performance in pretrained languages to help adapted ones, AFA improved performance across all categories: pretrained, adapted, and even completely unseen "other" languages.
  • Scalability: The benefits of AFA were consistent across model sizes ranging from 400M to 2.8B parameters, suggesting that the technique scales effectively with model capacity.

Discussion and Limitations

While Active Forgetting presents a promising path toward truly multilingual LLMs, it currently requires implementation during the initial pretraining phase. This means it cannot be easily applied to existing, large-scale open-source models like Llama-3 without significant computational investment. Furthermore, while the 10-billion-token scale used in this study is substantial, further research is required to determine if these gains persist at the "frontier" scale of trillions of tokens.

Future work may explore "simulated" active forgetting—resetting embeddings at intermediate checkpoints of existing models—to see if plasticity can be recovered post-pretraining. This could unlock more efficient ways to adapt the current generation of massive language models to the world's diverse languages.

Summary updated

BibTeX
@misc{aggarwal2024exploring,
  author = {Divyanshu Aggarwal and Ashutosh Sathe and Sunayana Sitaram},
  title = {{Exploring Pretraining via Active Forgetting for Improving Cross Lingual Transfer for Decoder Language Models}},
  year = {2024},
  eprint = {2410.16168},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.16168},
}
Figure