AdaptTrans: a complexity-aware iterative optimisation framework for efficient code translation

Read full text
Authors: Minshan Lin, Zongying Lin, Xin Liu
Cited by: 0
References: 10

Abstract

Automated code translation is vital for software modernisation.While large language models (LLMs) show promise, existing methods often use uniform strategies for all code complexities and lack specialised error handling.We present AdaptTrans, a method featuring complexity-aware strategy selection and iterative error refinement.It first assesses code translation task complexity: simple tasks receive direct translation, while complex tasks employ specific enhancement strategies.An error-driven iterative refinement system then identifies error types and applies targeted optimisations.Evaluated on CodeNet and TransCoder benchmarks across multiple programming languages, AdaptTrans demonstrates significant improvements in translation accuracy over state-of-the-art baselines.The complexity-aware mechanism reduced average iteration count for simple translations by 8.5% while improving pass rate by 4.1%, confirming enhanced efficiency and effectiveness.

Fields of Study & Subjects

Software Engineering Research Model-Driven Software Engineering Techniques Natural Language Processing Techniques

Publication details

Journal / source
International Journal of Information and Communication Technology
Volume
27
Issue
25
Pages
1–19
Publication date
1 January 2026
Language
EN