paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Syntax and Domain Aware Model for Unsupervised Program Translation

面向无监督程序翻译的语法与领域感知模型
ICSE 2023 IEEE/ACM 45th International Conference on Software Engineering (ICSE)2023匹配度 2/10 · 论文研究无监督程序翻译(代码跨语言迁移),虽属于机器学习与程序语言交叉,但与用户核心关注的静态分析、Agentic/LLM 程序分析、浮点程序分析或贝叶斯程序分析无直接关系;方法也未基于当前 LLM/Agent,亦不涉及静态分析或形式化验证。引用 41 inbox
Fang Liu, Jia Li, Li Zhang
crossref: 2026-09-12dblp: 2026-09-12arxiv: 2026-09-12

AI 速览

一句话:提出 SDA-Trans,融合语法结构与领域知识,在小规模语料上提升无监督程序翻译和跨语言迁移能力。

并行代码语料稀缺,人工收集双语数据成本高昂;现有无监督程序翻译系统仍依赖大规模单语源代码训练,且难以翻译预训练阶段未见过的语言。本文提出 SDA-Trans,一种语法与领域感知的模型,通过利用语法结构和领域知识增强跨语言迁移能力。该方法在规模较小的 Python 和 Java 单语程序语料上进行无监督训练。在 Python、Java、C++ 之间的函数翻译任务上,实验表明 SDA-Trans 优于许多大规模预训练模型,尤其在对未见语言的翻译上表现更好。

问题
无监督程序翻译面临并行语料稀缺、现有系统依赖大规模单语源代码训练,以及难以泛化到预训练未见过语言的问题。
方法
提出语法和领域感知的 SDA-Trans,利用语法结构与领域知识增强跨语言迁移,并在较小规模 Python/Java 单语语料上无监督训练。
评估
在 Python、Java、C++ 之间的函数翻译任务上进行实验,与多类大规模预训练模型比较,验证其整体性能及对未见语言的翻译优势。
原文摘要(Abstract)

There is growing interest in software migration as the development of software and society. Manually migrating projects between languages is error-prone and expensive. In recent years, researchers have begun to explore automatic program translation using supervised deep learning techniques by learning from large-scale parallel code corpus. However, parallel resources are scarce in the programming language domain, and it is costly to collect bilingual data manually. To address this issue, several unsupervised programming translation systems are proposed. However, these systems still rely on huge monolingual source code to train, which is very expensive. Besides, these models cannot perform well for translating the languages that are not seen during the pre-training procedure. In this paper, we propose SDA-Trans, a syntax and domain-aware model for program translation, which leverages the syntax structure and domain knowledge to enhance the cross-lingual transfer ability. SDA-Trans adopts unsupervised training on a smaller-scale corpus, including Python and Java monolingual programs. The experimental results on function translation tasks between Python, Java, and C++ show that SDA-Trans outperforms many large-scale pre-trained models, especially for unseen language translation.

链接与引用

DOI 原文 · arXiv · PDF(开放获取) · DBLP

BibTeX
@inproceedings{LiuLZ23,
  title = {Syntax and Domain Aware Model for Unsupervised Program Translation},
  author = {Fang Liu and Jia Li and Li Zhang},
  booktitle = {ICSE},
  year = {2023},
  doi = {10.1109/icse48619.2023.00072}
}