TRI-ANSLATE: LLM-Based Code Translation Of High-Performance Software
Matthew Davis, Swaroop Pophale, Zheming Jin, Vijay Ganesh, Keita Teranishi
ICLR 2026 submission
Abstract. We present an LLM-based code translation and repair framework called TRI-anslate, which translates existing code written in an arbitrary source language to an arbitrary target language and validates that the output code adheres to desired properties via testing. Existing work has shown that LLMs are remarkable at code translation and repair tasks. Furthermore, specialized fine-tuned or distilled LLMs can extend these capabilities to handle niche languages, perform syntax repair with relatively small cost, or perform semantic repair taking into account common errors. However, the most robust currently available tools that leverage these LLMs assign all these distinct subtasks to a single LLM with a feedback loop from a validation tool. Further, they rely on a rigid set of possible errors as part of the corrective feedback from the validator or verifier. By contrast, TRI-anslate allows for a user-specified error set and leverages 3 separate LLM feedback loops to fully utilize the capability of LLMs specialized for generation, syntactic repair, and semantic repair. This also avoids wasting context of later LLMs on the correction conversation of previous LLMs. We conduct an extensive evaluation, showcasing the advantage of TRI-anslate over the existing work using the same setup (% increase comparing the base model, % for the fine-tuned model in CUDA to OpenMP Target Offloading Translation). We also demonstrate how being able to choose different models per subtask allows TRI-anslate to outperform LASSI using any of the individual models, and highlight the extensibility of TRI-anslate by documenting the effort required to add a new translation task (CUDA to SYCL).
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperadd · history
Loading the discussion…