Git Product home page Git Product logo

transliteration-ppa's Introduction

Transliteration-PPA

This is the repository for the paper "Breaking the Script Barrier in Multilingual Pre-Trained Language Models with Transliteration-Based Post-Training Alignment", which aims to improve the cross-lingual transfer of multilingual models by better aligning the representations of languages written in different scripts. We utilize a rule-based transliteration system (uroman) to generate Latin-script transliterations of sentences in different scripts, and then use our proposed post-pretraining alignment (PPA) method to fine-tune a pretrained multilingual model on the paired data.

Our method aims to better align cross-script representations at sentence and token levels by leveraging transliteration to a common script. We use Glot500, a mPLM pretrained on over 500 languages, as our source model, and fine-tune it on datasets formed from two different language groups ( Mediterranean-Amharic-Farsi and South+East Asian Languages ). The languages in each group share areal features but are written in different scripts. We evaluate the fine-tuned models on a series of downstream tasks, and show that after PPA, the models consistently outperform the original Glot500 model when trasnferring from different source languages.

Paper on arXiv: https://arxiv.org/abs/2406.19759

Models on Huggingface

Transliteration Data Generation

Given a text file containing sentences in different language-scripts, use the following command to generate a csv file where each row is a pair of sentences (in its original script and in the Latin script).

python utils/preprocess_dataset.py

Fine-tuning on the Paired Data

An example script for fine-tuning the model based on SLURM is provided in sbatch_scripts/sbatch_finetune.sh.

Evaluation

Please refer to Glot500 and SIB200 for downloading the datasets used for evaluation.

Example scripts based on SLURM for running the different evaluations are provided in sbatch_scripts/.

Citation

If you find our models useful for your research, please considering citing:

@article{xhelili2024breaking,
  title={Breaking the Script Barrier in Multilingual Pre-Trained Language Models with Transliteration-Based Post-Training Alignment},
  author={Xhelili, Orgest and Liu, Yihong and Sch{\"u}tze, Hinrich},
  journal={arXiv preprint arXiv:2406.19759},
  year={2024}
}

Acknowledgements

This repository is built on top of TransliCo and Glot500

transliteration-ppa's People

Contributors

orxh avatar yihongl1u avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.