MindMerger: Efficiently Boosting LLM Reasoning in non-English Languages

Zixian Huang, Wenhao Zhu, Gong Cheng, Lei Li, Fei Yuan

Introduction

Large Language Models (LLMs) like LLaMA and Mistral exhibit impressive reasoning skills in English. However, a significant performance gap emerges when these models are prompted in non-English languages, particularly low-resource ones like Bengali, Thai, or Swahili.

Example of the reasoning gap between English and Chinese queries.

Currently, researchers attempt to bridge this gap using two primary methods:

  1. Relearning: Fine-tuning the LLM on translated datasets so it "relearns" reasoning in a new language. This approach is computationally expensive and risks "catastrophic forgetting" of the model's original capabilities.
  2. Replacement: Translating non-English queries into English before feeding them to the LLM. This relies heavily on external translation quality; if nuances are lost, the reasoning chain breaks.

Both methods overlook a crucial detail: LLMs already possess internal multilingual understanding and universal reasoning logic. Instead of replacing the LLM's "mind," the MindMerger framework proposes supplementing its language understanding with an external boost. By merging LLMs with external multilingual encoders, MindMerger achieves significant performance gains—up to 8.0% in low-resource languages—without updating the underlying LLM's parameters.

The MindMerger Architecture and Training

MindMerger introduces a plug-and-play architecture consisting of a frozen multilingual encoder (e.g., NLLB or mT5), a small trainable mapping layer (MLP), and a frozen LLM.

The core innovation is its Augmentation Strategy. Rather than replacing the input text entirely, MindMerger feeds the LLM a concatenated sequence: the external encoder's representation combined with the LLM's own embedding of the query.

MindMerger model structure and its two-stage training scheme.

To effectively align these representations, MindMerger employs a Two-Stage Training Scheme:

  • Stage 1: Mapping. The model is trained on general bilingual translation pairs (e.g., Lego-MT). The goal is to teach the mapping layer how to project the external encoder's representations into a space the LLM can natively understand.
  • Stage 2: Augmentation. The model is trained on task-specific data, such as MetaMathQA and MultiNLI. Here, the system learns to collaboratively use both the external "boost" and its internal understanding to solve complex reasoning problems.

Crucially, the LLM and the multilingual encoder remain completely frozen throughout both stages. Only the lightweight mapping layer is updated, making the method highly parameter-efficient.

Key Insights

  • Reasoning is Universal, Language is the Bottleneck: The framework reinforces the idea that reasoning logic (e.g., mathematical operations) is language-agnostic. The failure of LLMs in non-English tasks is primarily a "front-end" language understanding issue, not a "back-end" logic deficit.
  • "Soft" Outperforms "Hard" Prompting: Feeding the LLM raw hidden states from an encoder (soft prompting) outperforms feeding it translated text (hard prompting). This avoids the information loss and hallucinations common in discrete text translation.
  • The Power of Augmentation: Keeping the LLM's original embeddings of the non-English query actually improves performance. The LLM's native "intuition" about the language provides a foundation that the external encoder builds upon.
  • Representation Alignment: T-SNE visualizations in the study show that before the mapping stage, different languages occupy isolated clusters in the LLM's space. After MindMerger's mapping, these clusters overlap with English, effectively "translating" the internal representations into a space where the LLM's reasoning is most potent.

Performance and Results

MindMerger was evaluated across diverse benchmarks, including MGSM and MSVAMP (math word problems), X-CSQA (commonsense reasoning), and XNLI (natural language inference).

  • Superior Accuracy: On the MGSM math dataset, MindMerger improved average accuracy by 6.7% across all languages and 8.0% for low-resource languages compared to the best baselines.
  • Outperforming Translation: MindMerger consistently beat "Translate-to-English" strategies by at least 6.6%, proving that internal representation merging is more robust than external text translation.
  • Flexibility and Efficiency: The method works across various LLM families and different encoder architectures. Because it only trains a small MLP, it is significantly faster and requires less memory than full-parameter fine-tuning.

Limitations and Future Work

The authors acknowledge that the effective boundaries of this mechanism are still being explored. For instance, if the external multilingual model is significantly weaker than the LLM, the "boost" might be negligible. Additionally, while this research focuses heavily on math and logic, future work could explore whether MindMerger can boost other specialized skills, such as multilingual code generation or creative writing, where reasoning is less structured.

Summary updated

BibTeX
@inproceedings{huang2024mindmerger,
  author = {Zixian Huang and Wenhao Zhu and Gong Cheng and Lei Li and Fei Yuan},
  title = {{MindMerger: Efficiently Boosting LLM Reasoning in non-English Languages}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=Oq32ylAOu2},
}
Figure