Giter Site home page Giter Site logo

pectvlm's Introduction

Parameter-Efficient Cross-lingual Transfer of Vision and Language Models via Translation-based Alignment

This repo contains the official implementation for our EMNLP 2023 paper Parameter-Efficient Cross-lingual Transfer of Vision and Language Models via Translation-based Alignment

Abstract

framework

Pre-trained vision and language models such as CLIP have witnessed remarkable success in connecting images and texts with a primary focus on English texts. Despite recent efforts to extend CLIP to support other languages, disparities in performance among different languages have been observed due to uneven resource availability. Additionally, current cross-lingual transfer methods of those pre-trained models would consume excessive resources for a large number of languages. Therefore, we propose a new parameter-efficient cross-lingual transfer learning framework that utilizes a translation-based alignment method to mitigate multilingual disparities and explores parameter-efficient fine-tuning methods for parameter-efficient cross-lingual transfer. Extensive experiments on XTD and Multi30K datasets, covering 11 languages under zero-shot, few-shot, and full-dataset learning scenarios, show that our framework significantly reduces the multilingual disparities among languages and improves cross-lingual transfer results, especially in low-resource scenarios, while only keeping and fine-tuning an extremely small number of parameters compared to the full model (e.g., Our framework only requires 0.16% additional parameters of a full-model for each language in the few-shot learning scenario).

Installation

This code is built on Multilingual-CLIP and OpenDelta. You should install them following their instruction. Then run:

pip install -r requirement

Scripts:

We provide example scripts in scripts/ to reproduce the results in our paper

baseline

bash scripts/grid_baseline1/de.sh

routine1/2/3

bash scripts/grid_method1/de.sh

Citation

Please considering citing our paper as below if you find it useful. Thank you!

@article{zhang2023parameter,
  title={Parameter-Efficient Cross-lingual Transfer of Vision and Language Models via Translation-based Alignment},
  author={Zhang, Zhen and Wang, Jialu and Wang, Xin Eric},
  journal={arXiv preprint arXiv:2305.03510},
  year={2023}
}

pectvlm's People

Stargazers

Zhen Zhang avatar Weixiang Yan avatar

Watchers

Zhen Zhang avatar Weixiang Yan 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.