M-Wanda: Improving One-Shot Pruning for Multilingual LLMs

Rochelle Choenni, Ivan Titov

TL;DR

Large Language Models (LLMs) are powerful but computationally expensive. While one-shot pruning methods like Wanda can shrink LLMs, they often degrade performance on non-English languages. This paper introduces M-Wanda, a novel pruning technique that explicitly models cross-lingual activation patterns to preserve multilingual capabilities, achieving better performance with minimal additional cost.

What Problem Does This Paper Address?

The increasing size of LLMs has led to impressive multilingual capabilities, but also significant computational and environmental costs. One-shot pruning methods offer a way to reduce model size without extensive retraining. However, existing pruning techniques, including the state-of-the-art Wanda, are primarily evaluated on English performance. This focus overlooks the critical issue of multilingual performance degradation, especially in underrepresented languages. The paper highlights that even moderate sparsity levels (e.g., 50%) can substantially harm performance across multiple languages, suggesting that global importance scoring, as used in Wanda, fails to account for language-specific neuron importance. The core problem is the lack of pruning methods specifically designed to retain multilingual performance.

Methods

The paper proposes M-Wanda, a multilingual extension of the Wanda pruning method. M-Wanda enhances the pruning criterion in three key ways:

  1. Cross-lingual Activation Variance: It incorporates the variance of neuron activations across different languages. This prioritizes neurons that show high variability, suggesting they are important for specific languages, thus helping to retain language-specific signals.
  2. Activation Probability: It uses a term to discourage the retention of high-variance neurons that rarely activate, filtering out noisy or spurious features.
  3. Correlation Weighted Layerwise (CWL) Sparsity: Instead of uniform sparsity, M-Wanda dynamically adjusts sparsity ratios across layers. CWL uses Pearson correlation coefficients to measure activation similarity both within and between languages. Layers with high inter-language similarity (indicating cross-lingual sharing) are pruned less aggressively. This is combined with intra-language correlation scores to ensure representation stability.

These enhancements are designed to balance the preservation of shared neurons (for generalization) and specialized neurons (for language-specific capabilities) at minimal computational overhead.

Datasets

  • Calibration Data: Multilingual C4 (MC4) dataset, specifically 128 random samples of 2048 tokens. For calibration, 16 samples from English and 8 from all other languages were used.
  • Evaluation Data:
    • Perplexity: Flores-101 (dev+devtest) dataset and Wikipedia data.
  • Downstream Tasks (Zero-shot): Xstorycloze, Xcopa, Xwinograd, Lambada, XNLI, and PAWS-X.
  • XL-Sum dataset: Used for additional evaluation on high-quality articles.
  • Unseen Languages: A set of 15 languages not included in the calibration set was used to test generalization.

Key Insights and Ideas

  • 50% Sparsity is Not Always Safe: The common practice of applying 50% sparsity in multilingual settings can significantly degrade performance, especially in underrepresented languages.
  • Global Importance is Insufficient: Pruning methods that rely solely on global neuron importance fail to capture language-specific needs, leading to the removal of crucial weights for certain languages.
  • Language-Specific Neurons Matter: Explicitly modeling cross-lingual activation variance and similarity is crucial for preserving multilingual capabilities.
  • Layerwise Sparsity is Key: Dynamically adjusting sparsity across layers based on cross-lingual importance (as done by CWL) is more effective than uniform pruning.
  • M-Wanda Generalizes: The proposed method shows improvements not only on calibration languages but also on unseen languages, indicating robust multilingual adaptation.

Key Results

  • Perplexity Reduction: M-Wanda consistently reduces average perplexity across all tested LLMs and languages, with improvements of up to 52% in some cases.
  • Downstream Task Improvement: M-Wanda leads to substantial improvements in accuracy across six downstream tasks, outperforming Wanda.
  • Robustness to Sparsity: M-Wanda's effectiveness increases with higher sparsity ratios, showing significant gains where Wanda struggles the most.
  • Language-Specific Gains: Languages typologically different from English often see larger absolute gains from M-Wanda.
  • Extendability: The core ideas of M-Wanda (cross-lingual variance and activation probability) can be integrated with other pruning methods like RIA, demonstrating their general utility.

Limitations and Future Work

  • Hyperparameter Tuning: M-Wanda requires tuning of hyperparameters (λ, ε, γ), unlike the original Wanda. Future work could explore automatic hyperparameter adjustment.
  • Unstructured Pruning: The current work focuses on unstructured pruning. Extending M-Wanda to structured pruning settings (e.g., N:M pruning) is a promising direction for practical inference speedups.
  • Calibration Data Sensitivity: While M-Wanda is robust to random sampling of calibration data, further investigation into optimal calibration set selection (beyond just size) could be beneficial.
  • English-Centric Evaluation: The paper emphasizes the need to move beyond English-centric evaluation for pruning methods.

Summary updated

BibTeX
@inproceedings{choenni2025m,
  author = {Rochelle Choenni and Ivan Titov},
  title = {{M-Wanda: Improving One-Shot Pruning for Multilingual LLMs}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2025},
}
Figure