Beyond BLEU: A Semantic Evaluation Method for Code Translation

Julius Näumann, Sven Keidel, Amir Molzam Sharifloo, Mira Mezini
5/6/2026
cs.PLcs.CL

No confident code implementation found for this paper. 2 possible matches can be shown below.

Abstract

Code translation is one of the core capabilities of LLMs. However, evaluating the correctness of translations remains difficult, as commonly used metrics such as BLEU measure only syntactic similarity, disregarding program semantics. We propose a novel evaluation methodology for code translation tasks, emphasizing semantic equivalence over surface-level string similarity. Our approach applies established compiler testing methodology to a new domain, allowing the assessment of an LLM fine-tuned for binary lifting tasks (i.e. decompiling binaries to higher-level representations). We introduce a semantic correctness score, defined as the proportion of translations that produce correct execution outcomes, and demonstrate its application by evaluating LLM-based and heuristic decompilers. Our findings show that LLM-based approaches significantly outperform heuristic ones, while BLEU scores show negligible correlation with semantic correctness (r = -0.127 to 0.354), demonstrating that syntactic metrics fail to predict functional accuracy.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 2 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{numann2026beyond,
  title  = {Beyond BLEU: A Semantic Evaluation Method for Code Translation},
  author = {Julius Näumann and Sven Keidel and Amir Molzam Sharifloo and Mira Mezini},
  year   = {2026},
  eprint = {2605.05282},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.05282v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2605.05282.svg)](https://codeofpaper.com/paper/2605.05282)

Discussion