Bootstrapping Code Translation with Weighted Multilanguage Exploration

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Wu, Yuhan, Zhang, Huan, Cheng, Wei, Shen, Chen, Yang, Jingyue, Hu, Wei
Formato: Preprint
Publicado: 2026
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866913049924861952
author Wu, Yuhan
Zhang, Huan
Cheng, Wei
Shen, Chen
Yang, Jingyue
Hu, Wei
author_facet Wu, Yuhan
Zhang, Huan
Cheng, Wei
Shen, Chen
Yang, Jingyue
Hu, Wei
contents Code translation across multiple programming languages is essential yet challenging due to two vital obstacles: scarcity of parallel data paired with executable test oracles, and optimization imbalance when handling diverse language pairs. We propose BootTrans, a bootstrapping method that resolves both obstacles. Its key idea is to leverage the functional invariance and cross-lingual portability of test suites, adapting abundant pivot-language unit tests to serve as universal verification oracles for multilingual reinforcement learning (RL) training. Our method introduces a dual-pool architecture with seed and exploration pools to progressively expand training data via execution-guided experience collection. Furthermore, we design a language-aware weighting mechanism that dynamically prioritizes harder translation directions based on relative performance across sibling languages, mitigating optimization imbalance. Extensive experiments on the HumanEval-X and TransCoder-Test benchmarks demonstrate substantial improvements over baseline LLMs across all translation directions, with ablation studies validating the effectiveness of both bootstrapping and weighting components.
format Preprint
id arxiv_https___arxiv_org_abs_2601_03512
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Bootstrapping Code Translation with Weighted Multilanguage Exploration
Wu, Yuhan
Zhang, Huan
Cheng, Wei
Shen, Chen
Yang, Jingyue
Hu, Wei
Software Engineering
Artificial Intelligence
Code translation across multiple programming languages is essential yet challenging due to two vital obstacles: scarcity of parallel data paired with executable test oracles, and optimization imbalance when handling diverse language pairs. We propose BootTrans, a bootstrapping method that resolves both obstacles. Its key idea is to leverage the functional invariance and cross-lingual portability of test suites, adapting abundant pivot-language unit tests to serve as universal verification oracles for multilingual reinforcement learning (RL) training. Our method introduces a dual-pool architecture with seed and exploration pools to progressively expand training data via execution-guided experience collection. Furthermore, we design a language-aware weighting mechanism that dynamically prioritizes harder translation directions based on relative performance across sibling languages, mitigating optimization imbalance. Extensive experiments on the HumanEval-X and TransCoder-Test benchmarks demonstrate substantial improvements over baseline LLMs across all translation directions, with ablation studies validating the effectiveness of both bootstrapping and weighting components.
title Bootstrapping Code Translation with Weighted Multilanguage Exploration
topic Software Engineering
Artificial Intelligence
url https://arxiv.org/abs/2601.03512