TL;DR
This paper investigates how the choice of calibration language impacts the pruning of multilingual Large Language Models (LLMs). They found that while calibrating on the target language is best for language modeling metrics like perplexity, it doesn't always translate to better performance on downstream tasks. This suggests current pruning methods might overemphasize language-specific features at the expense of crucial language-agnostic ones needed for reasoning.
What Problem Does This Paper Address?
Large Language Models (LLMs) are often over-parameterized, leading to significant computational and memory demands. Pruning is a popular technique to compress these models by removing redundant weights. However, most research on LLM pruning has focused on English, despite the widespread use of multilingual LLMs across many languages. This raises a critical question: when pruning a multilingual LLM for a specific target language, should we use calibration data in that target language or English? The authors aim to systematically explore this question, investigating how different calibration languages affect pruning outcomes and the underlying model representations.
Methods
The authors conducted a comprehensive empirical study comparing various calibration languages for pruning multilingual LLMs. They used two state-of-the-art post-training pruning methods: SparseGPT (which uses local second-order derivative information) and Wanda (a simpler heuristic based on weight magnitude and activation norms). They pruned models to 50% unstructured sparsity and evaluated performance using surface-level metrics like perplexity (PPL), pruning error, and Signal-to-Noise Ratio (SNR), as well as downstream task performance across multiple languages. To understand the underlying mechanisms, they performed internal representation analysis at three levels: feature subspace (using LSAR to distinguish language-specific and agnostic features), pruning mask similarity (calculating Intersection over Union of pruning masks), and neuron-level activation frequency (using Language Activation Probability Entropy - LAPE).
Datasets
The study utilized the following datasets:
- mC4: Used for creating calibration sets for seven different languages (Arabic, German, English, Spanish, Russian, Swahili, and Chinese).
- ARC (AI2 Reasoning Challenge): Used for evaluating reasoning and knowledge capabilities.
- Belebele: A multilingual reading comprehension dataset across 122 languages, used for evaluating performance on semantically identical samples across languages.
- MKQA (Multilingual Knowledge Questions and Answers): Used for evaluating open-domain question answering based on internal knowledge.
- MMLU (Massive Multitask Language Understanding): Used for evaluating a model's ability to handle diverse subjects and reasoning.
- Translated Datasets from Okapi: These are ChatGPT-generated translations of ARC, HellaSwag, and MMLU, used to complement evaluations in languages where original datasets were not available.
Key Insights and Ideas
- Target language calibration is good for perplexity, but not a silver bullet for downstream tasks: While calibrating on the target language consistently leads to lower perplexity (indicating better language modeling fluency), it doesn't guarantee optimal performance on downstream tasks.
- Language-agnostic features are crucial for reasoning: The study suggests that current pruning methods are better at preserving language-specific features (like fluency) than language-agnostic features (like understanding and reasoning), which are essential for complex tasks.
- Pruning can shift language performance rankings: Pruning can alter which languages a model performs best or worst on, even reversing the original ranking observed in baseline models.
- Pruning mask similarity varies across model components: While attention query, key, and value in early layers show high similarity across calibration languages, attention output projections are more variable, suggesting challenges in consistently identifying essential neurons for these components.
- FFN neurons are differentially affected: Pruning appears to have a lower impact on language-agnostic neurons (those firing across all languages) and higher impact on language-specific neurons, particularly those with low activation probabilities.
Key Results
- Perplexity, SNR, and Pruning Error: Calibrating on the target language generally yielded the lowest perplexity and pruning error, and highest SNR, indicating better preservation of language modeling capabilities. However, the optimal choice often depended on the specific evaluation language.
- Downstream Task Performance: For tasks requiring reasoning and knowledge retrieval, calibrating on the target language did not consistently yield the best results. In some cases, calibrating with a different language, even an outlier, led to better performance. For example, on the Belebele benchmark, performance varied significantly based on the calibration language.
- Model Size Impact: While larger models generally showed better performance after pruning, the patterns observed in smaller models didn't always hold true for their larger counterparts.
- Quantization: Similar trends were observed for quantization (using GPTQ), where target language calibration provided reasonable, but not consistently optimal, downstream performance.
Limitations and Future Work
- Limited Model and Language Scope: The experiments were predominantly conducted on smaller versions of Llama-3 and Aya-23, and focused on languages with sufficient support. The authors acknowledge that results might differ for other models, techniques, or underrepresented languages.
- Unclear Benefit of Outlier/Similar Languages: While some language combinations for calibration showed promise, there was no clear pattern identifying which specific combinations were most effective. Calibrating with an outlier or linguistically similar language did not consistently provide an advantage.
- Future Work: The authors suggest the need for more effective pruning strategies that can preserve nuanced language-agnostic information, identify important neurons with less variance, and maintain language-specific activation patterns beyond just feature magnitudes. Further research could explore more diverse calibration strategies and investigate the impact on a wider range of languages and model architectures.
Summary updated