paper-with-me

홈 › Papers

Parallel-SFT: Improving Zero-Shot Cross-Programming-Language Transfer for Code RL

2026-04-22 · Zhaofeng Wu, Shiqi Wang, Boya Peng, Anuj Goyal, Melanie Kambadur, Sebastian Ruder, Yoon Kim, Chloe Bi arxiv

Modern language models demonstrate impressive coding capabilities in common programming languages (PLs), such as C++ and Python, but their performance in lower-resource PLs is often limited by training data availability. In principle, however, most programming skills are universal across PLs, so the capability acquired in one PL should transfer to others. In this work, we propose the task of zero-shot cross-programming-language transfer for code RL. We find that, for Llama-3.1, RL training for code generation in a source PL fails to improve, and sometimes even degrades, the performance on other target PLs. To address this, we hypothesize that effective RL transfer requires a generalizable SFT initialization before RL. We thus propose Parallel-SFT, an SFT strategy that incorporates "parallel programs" -- functionally equivalent code implemented in multiple PLs -- into the data mixture. We demonstrate that this improves transferability: when we subsequently perform RL on our Parallel-SFT model, we observe better generalization to unseen PLs. Analysis of the model internal representations reveals that Parallel-SFT leads to a more functionality-centric latent space, where equivalent programs across PLs are more tightly clustered, which we hypothesize to contribute to the improved transferability.

📄 PDF Abstract BibTeX arXiv:2604.20835

Code (0)

등록된 구현이 없습니다.

Tasks

Code Generation

Similar Papers 제목 키워드 기반

ZC3: Zero-Shot Cross-Language Code Clone Detection

2023-08-26 · Chongyang Tao, Zhi Jin, Fang Liu, Jia Li 외

Developers introduce code clones to improve programming productivity. Many existing studies have achieved impressive performance in monolingual code clone detection. However, during software development, more and more de…

Clone DetectionLanguage Modelling

Realistic Zero-Shot Cross-Lingual Transfer in Legal Topic Classification

2022-06-08 · Stratos Xenouleas, Alexia Tsoukara, Giannis Panagiotakis, Ilias Chalkidis 외

We consider zero-shot cross-lingual transfer in legal topic classification using the recent MultiEURLEX dataset. Since the original dataset contains parallel documents, which is unrealistic for zero-shot cross-lingual tr…

Cross-Lingual TransferTopic ClassificationTranslationZero-Shot Cross-Lingual Transfer

Realistic Zero-Shot Cross-Lingual Transfer in Legal Topic Classification

2022-01-16 · ACL ARR January 2022 1 · Anonymous

We consider zero-shot cross-lingual transfer in legal topic classification using the recent Multi-EURLEX dataset. Since the original dataset contains parallel documents, which is unrealistic for zero-shot cross-lingual t…

ClassificationCross-Lingual TransferTopic ClassificationTranslation+1

Neuro-symbolic Zero-Shot Code Cloning with Cross-Language Intermediate Representation

2023-04-26 · Krishnam Hasija, Shrishti Pradhan, Manasi Patwardhan, Raveendra Kumar Medicherla 외

In this paper, we define a neuro-symbolic approach to address the task of finding semantically similar clones for the codes of the legacy programming language COBOL, without training data. We define a meta-model that is …

C++ codeCode Search

Zero-Resource Neural Machine Translation with Monolingual Pivot Data

2019-11-01 · WS 2019 11 · Anna Currey, Kenneth Heafield

Zero-shot neural machine translation (NMT) is a framework that uses source-pivot and target-pivot parallel data to train a source-target NMT system. An extension to zero-shot NMT is zero-resource NMT, which generates pse…

Machine TranslationNMTTranslation