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

CODEFUSE-DEBENCH: 关于可读性、可重编译性和功能性的实证研究

CODEFUSE-DEBENCH: An Empirical Study on Readability, Recompilability, and Functionality

Ant Group(蚂蚁集团);Tsinghua University(清华大学);Xidian University(西安电子科技大学)

Puzhuo Liu, Yuhan Huang, Jianlei Chi, Peng Di, Yu Jiang

AI总结:

提出基于可重用性的多维反编译评估范式,通过DEBENCH框架在可读性、可重编译性和功能性三个维度上评估主流反编译器,发现反编译器引擎比修复模型对功能影响更大。

摘要:

二进制反编译旨在将二进制文件恢复为高级源代码,但现有评估主要依赖语法相似性或单轴可读性指标,无法捕捉实际可重用性。我们提出了一种基于可重用性的评估范式,沿三个正交维度衡量反编译器质量:可读性、可重编译性和功能性。我们提出了DEBENCH,这是第一个用于多维反编译评估的自动化框架。DEBENCH包含240个原子测试函数,组织成8个源文件并编译成640个二进制文件。它结合了LLM作为裁判的可读性评分与URAF(18个子维度)、在固定50次迭代预算下的迭代编译与修复,以及基于Frida的程序、函数和指令级别的差异动态跟踪。我们评估了五种主流反编译器和三种修复LLM。我们的研究揭示了四个发现。第一,可重用性悬崖陡峭:最佳反编译器-LLM对在程序级行为上达到22.3%的精确+部分重叠,但仅1.2%的精确stdout匹配,比可重编译性低近50个百分点。第二,最大化可读性的设置并不最大化功能性:-O3产生最低的可读性但最高的功能性,Clang比GCC产生更低的可读性但高2.6倍的功能性。第三,跨反编译器在功能层面的差异是20倍,远大于跨LLM的1.6倍差异,表明进展更依赖于反编译器引擎而非更大的修复模型。第四,失败分为三类:语法噪声、类型系统崩溃(约占修复错误的19%)以及不可逆的上游损失,如ARM64重定位惯用法和C++ ABI特性。

英文摘要:

Binary decompilation aims to recover binaries into high-level source code, but existing evaluations mainly rely on syntactic similarity or single-axis readability metrics, which fail to capture practical reusability. We propose a reusability-driven evaluation paradigm that measures decompiler quality along three orthogonal dimensions: readability, recompilability, and functionality. We present DEBENCH, the first automated framework for multidimensional decompilation evaluation. DEBENCH contains 240 atomic test functions, organized into 8 source files and compiled into 640 binaries. It combines LLM-as-judge readability scoring with URAF (18 sub-dimensions), iterative compile-and-repair under a fixed 50-iteration budget, and Frida-based differential dynamic tracing at the program, function, and instruction levels. We evaluate five mainstream decompilers and three repair LLMs. Our study reveals four findings. First, the reusability cliff is steep: the best decompiler-LLM pair reaches 22.3% Exact+Partial program-level behavioral overlap but only 1.2% exact stdout match, nearly 50 points below recompilability. Second, settings that maximize readability do not maximize functionality: -O3 yields the lowest readability but the highest functionality, and Clang gives lower readability than GCC but 2.6x higher functionality. Third, cross-decompiler variation at the functional level is 20x, far larger than the 1.6x cross-LLM variation, showing that progress depends more on decompiler engines than larger repair models. Fourth, failures fall into three categories: syntactic noise, type-system collapse (about 19% of repair errors), and irreversible upstream losses such as ARM64 relocation idioms and C++ ABI features.

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

↑