TransMI: A Framework to Create Strong Baselines from Multilingual Pretrained Language Models for Transliterated Data

Yihong Liu, Chunlan Ma, Haotian Ye, Hinrich Schütze
5/16/2024
cs.CL

Official code: cisnlp/TransMI (4 stars, last commit 2024-05-30).

Abstract

Transliterating related languages that use different scripts into a common script is effective for improving crosslingual transfer in downstream tasks. However, this methodology often makes pretraining a model from scratch unavoidable, as transliteration brings about new subwords not covered in existing multilingual pretrained language models (mPLMs). This is undesirable because it requires a large computation budget. A more promising way is to make full use of available mPLMs. To this end, this paper proposes a simple but effective framework: Transliterate-Merge-Initialize (TransMI). TransMI can create strong baselines for data that is transliterated into a common script by exploiting an existing mPLM and its tokenizer without any training. TransMI has three stages: (a) transliterate the vocabulary of an mPLM into a common script; (b) merge the new vocabulary with the original vocabulary; and (c) initialize the embeddings of the new subwords. We apply TransMI to three strong recent mPLMs. Our experiments demonstrate that TransMI not only preserves the mPLM's ability to handle non-transliterated data, but also enables it to effectively process transliterated data, thereby facilitating crosslingual transfer across scripts. The results show consistent improvements of 3% to 34% for different mPLMs and tasks. We make our code and models publicly available at \url{https://github.com/cisnlp/TransMI}.

View on arXivView PDF

Code Implementations(1)

cisnlp/TransMIOfficial100%

TransMI: A Framework to Create Strong Baselines from Multilingual Pretrained Language Models for Transliterated Data

40Shell, PythonMay 13, 20242 years ago
crosslingual-transfermultilingualitytokenizer-modificationtransliteration

Cite this paper

@article{liu2024transmi,
  title  = {TransMI: A Framework to Create Strong Baselines from Multilingual Pretrained Language Models for Transliterated Data},
  author = {Yihong Liu and Chunlan Ma and Haotian Ye and Hinrich Schütze},
  year   = {2024},
  eprint = {2405.09913},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2405.09913v2}
}

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/2405.09913.svg)](https://codeofpaper.com/paper/2405.09913)

Discussion