TL;DR
Large language models (LLMs) struggle with balanced multilingual performance due to English-centric training. This paper introduces CC-Tuning, a novel method that explicitly connects LLM's internal "latent" representations between English and other languages during fine-tuning, significantly improving multilingual capabilities without relying solely on data augmentation.
What Problem Does This Paper Address?
Modern LLMs, despite their impressive capabilities, often exhibit a "curse of multilinguality." This means their performance is uneven across languages, heavily favoring English due to the overwhelming presence of English data in their training corpora. Existing methods to improve multilingual performance, like joint supervised fine-tuning (SFT) and data augmentation (e.g., translation), often introduce cross-lingual alignment implicitly. However, these approaches can be limited and overlook the potential for deeper, "latent-level" interactions within the model's internal workings. The paper aims to bridge this gap by proposing a method that explicitly fosters these latent cross-lingual connections.
Methods
CC-Tuning introduces a two-pronged approach for improving multilingual LLMs:
- Training Stage: Latent Cross-Lingual Connection:
- During fine-tuning, CC-Tuning leverages parallel bilingual data (e.g., an English sentence and its non-English translation).
- It fuses the feed-forward activations (internal computations within the model's layers) from both the English and non-English inputs.
- A key innovation is the Decision Maker, a trainable linear layer that adaptively selects the most beneficial English feed-forward activations to integrate into the non-English input's processing. This prevents noise and focuses on useful cross-lingual signals.
- This fusion happens just before the model starts generating its response, ensuring a smooth integration into the existing SFT process without adding new loss functions.
- Inference Stage: Monolingual Simulation:
- To make the method practical for real-world use where parallel data might not be available, CC-Tuning uses a Transform Matrix.
- This matrix is trained offline using a small set of parallel data to learn how to map non-English feed-forward activations to their English counterparts.
- During inference, this learned matrix simulates the cross-lingual connection, allowing the model to benefit from English knowledge even when only processing non-English input. This avoids the need for real-time translation or parallel data.
Datasets
The paper uses a combination of existing datasets for training and evaluation:
- Training Corpus: A multilingual instruction dataset comprising over 60 languages, derived from the Aya dataset.
- Evaluation Datasets:
- Multilingual Understanding: XNLI (natural language inference), XStoryCloze (story understanding), and MMMLU (multilingual version of MMLU for general knowledge).
- Multilingual Generation: MKQA (open-domain question answering), XQuAD (question answering), and XLSum (abstractive summarization). These datasets cover a total of 22 languages.
Key Insights and Ideas
- Latent-level interactions are powerful: The core idea is that directly manipulating and fusing internal model states (activations) between languages is more effective than just augmenting data.
- Feed-forward activations are key: The paper highlights that feed-forward activations, rather than self-attention or entire blocks, contribute the most to cross-lingual connections. This aligns with research suggesting FFNs store factual knowledge.
- A trainable "Decision Maker" is crucial: Simply averaging or randomly selecting activations is less effective than using a learned mechanism to identify the most beneficial cross-lingual signals.
- Inference without parallel data is feasible: The Transform Matrix effectively bridges the gap, allowing the benefits of cross-lingual connection to be realized during inference even with monolingual inputs.
- English as a "bridge" language: The method leverages English's rich representation to enhance performance in other languages, especially in "X-to-English" scenarios.
Key Results
- Significant performance gains: CC-Tuning consistently outperforms vanilla SFT across various multilingual understanding and generation tasks, often by a notable margin. For example, on XNLI, CC-Tuning achieves 38.42% accuracy compared to vanilla ML-SFT's 31.88% on LLaMA-3.1-8B.
- Outperforms data augmentation: Even when trained solely on the original dataset (N), CC-Tuning surpasses baselines that use larger, augmented datasets (+EN, +MT, +SDRRL).
- Efficient inference: The Transform Matrix adds only a small overhead (approx. 1.1x) to inference time compared to vanilla inference.
- Practicality: The Transform Matrix is relatively easy to learn, requiring only about 1000 parallel pairs.
- Improved representation clustering: t-SNE visualizations show that CC-Tuning leads to more compact and distinct clusters of multilingual representations, indicating better cross-lingual alignment.
Limitations and Future Work
- Limited exploration of latent interactions: The authors acknowledge that there's more to explore regarding latent cross-lingual interactions beyond the current approach.
- Model size generalization: Experiments were conducted on LLaMA-3.1-8B and Qwen2.5-7B. Evaluating CC-Tuning on a wider range of LLM sizes could improve generalizability.
- Computational constraints: Comparisons with larger models were not feasible due to computational limitations.
- Future work: The paper suggests further investigation into latent cross-lingual interactions and broader evaluation across more LLMs and model sizes.
Summary updated