Skip to main content
QUICK REVIEW

[Paper Review] Extrapolating Large Language Models to Non-English by Aligning Languages

Wenhao Zhu, Yunzhe Lv|arXiv (Cornell University)|Aug 9, 2023
Topic ModelingComputer Science7 citations
TL;DR

This paper proposes cross-lingual instruction-tuning (CoIT) and multilingual instruction-tuning (MuIT) to enhance non-English capabilities of LLMs like LLaMA-7B by aligning semantic spaces across languages using translation and multilingual instruction data. It achieves a 27.83% average improvement over English-tuned Alpaca-7B on non-English question-answering and 18.89% gain on translation tasks, with m-LLaMA showing strong multilingual instruction-following and aligned semantic representations in middle layers.

ABSTRACT

Existing large language models show disparate capability across different languages, due to the imbalance in the training data. Their performances on English tasks are often stronger than on tasks of other languages. In this paper, we empower pre-trained LLMs on non-English languages by building semantic alignment across languages. We start from targeting individual languages by performing cross-lingual instruction-tuning (CoIT) on LLaMA, i.e. tuning it with translation task data and cross-lingual general task data to obtain cross-lingual models (x-LLaMAs), and formulate underlying scaling laws to investigate the advantages of using scalable translation data. Then we perform multilingual instruction-tuning (MuIT) with mixed resources to build multilingual m-LLaMA. We also illustrate how we leverage the scaling laws to optimize data allocation in a resource-constrained setting. Experiment results on cross-lingual benchmarks XQUAD and MLQA show that x-LLaMAs surpass the English instruction-tuned counterpart (Alpaca) by an average of 27.83% across six non-English languages. Evaluation results on translation dataset Flores-101 show that x-LLaMAs outperform previous LLaMA-based models by an average of 18.89%. Encouragingly, m-LLaMA achieves comparable performance to x-LLaMAs on individual languages and demonstrates the ability to follow multilingual instructions. Further analysis on response content and representation space reveals the alignment of the multilingual semantic space within the middle layers of m-LLaMA.

Motivation & Objective

  • To address the imbalance in LLM performance across languages, especially for non-English languages with little alphabetic similarity to English.
  • To improve zero-shot and few-shot non-English capabilities of pre-trained LLMs without extensive continued pre-training.
  • To develop a scalable, data-efficient method for extrapolating English language model capabilities to multiple low-resource languages.
  • To formulate scaling laws for cross-lingual instruction-tuning and optimize data allocation under resource constraints.
  • To demonstrate that multilingual instruction-tuning can produce models capable of following multilingual instructions and generating aligned multilingual responses.

Proposed method

  • Propose cross-lingual instruction-tuning (CoIT) by jointly fine-tuning LLaMA-7B on translation tasks and cross-lingual general tasks to build language-specific x-LLaMAs.
  • Perform multilingual instruction-tuning (MuIT) using mixed multilingual instruction data to train a single m-LLaMA model capable of handling multiple languages.
  • Formulate scaling laws for CoIT based on data volume and model performance to guide optimal data allocation in resource-constrained settings.
  • Use non-linear programming to optimize data allocation across languages, maximizing averaged multilingual performance under a fixed data budget.
  • Analyze representation space and response consistency to verify semantic alignment in multilingual models, particularly in middle layers of m-LLaMA.
  • Avoid vocabulary extension for non-English languages to reduce complexity, relying instead on byte-level tokenization and cross-lingual alignment.

Experimental results

Research questions

  • RQ1Can joint instruction-tuning on translation and general cross-lingual tasks significantly improve LLMs' performance on non-English languages?
  • RQ2How does the performance of language-specific x-LLaMAs compare to English-tuned models like Alpaca on non-English benchmarks?
  • RQ3Can a single multilingual model (m-LLaMA) achieve performance comparable to specialized x-LLaMAs while supporting multilingual instruction following?
  • RQ4To what extent is the semantic space of m-LLaMA aligned across languages, particularly in intermediate layers?
  • RQ5Can formulated scaling laws guide efficient data allocation in multilingual instruction-tuning under limited data budgets?

Key findings

  • x-LLaMAs outperform Alpaca-7B by an average of 27.83% across six non-English languages on the XQUAD and MLQA benchmarks.
  • x-LLaMAs achieve an average 18.89% improvement over prior LLaMA-based models on the Flores-101 translation benchmark.
  • m-LLaMA achieves performance comparable to strong x-LLaMAs on individual languages and demonstrates the ability to follow multilingual instructions.
  • Analysis reveals that the multilingual semantic space in m-LLaMA becomes aligned in the middle layers, indicating effective cross-lingual representation learning.
  • Optimized data allocation based on scaling laws yields significantly higher multilingual performance than uniform allocation, especially at higher data budgets (e.g., 1.2M tokens).
  • Using parallel (translation) data is far more efficient than monolingual continued pre-training for achieving semantic alignment, as shown by comparative scaling laws.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.