Skip to content

This repository provides the code and guidance for reproducing the results in our paper "A Joint Learning Model with Variational Interaction for Multilingual Program Translation".

License

Notifications You must be signed in to change notification settings

duyali2000/VIM-PT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The overall framework of VIM-PT.

This repository provides the code and guidance for reproducing the results in our paper "A Joint Learning Model with Variational Interaction for Multilingual Program Translation". In this paper, we argue that jointly learning a unified model to translate code across multiple programming languages is superior to separately learning from bilingual parallel data. We propose Variational Interaction for Multilingual Program Translation (VIM-PT), a disentanglement-based generative approach that jointly trains a unified model for multilingual program translation across multiple languages. VIM-PT disentangles code into language-shared and language-specific features using variational inference and interaction information with a novel lower bound. With the variational interaction, VIM-PT achieves significant improvement in multilingual program translation, mines and leverages the capability of non-parallel data, addresses the distribution shift of program semantics across languages, and serves as a unified model, reducing deployment complexity.

Requirements

Running the Artifact

  • Evaluate and fine-tune the pre-trained model on the multilingual dataset with 7 languages.
python script.py

And the results will be saved into the csv, the weights will be saved too. Please note that the runtime path should be correct, and you can change the corresponding file directory to your file address.

About

This repository provides the code and guidance for reproducing the results in our paper "A Joint Learning Model with Variational Interaction for Multilingual Program Translation".

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published