Pith. sign in

REVIEW 2 cited by

Code Translation with Compiler Representations

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2207.03578 v5 pith:UDWGJXPN submitted 2022-06-30 cs.PL cs.CLcs.LG

classification cs.PLcs.CLcs.LG
keywords codetranslationrustcompilerdifferentincreasingjavalanguages
verification ladder T0 review T1 audit T2 compute T3 formal

Signed reviews

No signed human review yet.

0 comments
read the original abstract

In this paper, we leverage low-level compiler intermediate representations (IR) to improve code translation. Traditional transpilers rely on syntactic information and handcrafted rules, which limits their applicability and produces unnatural-looking code. Applying neural machine translation (NMT) approaches to code has successfully broadened the set of programs on which one can get a natural-looking translation. However, they treat the code as sequences of text tokens, and still do not differentiate well enough between similar pieces of code which have different semantics in different languages. The consequence is low quality translation, reducing the practicality of NMT, and stressing the need for an approach significantly increasing its accuracy. Here we propose to augment code translation with IRs, specifically LLVM IR, with results on the C++, Java, Rust, and Go languages. Our method improves upon the state of the art for unsupervised code translation, increasing the number of correct translations by 11% on average, and up to 79% for the Java -> Rust pair with greedy decoding. We extend previous test sets for code translation, by adding hundreds of Go and Rust functions. Additionally, we train models with high performance on the problem of IR decompilation, generating programming source code from IR, and study using IRs as intermediary pivot for translation.

Discussion (0). Continue with ORCID to comment.

Forward citations

Cited by 2 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score. Full citation record

  1. Fortran2CPP: Automating Fortran-to-C++ Translation using LLMs via Multi-Turn Dialogue and Dual-Agent Integration

    cs.LG 2024-12 conditional novelty 6.0 of 10

    The paper introduces a dialogue-based fine-tuning dataset for Fortran-to-C++ translation and reports up to 3.31x CodeBLEU improvement and up to 92 percent compilation success on fine-tuned LLMs.

  2. A Systematic Literature Review on Neural Code Translation

    cs.SE 2025-05 conditional novelty 3.0 of 10

    A systematic literature review that organizes 57 neural code translation papers into seven research themes and identifies current trends and open problems.

Pith tools