Score: 2

BabelCoder: Agentic Code Translation with Specification Alignment

Published: December 7, 2025 | arXiv ID: 2512.06902v1

By: Fazle Rabbi , Soumit Kanti Saha , Tri Minh Triet Pham and more

Potential Business Impact:

Changes computer code from one language to another.

Business Areas:
Translation Service Professional Services

As software systems evolve, developers increasingly work across multiple programming languages and often face the need to migrate code from one language to another. While automatic code translation offers a promising solution, it has long remained a challenging task. Recent advancements in Large Language Models (LLMs) have shown potential for this task, yet existing approaches remain limited in accuracy and fail to effectively leverage contextual and structural cues within the code. Prior work has explored translation and repair mechanisms, but lacks a structured, agentic framework where multiple specialized agents collaboratively improve translation quality. In this work, we introduce BabelCoder, an agentic framework that performs code translation by decomposing the task into specialized agents for translation, testing, and refinement, each responsible for a specific aspect such as generating code, validating correctness, or repairing errors. We evaluate BabelCoder on four benchmark datasets and compare it against four state-of-the-art baselines. BabelCoder outperforms existing methods by 0.5%-13.5% in 94% of cases, achieving an average accuracy of 94.16%.

Country of Origin
🇨🇦 Canada

Repos / Data Links

Page Count
21 pages

Category
Computer Science:
Software Engineering