paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Collaboration is all you need: LLM Assisted Safe Code Translation

协作就是你所需要的一切:LLM 辅助的安全代码翻译
FSE Proceedings of the 33rd ACM International Conference on the Foundations of Software Engineering2025匹配度 3/10 · 论文关注用多个小型 LLM 智能体协作提升代码翻译质量,属于以 LLM 自身能力为研究目标的 Agent 编排/提示工程,与用户的 PL→AI(用静态分析分析 Agentic 程序)和 AI→PL(用 LLM 改进静态分析与形式化验证)两条主线均无直接交集,也未涉及浮点或贝叶斯程序分析。仅在“代码 + 多智能体”这一宽泛语境上与画像相邻,且评估尚属初步。引用 5 inbox
Rabimba Karanjai, Sam Blackshear, Lei Xu, Weidong Shi
crossref: 2026-09-12

AI 速览

一句话:UniTranslator 让多个小型 LLM 智能体协作完成代码翻译,效果媲美大型单体模型并减少幻觉。

本文提出 UniTranslator,一个使用多个紧凑型 LLM 协同工作的代码翻译框架。其核心思想是通过编排多个专门化智能体的交互,让每个智能体聚焦翻译流程的不同方面,并基于对编程概念的深入理解来提升翻译质量。与依赖大型单体模型的既有方法相比,UniTranslator 旨在用小模型达到相近甚至相当的准确率与效率。作者进行了初步评估,考察该动态多智能体范式在多种语言对(包括低资源语言)上的表现,并利用自然语言推理(NLI)与迭代反馈来抑制代码伪影和幻觉等常见错误。结果表明,这一协作范式有望突破现有方法的局限,释放小型 LLM 在复杂代码翻译任务中的潜力。

问题
现有代码翻译方法多依赖大型单体模型,成本高,且小型模型在翻译中容易出现代码伪影与幻觉,在低资源语言对上尤其受限。
方法
构建 UniTranslator,由多个专门化的紧凑型 LLM 智能体协作,每个智能体负责翻译过程的不同方面,并通过编排交互、结合编程概念理解以及 NLI 与迭代反馈来纠错。
评估
通过初步评估在多种语言对(含低资源语言)上检验准确率与效率,并与更大的单体模型比较,同时观察代码伪影和幻觉的减少情况。
原文摘要(Abstract)

This paper introduces UniTranslator, a framework, that uses multiple, compact LLMs working together for code translation. By orchestrating the interaction of specialized agents, each focused on different aspects of the translation process and grounded in a deep understanding of programming concepts, UniTranslator achieves a level of accuracy and efficiency that rivals larger, monolithic models. Our preliminary evaluation demonstrates the potential of UniTranslator to overcome the limitations of existing approaches and unlock the power of smaller LLMs for complex code translation tasks. We explore the effectiveness of this dynamic multi-agent paradigm in handling diverse language pairs, including low-resource languages, and in reducing common errors like code artifacts and hallucinations using Natural Language Inference (NLI) and iterative feedback.

链接与引用

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

BibTeX
@inproceedings{paperbot8975,
  title = {Collaboration is all you need: LLM Assisted Safe Code Translation},
  author = {Rabimba Karanjai and Sam Blackshear and Lei Xu and Weidong Shi},
  booktitle = {FSE},
  year = {2025},
  doi = {10.1145/3696630.3728521}
}