Improving Language Plasticity via Pretraining with Active Forgetting

Yihong Chen, Kelly Marchisio, Roberta Raileanu, David Ifeoluwa Adelani, Pontus Stenetorp, Sebastian Riedel, Mikel Artetxe

TL;DR

By periodically "hitting the reset button" on a model's embedding layer during pretraining, researchers have developed a way to make language models significantly more adaptable. This "active forgetting" mechanism forces the model to prioritize high-level reasoning over rote memorization, allowing it to learn new, distant languages with up to 60% better performance in low-data scenarios.

What Problem Does This Paper Address?

Pretrained Language Models (PLMs) like RoBERTa or GPT are incredibly powerful, but they are often rigid. Adapting a model trained primarily on English to a new language—especially one with a different script or structure like Hindi or Arabic—usually requires massive amounts of data and compute.

The authors identify a specific bottleneck: the embedding layer. Standard pretraining allows the transformer "body" to rely on shortcuts or specific lexical mappings in the embeddings. When researchers try to rewire the model for a new language by replacing those embeddings, the transformer body struggles to cooperate with the new input. It never learned how to handle a "lingual space shift" during its initial training.

Methods

To solve this, the authors introduce a deceptively simple technique called Active Forgetting.

The Active Forgetting pretraining pipeline, showing periodic resets of the embedding layer.

During the pretraining phase on English data, the model does not just train linearly. Instead, it undergoes the following process:

  1. Periodic Resets: Every $K$ updates (e.g., every 1,000 steps), the entire token embedding layer and its associated optimizer states are reset to random values.
  2. Episodic Learning: This creates a "sawtooth" pattern in the loss curve. Every reset causes a spike in error, forcing the transformer body to re-learn how to extract meaning from a brand-new set of random tokens.
  3. Freezing the Body: When it comes time to adapt to a new language, the transformer body is frozen, and only a new embedding layer is trained on the target language.

This approach acts as a form of meta-learning. By repeatedly losing its vocabulary, the transformer body is forced to develop more abstract, language-agnostic reasoning capabilities. It essentially becomes a universal plug that can quickly snap onto any new language's embedding layer.

Datasets

  • Pretraining: The models were pretrained on the English subset of the CC100 dataset.
  • Adaptation: To simulate real-world constraints, the authors used a "low-data regime" consisting of only 5 million tokens per target language from CC100.
  • Evaluation: The rewired models were tested on three major cross-lingual benchmarks:
  • XNLI: Natural Language Inference (15 languages).
  • MLQA & XQuAD: Question Answering benchmarks.
  • Target languages included diverse examples like Arabic, Hindi, Turkish, Vietnamese, and Swahili.

Key Insights and Ideas

Performance gains across languages on XNLI and MLQA, highlighting the disproportionate benefit for languages distant from English.
  • Reasoning vs. Memorization: Standard models memorize the relationship between specific English tokens and the transformer body. Active forgetting breaks this dependency, forcing the body to learn how to learn from embeddings rather than what the specific English embeddings are.
  • The Plasticity Advantage: The authors define "plasticity" as the ability to adapt to shifts in language usage. Models trained with forgetting show much higher plasticity, meaning they don't just reach a higher final accuracy; they get there much faster.
  • Distant Languages Benefit Most: The performance gap between standard models and forgetting models is widest for languages that are linguistically distant from English (e.g., Thai or Arabic). For closely related languages like German, the benefits are more modest because the standard model's English-centric shortcuts still somewhat apply.

Key Results

  • Massive Accuracy Gains: In low-data settings (5M tokens), forgetting-based PLMs outperformed standard models by an average of +21.2% on XNLI, +33.8% on MLQA, and a staggering +60.9% on XQuAD.
  • Rapid Convergence: On the XNLI task, forgetting models reached an accuracy of 57.8 in just 5,000 steps, while standard models were still stuck at random guessing levels (~37.2).
  • Efficiency: On XQuAD, the forgetting models achieved 92% of their peak performance within the first 4% of the adaptation process.

Limitations and Future Work

  • Simplistic Forgetting: The authors used the most basic form of forgetting—complete random resets. They suggest that more sophisticated methods, such as gradually injecting noise or partial resets, might yield even better results.
  • Model Architecture: This study focused on Masked Language Models (MLM) like RoBERTa. Whether this plasticity translates as effectively to massive auto-regressive models (like the Llama or GPT families) remains an open question for future research.
  • Theoretical Grounding: While the empirical results are clear, the authors note that more work is needed to understand the loss landscape of these models—specifically, whether active forgetting leads the model to flatter minima that generalize better.

Summary updated

BibTeX
@inproceedings{chen2023improving,
  author = {Yihong Chen and Kelly Marchisio and Roberta Raileanu and David Ifeoluwa Adelani and Pontus Stenetorp and Sebastian Riedel and Mikel Artetxe},
  title = {{Improving Language Plasticity via Pretraining with Active Forgetting}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=jvEbQBxd8X},
}
Figure