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..
Paper
References (17)
Scroll for more · 5 remaining