arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2312.09601cs.CRcs.CLcs.LGcs.SE
收藏

二进制代码摘要:ChatGPT/GPT-4及其他大语言模型的基准测试

Binary Code Summarization: Benchmarking ChatGPT/GPT-4 and Other Large Language Models

The Ohio State University(俄亥俄州立大学);Microsoft Research(微软研究院)

Xin Jin, Jonathan Larson, Weiwei Yang, Zhiqiang Lin

AI总结:

本研究针对二进制代码摘要的难点,构建含55.7万+函数的BinSum基准,提出提示词优化方法与新语义相似度指标,经多LLM大规模评估得出10项关键洞见,明确了LLM的潜力与待解挑战。

摘要:

二进制代码摘要对于理解代码语义极具价值,但由于其劳动密集型特性,实现起来颇具挑战。本研究深入探究大语言模型(LLM)在二进制代码理解领域的潜力。为此,我们构建了BinSum——一个包含超过55.7万个二进制函数的综合基准与数据集,并提出了一种新颖的提示词合成与优化方法。为更准确地衡量LLM的性能,我们还提出了一种新的语义相似度指标,其效果优于传统的精确匹配方法。我们对ChatGPT、GPT-4、Llama 2和Code Llama等主流LLM开展了全面评估,得出了10项关键洞见。本次评估共生成40亿个推理token,总花费11418美元,消耗873个NVIDIA A100 GPU小时。研究结果既凸显了LLM在该领域的变革性潜力,也指出了仍需克服的挑战。

英文摘要:

Binary code summarization, while invaluable for understanding code semantics, is challenging due to its labor-intensive nature. This study delves into the potential of large language models (LLMs) for binary code comprehension. To this end, we present BinSum, a comprehensive benchmark and dataset of over 557K binary functions and introduce a novel method for prompt synthesis and optimization. To more accurately gauge LLM performance, we also propose a new semantic similarity metric that surpasses traditional exact-match approaches. Our extensive evaluation of prominent LLMs, including ChatGPT, GPT-4, Llama 2, and Code Llama, reveals 10 pivotal insights. This evaluation generates 4 billion inference tokens, incurred a total expense of 11,418 US dollars and 873 NVIDIA A100 GPU hours. Our findings highlight both the transformative potential of LLMs in this field and the challenges yet to be overcome.

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

↑