Bilingual Adaptation of Monolingual Foundation Models

Gurpreet Gosal, Yishi Xu, Gokul Ramakrishnan, Rituraj Joshi, Avraham Sheinin +17 more
7/13/2024
cs.CLcs.AI

No confident code implementation found for this paper.

Abstract

We present an efficient method for adapting a monolingual Large Language Model (LLM) to another language, addressing challenges of catastrophic forgetting and tokenizer limitations. We focus this study on adapting Llama 2 to Arabic. Our two-stage approach begins with expanding the vocabulary and training only the embeddings matrix, followed by full model continual pre-training on a bilingual corpus. By continually pre-training on a mix of Arabic and English corpora, the model retains its proficiency in English while acquiring capabilities in Arabic. Our approach results in significant improvements in Arabic and slight enhancements in English, demonstrating cost-effective cross-lingual transfer. We perform ablations on embedding initialization techniques, data mix ratios, and learning rates and release a detailed training recipe. To demonstrate generalizability of this approach we also adapted Llama 3 8B to Arabic and Llama 2 13B to Hindi.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{gosal2024bilingual,
  title  = {Bilingual Adaptation of Monolingual Foundation Models},
  author = {Gurpreet Gosal and Yishi Xu and Gokul Ramakrishnan and Rituraj Joshi and Avraham Sheinin and Zhiming and Chen and Biswajit Mishra and Natalia Vassilieva and Joel Hestness and Neha Sengupta and Sunil Kumar Sahu and Bokang Jia and Onkar Pandit and Satheesh Katipomu and Samta Kamboj and Samujjwal Ghosh and Rahul Pal and Parvez Mullah and Soundar Doraiswamy and Mohamed El Karim Chami and Preslav Nakov},
  year   = {2024},
  eprint = {2407.12869},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.12869v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2407.12869.svg)](https://codeofpaper.com/paper/2407.12869)

Discussion