TL;DR
This paper investigates whether multilingual models like mBERT, which share a limited number of attention heads across 104 languages, are more "fragile" than their monolingual counterparts when those heads are pruned. The researchers discovered that while mBERT is surprisingly robust for English tasks, its cross-lingual capabilities are much more sensitive to pruning—revealing that the model’s bottom layers act as a critical reservoir for universal linguistic information.
What Problem Does This Paper Address?
Large-scale transformer models like BERT are massive, often containing hundreds of millions of parameters. "BERTology"—the study of these models' inner workings—has shown that many attention heads are redundant and can be pruned (removed) without significantly hurting performance.
However, a unique challenge arises with Multilingual BERT (mBERT). Unlike the standard BERT, mBERT is trained on 104 different languages simultaneously. This creates "capacity dilution": the same fixed number of attention heads must now represent the nuances of dozens of language families. The authors wanted to know: Does this shared capacity make mBERT more susceptible to performance collapses when pruned? Furthermore, do different layers of the model specialize in specific types of languages or tasks?
Methods
The researchers employed a systematic pruning approach to test the model's limits:
- Random Pruning: They removed $k\%$ of attention heads (from 10% to 90%) randomly across the entire network.
- Layer-wise Pruning: They targeted specific sections of the model—pruning all heads in the top, middle, or bottom layers—to identify which parts of the "stack" are most vital.
- Structural Pruning: They compared pruning consecutive layers versus alternating (odd/even) layers.
After pruning, the models were fine-tuned for 10 epochs to see how well they could recover. The study specifically focused on attention heads, leaving the fully connected layers and embeddings untouched to isolate the role of attention capacity.
Datasets
The authors evaluated the models on two primary benchmarks:
- GLUE (General Language Understanding Evaluation): Used for in-language (English) performance. Specifically, they tested on MNLI, QQP, QNLI, and SST-2.
- XNLI (Cross-lingual Natural Language Inference): Used to evaluate how well a model trained on English transfers its knowledge to 10 other languages, including Spanish, Hindi, Arabic, Vietnamese, and Turkish.
Languages were categorized by resource level (High/Medium/Low) and typology (e.g., SVO like English, SOV like Hindi, or Agglutinative like Turkish).
Key Insights and Ideas
- mBERT is surprisingly resilient in English: Despite sharing its "brain" with 103 other languages, mBERT’s robustness to pruning on English tasks is nearly identical to the monolingual BERT. It doesn't seem to suffer from "capacity dilution" when working in its primary language.
- The "Cross-lingual Tax": While robust in English, mBERT is significantly more sensitive when asked to perform cross-lingual transfer. Pruning hits the model harder when it has to translate its English knowledge to a language like Swahili or Urdu.
- Layer Specialization:
- Bottom Layers: These are the "universal" layers. They store cross-lingual information and are crucial for low-resource and typologically distant languages (like Agglutinative languages).
- Top Layers: These are the "specialists." They adapt heavily during fine-tuning to the specific task at hand (e.g., English sentiment analysis).
- Don't Prune in Blocks: Pruning consecutive layers causes a much sharper performance drop than pruning alternating layers. This suggests that adjacent layers provide a form of redundancy or "check-and-balance" for each other.
Key Results
- English Robustness: At 50% random pruning, mBERT only saw a ~2% relative drop in accuracy on GLUE tasks, matching BERT’s performance.
- Cross-lingual Sensitivity: At 50% random pruning on XNLI, the average drop across languages was ~5%. At 90% pruning, the drop widened to 10-15%.
- Typology Trends: Pruning the bottom layers affected languages in a specific order of severity: Agglutinative > VSO > SOV > SVO. This confirms that the bottom layers are most vital for languages that are structurally different from English.
- Fine-tuning Recovery: The authors found that just one epoch of fine-tuning after pruning recovers about 93% of the final achievable performance, suggesting the model re-aligns its remaining heads very quickly.
Limitations and Future Work
The study focuses exclusively on the attention heads. Modern transformer pruning often involves weights in the feed-forward networks (FFNs) or the embedding layer, which were not explored here. Additionally, the analysis is centered on mBERT; it remains to be seen if newer, larger multilingual models like XLM-R follow the same layer-wise importance patterns.
Future work could investigate whether "intelligent" pruning (using importance scores rather than random selection) could preserve cross-lingual transfer even at high compression rates.
Summary updated