paper-with-me

홈 › Papers

Program Translation via Code Distillation

2023-10-17 · Yufan Huang, MengNan Qi, Yongqiang Yao, Maoquan Wang, Bin Gu, Colin Clement, Neel Sundaresan

Software version migration and program translation are an important and costly part of the lifecycle of large codebases. Traditional machine translation relies on parallel corpora for supervised translation, which is not feasible for program translation due to a dearth of aligned data. Recent unsupervised neural machine translation techniques have overcome data limitations by included techniques such as back translation and low level compiler intermediate representations (IR). These methods face significant challenges due to the noise in code snippet alignment and the diversity of IRs respectively. In this paper we propose a novel model called Code Distillation (CoDist) whereby we capture the semantic and structural equivalence of code in a language agnostic intermediate representation. Distilled code serves as a translation pivot for any programming language, leading by construction to parallel corpora which scale to all available source code by simply applying the distillation compiler. We demonstrate that our approach achieves state-of-the-art performance on CodeXGLUE and TransCoder GeeksForGeeks translation benchmarks, with an average absolute increase of 12.7% on the TransCoder GeeksforGeeks translation benchmark compare to TransCoder-ST.

📄 PDF Abstract BibTeX arXiv:2310.11476

Code (0)

등록된 구현이 없습니다.

Tasks

DiversityMachine TranslationTranslation

Similar Papers 제목 키워드 기반

CodeTransOcean: A Comprehensive Multilingual Benchmark for Code Translation

2023-10-08 · Weixiang Yan, Yuchen Tian, Yunzhe Li, Qian Chen 외

Recent code translation techniques exploit neural machine translation models to translate source code from one programming language to another to satisfy production compatibility or to improve efficiency of codebase main…

Code TranslationMachine TranslationTranslation

SPoC: Search-based Pseudocode to Code

2019-06-12 · NeurIPS 2019 12 · Sumith Kulal, Panupong Pasupat, Kartik Chandra, Mina Lee 외

We consider the task of mapping pseudocode to long programs that are functionally correct. Given test cases as a mechanism to validate programs, we search over the space of possible translations of the pseudocode to find…

Program SynthesisTranslation

Multi-Teacher Knowledge Distillation For Text Image Machine Translation

2023-05-09 · Cong Ma, Yaping Zhang, Mei Tu, Yang Zhao 외

Text image machine translation (TIMT) has been widely used in various real-world applications, which translates source language texts in images into another target language sentence. Existing methods on TIMT are mainly d…

DecoderKnowledge DistillationMachine TranslationSentence+1

A Joint Learning Model with Variational Interaction for Multilingual Program Translation

2024-08-25 · Yali Du, Hui Sun, Ming Li

Programs implemented in various programming languages form the foundation of software applications. To alleviate the burden of program migration and facilitate the development of software systems, automated program trans…

DisentanglementTranslationVariational Inference

SimulSpeech: End-to-End Simultaneous Speech to Text Translation

2020-07-01 · ACL 2020 6 · Yi Ren, Jinglin Liu, Xu Tan, Chen Zhang 외

In this work, we develop SimulSpeech, an end-to-end simultaneous speech to text translation system which translates speech in source language to text in target language concurrently. SimulSpeech consists of a speech enco…

Automatic Speech RecognitionAutomatic Speech Recognition (ASR)DecoderKnowledge Distillation+9