Beyond Text Matching: Towards Reference-Free Evaluation for Human-Oriented Binary Reverse Engineering

Xiuwei Shang, Li Hu, Xiao Jiang, Jieke Shi, Junda He, Zhou Yang, Shaoyin Cheng, Guoqiang Chen, Weiming Zhang, David LoarXiv 2026

TL;DR

Evaluating tools that make decompiled code more human-readable currently requires missing source code references or expensive human labor. This paper introduces BinJudgeBench, an expert-annotated benchmark showing that Large Language Models (LLMs) can reliably evaluate these tools without any reference code. Building on this, the authors develop BinJudge, an adaptive routing mechanism that selects the optimal LLM configuration per sample, maximizing evaluation accuracy while slashing API costs.

What Problem Does This Paper Address?

When security analysts reverse-engineer malware or closed-source firmware, they use decompilers to turn obscure machine code into C-like pseudocode. However, compiler optimizations and symbol stripping strip away vital context, leaving behind anonymous function names (e.g., sub_401B20), missing comments, and convoluted structures.

To solve this, researchers use Human-Oriented Binary Reverse Engineering (HOBRE)—deep learning techniques designed to rename functions, summarize code logic, and clean up pseudocode structure.

Figure 1: Background of Human-Oriented Binary Reverse Engineering (HOBRE)

The bottleneck is evaluation. Traditional metrics like BLEU or CodeBLEU rely on exact text matching against the original source code. But in the wild, the original source code doesn't exist. Furthermore, text-matching metrics fail to recognize when an LLM provides a perfectly accurate description or function name using different words. Test-based execution metrics are equally problematic, as setting up full runtime environments for complex, isolated binary functions is rarely feasible.

Methods

To move past rigid text matching, the authors systematically explore the LLM-as-a-Judge paradigm for reference-free evaluation. They test 9 different backbone LLMs across various prompting strategies (Zero-Shot, Few-Shot, and Chain-of-Thought) and decoding temperatures.

Their key finding? No single LLM configuration is perfect for every scenario. To address this, they propose BinJudge, a lightweight, adaptive routing framework:

  1. Feature Extraction: It uses a frozen UniXcoder-base model to extract semantic features from the decompiled pseudocode.
  2. Cross-Task Awareness: It combines these features with a learnable task embedding layer so the router understands the specific evaluation context.
  3. Adaptive Routing: A multi-layer perceptron (MLP) predicts the best judge configuration (the right LLM, prompt style, and temperature) for that specific code snippet.

BinJudge is trained using a specialized utility function that optimizes for both human alignment (minimizing Mean Squared Error against expert scores) and API cost via a distribution alignment strategy.

Datasets

The authors introduced BinJudgeBench, a meticulously curated, expert-annotated benchmark for reference-free HOBRE evaluation.

  • Source Pool: 51 real-world GNU projects compiled across 6 architectures (including ARM, X86, MIPS) and 4 optimization levels (-O0 to -O3), yielding over 346,000 function-level samples.
  • Evaluated Models: 8 distinct models (both binary-specific models like HexT5 and general LLMs like GPT-4o) generated outputs for three core tasks: Function Name Recovery (FNR), Binary Code Summarization (BCS), and Decompilation Optimization (DO).
  • Human Ground Truth: Three reverse-engineering experts independently audited and scored 1,233 representative samples on a 5-point Likert scale, resolving major disagreements through consensus meetings to establish a "gold standard."
Figure 2: Distribution of human expert-annotated scores across three HOBRE tasks in BinJudgeBench.

Key Insights and Ideas

  • LLMs Bypass the Reference Bottleneck: Because LLMs possess internal reasoning capabilities and understand programming logic, they can judge the quality and readability of code directly from the artifact itself, completely eliminating the need for ground-truth source code.
  • The "Fluency Trap": LLMs are slightly biased toward syntactically fluent or conventional-looking outputs. If a model generates a highly plausible-looking function name or summary that is completely unsupported by the underlying logic, LLM judges occasionally over-score it.
  • Prompting Inversion Across Scales: Bigger isn't always better for every prompt type. Ultra-large models (like Gemini-2.5-Flash or GPT-4o) achieve peak correlation using Few-Shot Learning (FSL). Conversely, smaller models get confused by examples and perform significantly better when forced to think step-by-step using Chain-of-Thought (CoT).
  • Massive Pareto Efficiency Gaps: Cost and performance are non-linear. For instance, Gemini-2.5-Flash achieved a 61.36% human correlation at a fraction of the price of Claude-3.5-Sonnet, which scored 61.65% but cost 21 times more.

Key Results

  • Superior Human Alignment: LLM-as-a-Judge configurations achieved an average correlation of 63.20% (Kendall’s $\tau$) with human experts, drastically outperforming traditional automated metrics, which averaged a meager 35.04%.
Table 3: Correlation of traditional metrics and LLM-as-a-Judge with human expert judgment across HOBRE tasks in Bin- JudgeBench. The highest correlation is highlighted in bold and underlined, and the highest in traditional metrics is underlined.
  • Router Effectiveness: By dynamically matching samples to the best judge setup, the BinJudge router improved correlation with human experts by 4.5% to 24.7% compared to using the single best static configuration.
  • Dramatic Cost Reductions: BinJudge successfully minimized API spending, operating at just 0.06$\times$ to 0.84$\times$ the cost of static configurations by routing simpler evaluation tasks to cheaper, optimized models.

Limitations and Future Work

Despite its success, BinJudge faces challenges on "hard samples." LLMs struggle to evaluate code when the pseudocode completely lacks semantic anchors (like hardcoded strings or recognizable system calls). Furthermore, because the framework evaluates isolated single-function snippets, it misses critical context from caller/callee relationships and global variables.

The authors note that future iterations should incorporate broader project-level context, such as control-flow graphs and cross-function data flows, to help the LLM judges resolve these semantic ambiguities.

Summary updated

BibTeX
@misc{shang2026beyond,
  author = {Xiuwei Shang and Li Hu and Xiao Jiang and Jieke Shi and Junda He and Zhou Yang and Shaoyin Cheng and Guoqiang Chen and Weiming Zhang and David Lo},
  title = {{Beyond Text Matching: Towards Reference-Free Evaluation for Human-Oriented Binary Reverse Engineering}},
  year = {2026},
  eprint = {2608.07038},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.07038},
}
Figure