arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2512.00134cs.SEcs.AI
收藏

Asm2SrcEval: 评估大型语言模型在汇编到源代码翻译中的性能

Asm2SrcEval: Evaluating Large Language Models for Assembly-to-Source Code Translation

Canadian Institute for Cybersecurity(加拿大网络安全研究所);University of New Brunswick(新不伦瑞克大学);Faculty of Computer Science(计算机科学学院)

Parisa Hamedi, Hamed Jelodar, Samita Bai, Mohammad Meymani, Roozbeh Razavi-Far, Ali A. Ghorbani

AI总结:

本文提出Asm2SrcEval基准,评估五种先进大语言模型在汇编到源代码翻译任务中的性能,揭示模型在文本相似性、流畅性和效率上的权衡,为程序翻译的准确性和效率研究提供基础。

摘要:

将汇编语言转换为源代码是逆向工程、网络安全和软件维护中的关键任务,但目前系统性评估大型语言模型在该问题上表现的基准仍然匮乏。在本工作中,我们首次对五种最先进的大型语言模型在汇编到源代码翻译任务上的性能进行了全面评估。我们使用多样化的指标集来评估模型性能,这些指标涵盖了词汇相似性(BLEU、ROUGE 和 METEOR)、语义对齐(BERTScore)、流畅性(困惑度)和效率(时间预测)。我们的结果揭示了明显的权衡:虽然某些模型在文本相似性指标上表现突出,但其他模型在困惑度或推理速度上表现更优。我们进一步对典型模型的成功和失败案例进行了定性分析,突显了诸如控制流恢复和标识符重建等挑战。综合来看,我们的基准为当前大型语言模型在程序翻译中的优缺点提供了可操作的见解,为未来结合准确性和效率以满足实际应用需求的研究奠定了基础。

英文摘要:

Assembly-to-source code translation is a critical task in reverse engineering, cybersecurity, and software maintenance, yet systematic benchmarks for evaluating large language models on this problem remain scarce. In this work, we present the first comprehensive evaluation of five state-of-the-art large language models on assembly-to-source translation. We assess model performance using a diverse set of metrics capturing lexical similarity (BLEU, ROUGE, and METEOR), semantic alignment (BERTScore), fluency (Perplexity), and efficiency (time prediction). Our results reveal clear trade-offs: while certain models excel in text similarity metrics, others demonstrate lower perplexity or faster inference times. We further provide qualitative analyses of typical model successes and failure cases, highlighting challenges such as control flow recovery and identifier reconstruction. Taken together, our benchmark offers actionable insights into the strengths and limitations of current large language models for program translation, establishing a foundation for future research in combining accuracy with efficiency for real-world applications.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑