ASAP: Assembly-Source Aligned Pseudocode Refinement For Binary Decompilation
Yujian Zhuang, Dehong Gao, Qichao Zhang, QiJing Lai, Jiaxin Wang, Libin Yang, Xiaoyan Cai
NeurIPS 2026
Abstract. Large language models (LLMs) are increasingly used in binary decompilation to refine the C-like pseudocode produced by traditional rule-based decompilers. While this pseudocode is useful, it is a heuristic and lossy abstraction rather than a faithful copy of the source code. It often contains decompiler errors, especially for aggressively optimized binaries where critical low-level details are obscured. We present ASAP, an Assembly-Source Aligned Pseudocode refinement framework for binary decompilation. ASAP learns source-aligned assembly representations from paired source and binary functions using joint function-level and snippet-level contrastive alignment. A Q-Former then compresses chunk-level assembly features into a fixed number of assembly tokens. These tokens and the decompiler-produced pseudocode jointly condition the decompilation LLM. During refinement, we use stochastic pseudocode masking and a relative assembly-advantage loss to discourage the model from relying solely on pseudocode. On two decompilation benchmarks across multiple compiler optimization levels, ASAP improves the average re-execution rate from 64.7% to 71.9% and the average recompilation rate from 91.6% to 96.6% compared with the strongest baseline. Our approach offers both a new perspective and a practical solution to binary decompilation.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 4 reviews · OpenReview
Updated 25 Nov 2026, 03:49 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
This work proposes a method to improve the executability of decompiled programs via a combination of contrastive learning at multiple levels and two objectives used to encourage the decompilation to incorporate and align with the assembly code's representations.
Reviewers generally found the approach well designed, especially the assembly advantage loss, and appreciated the broad empirical support for the results. The rebuttal added to this support. They raised concerns around the rather simple programs used in the evaluation, various missing baselines, and missing comparisons with frontier models. The authors provided ample new results to support their claims.
The key remaining concern is that this method is surpassed by frontier models. This is true, and the proposed architecture is unlikely to be necessary or realistically applicable at the model & data scales involved in frontier models. Nevertheless, the conceptual contributions, especially the loss design, are informative and novel, and may transfer to other tasks involving smaller LLMs. Given this, I recommend accepting the work.
Final justification
See metareview.
- Final justification
- See metareview.
Read meta-review
Meta-review
This work proposes a method to improve the executability of decompiled programs via a combination of contrastive learning at multiple levels and two objectives used to encourage the decompilation to incorporate and align with the assembly code's representations.
Reviewers generally found the approach well designed, especially the assembly advantage loss, and appreciated the broad empirical support for the results. The rebuttal added to this support. They raised concerns around the rather simple programs used in the evaluation, various missing baselines, and missing comparisons with frontier models. The authors provided ample new results to support their claims.
The key remaining concern is that this method is surpassed by frontier models. This is true, and the proposed architecture is unlikely to be necessary or realistically applicable at the model & data scales involved in frontier models. Nevertheless, the conceptual contributions, especially the loss design, are informative and novel, and may transfer to other tasks involving smaller LLMs. Given this, I recommend accepting the work.
- Rating
- 3/6
- Confidence
- 5/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 2/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
ASAP is a two-stage binary decompilation framework that augments pseudocode-based LLM refinement with compressed assembly representations. Stage 1 trains an assembly encoder via multi-positive contrastive learning against a frozen source encoder. Stage 2 uses a Q-Former to compress assembly features into a fixed token budget, combined with pseudocode masking and a relative assembly-advantage loss. ASAP uses the HumanEval and MBPP datasets, compiled across four GCC optimization levels, for evaluation; it reports gains in re-execution (64.7% -->71.9%) and recompilation (91.6% --> 96.6%) over the strongest baseline.
Strengths and weaknesses
Stregnth
- Clean and coherent design -- representation gap and attention bias are well-motivated and each component is properly ablated
- Assembly-advantage loss and causal intervention analysis (Table 5) are the most original contributions and convincingly show the LLM genuinely uses assembly tokens
- Downstream binary analysis evaluation (Table 2) adds practical value beyond self-contained metrics
- Well-written and easy to follow
Weaknesses
Major
-
HumanEval and MBPP are trivial single-function programs with low cyclomatic complexity. The paper's whole motivation is handling complex optimized binaries, yet it never tests this regime. Decompile-Bench-Eval, which includes real GitHub binaries, was available before submission and should have been used.
-
GPT-4-class baselines are missing without explanation. Gemini, DeepSeek, and Grok are included as task-agnostic baselines, but GPT-4.1/GPT-5-mini are not, despite the paper simultaneously using GPT-5-mini as both a post-processing agent and a GPT-Judge evaluator. HELIOS (https://arxiv.org/pdf/2601.14598) reports GPT-4.1 Mini achieving 89.6% average compilability on HumanEval-Decompile, competitive with ASAP's recompilation gains. This omission needs justification. In my personal experience as well, I have seen GPT models perform really well. I know cost and other factors could be a reason, but would love to know why you specifically omitted GPT models.
-
We have seen that embedding structural information usually provides better gains (SK2Decompile for example), and I did not see discussion related to that here.
-
SC²Dec/FAE (EMNLP 2024) is not cited. FAE aligns assembly to source at the statement level using compiler debug info, with supervision nearly identical to ASAP's snippet-level alignment. This must be acknowledged and differentiated.
Minor
- Nova (ICLR 2025) also uses contrastive learning with optimization-level grouping; the cross-modal vs intra-modal distinction should be stated explicitly
- Only GCC x86_64 + Ghidra evaluated; SK2Decompile tests GCC and Clang
Questions
- Why are GPT-4.1 and GPT-5-mini excluded from the task-agnostic baselines? Have the authors tested these and found ASAP competitive?
- Would the assembly-advantage loss still help on more complex real-world functions where pseudocode errors are more severe? The current benchmarks may be too easy to stress this.
Limitations
Discussed above.
Formatting concerns
1 comment
- Rating
- 3/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper presents ASAP, an assembly-augmented pseudocode refinement framework for binary decompilation. The core idea is to improve LLM-based decompilation by providing the model with both decompiler-generated pseudocode and relevant assembly-level information, so that it can correct inaccuracies and produce more precise high-level code. The paper evaluates different design choices and hyperparameters, compares ASAP against several decompilation baselines, and studies its usefulness for downstream binary-analysis tasks. The evaluation results are promising.
Strengths and weaknesses
Thanks a lot for submitting your work to NeurIPS! The paper focuses on more precise decompilation, a challenging task from cybersecurity. The authors propose a novel approach to tackle this challenge and present ASAP, an assembly-augmented pseudocode refinement framework for binary decompilation. The design is clear and easy to follow, the design choices and hyperparameters are evaluated in experiments. The results indicate the ASAP outperform the chosen baseline.
My main concern is the evaluation, where I have several comments/questions:
-
Choice of the Task-Agnostic LLMs used for the experiments, they do do not represent the SOTA anymore. Frontier models had a jump in the recent months and are now much more capable at coding tasks. Can you run experiments on the lates Opus/GPT models? I expect that they have a much better performance compared to DeepSeek-v3.2, Grok-4-fast, and Gemini-3.1-flash.
-
Related to the previous comment: Why did you pick Ref Decompile, LLM4Decompile, and SK2Decompile for the comparison? Given the recent results, there might be better baselines such as DecLLM that could be evaluated. https://www.usenix.org/system/files/usenixsecurity24-basque.pdf is a paper from USENIX Security that could also represent a strong baseline.
-
Why was the approach not evaluated on Decompile-Bench (NeurIPS'25), a benchmark designed for this task?
-
For the Downstream Binary Analysis, it would also be great to perform this experiment with current frontier models, I expect that they will be much better at this task these days.
-
The prompt from A.2 is rather simple, maybe examples could guide the model. Please explain how you came up with this prompt.
The discussion of related work and the references were great, this was among the best papers I have reviewed.
The code and data is not available. Can you please make it available as part of the review process? Without this, I cannot fully evaluate. My score could increase if I can check the code and data.
With an improved evaluation against SOTA frontier models, the paper would be much stronger. For now I give a weak reject, but I am happy to accept the paper if my concerns are addressed and questions are answered,
Questions
-
Can the authors evaluate ASAP with current frontier models? The models used in the paper may no longer reflect the state of the art for coding-heavy tasks. My score would increase if the authors add a comparison with recent Opus/GPT-class models.
-
Extension of 1: Do the downstream binary-analysis results still hold when using current frontier models? A small rerun of the downstream task with stronger models would help determine whether ASAP improves the decompiled representation itself, or whether the gains mainly reflect limitations of the older LLMs used in the evaluation.
-
Why were Ref Decompile, LLM4Decompile, and SK2Decompile chosen as the main baselines? Please clarify whether stronger or more recent recompilable/decompilation baselines such as DecLLM (or classical decompiler improvements such as SAILR) could be used instead.
-
Why is ASAP not evaluated on Decompile-Bench? Since this benchmark is designed for decompilation evaluation, running ASAP on it, even for a subset of tasks, would help establish whether the reported gains transfer beyond the papers current benchmark setup.
Limitations
Limitation are discussed in Appendix C only, it would be great to discuss them in the main part of the paper. The authors acknowledge the evaluation against frontier-scale LLMs, but I think this is an important aspect because these models made a significant jump recently.
Formatting concerns
None
1 comment
Rebuttal
We sincerely thank Reviewer bvVt for the encouraging feedback!
Comment #1:
Q1: Can the authors evaluate ASAP with current frontier models? The models used in the paper may no longer reflect the state of the art for coding-heavy tasks. My score would increase if the authors add a comparison with recent Opus/GPT-class models.
Answer #1:
Following your suggestion, we evaluated GPT-5.5 and Claude-Opus-4-8 under the same Ghidra-pseudocode evaluation pipeline as our task-agnostic LLM baselines. All values are re-execution rates (%).
| HumanEval | O0 | O1 | O2 | O3 | Avg |
|---|---|---|---|---|---|
| GPT-5.5 | 82.9 | 73.8 | 76.2 | 72.6 | 76.4 |
| Claude-Opus-4-8 | 90.9 | 81.7 | 85.4 | 84.7 | 85.7 |
| ASAP | 87.2 | 76.8 | 72.0 | 64.6 | 75.2 |
| MBPP | O0 | O1 | O2 | O3 | Avg |
|---|---|---|---|---|---|
| GPT-5.5 | 70.7 | 67.8 | 68.3 | 64.6 | 67.8 |
| Claude-Opus-4-8 | 76.1 | 71.9 | 72.5 | 72.2 | 73.2 |
| ASAP | 77.1 | 69.8 | 65.0 | 62.7 | 68.7 |
Claude-Opus-4-8 is strongest on both datasets, particularly at higher optimization levels. GPT-5.5 and ASAP have similar averages, with GPT-5.5 higher on HumanEval and ASAP on MBPP. These frontier models provide stronger task-agnostic baselines than those in the original submission.
Because HumanEval and MBPP are public, data leakage is a concern. Decompile-Bench [1] notes that public tests may occur in LLM pre-training corpora and inflate scores. The training data of GPT-5.5 and Claude-Opus-4-8 are undisclosed, so we report their results directly but cannot determine whether such overlap exists.
To our knowledge, SK2Decompile is the strongest previously published learning-based decompilation system in re-execution performance. ASAP raises its average from 64.7% to 71.9% using a 9.3B model, compared with SK2Decompile's two 6.7B models. We will explore adapting ASAP to frontier-scale models to combine their capabilities with source-aligned assembly evidence.
Comment #2:
Q2: Extension of 1: Do the downstream binary-analysis results still hold when using current frontier models? A small rerun of the downstream task with stronger models would help determine whether ASAP improves the decompiled representation itself, or whether the gains mainly reflect limitations of the older LLMs used in the evaluation.
Answer #2:
Following your suggestion, we reran the downstream binary-analysis evaluation with Claude-Opus-4-8 and GPT-5.5 while keeping the task prompts and evaluation pipeline unchanged. The base rows use Ghidra pseudocode, while + SK2Decompile and + ASAP replace it with the corresponding decompilation output.
| Method | SR Rouge-L | BCS BLEU | BCS METEOR | BCS Rouge-L | AC ACC | AVG |
|---|---|---|---|---|---|---|
| Claude-Opus-4-8 | 61.20 | 6.85 | 29.10 | 25.05 | 89.71 | 42.38 |
| + SK2Decompile | 62.50 | 6.91 | 29.22 | 25.13 | 89.71 | 42.69 |
| + ASAP | 62.90 | 7.02 | 29.18 | 25.28 | 91.18 | 43.11 |
| Method | SR Rouge-L | BCS BLEU | BCS METEOR | BCS Rouge-L | AC ACC | AVG |
|---|---|---|---|---|---|---|
| GPT-5.5 | 57.80 | 6.42 | 28.20 | 24.25 | 86.76 | 40.69 |
| + SK2Decompile | 60.30 | 6.60 | 28.45 | 24.46 | 88.24 | 41.61 |
| + ASAP | 60.95 | 6.79 | 28.63 | 24.41 | 89.71 | 42.10 |
ASAP raises the average from 42.38 to 43.11 with Claude-Opus-4-8 and from 40.69 to 42.10 with GPT-5.5. The smaller gain with Claude-Opus-4-8 suggests that stronger performance on raw Ghidra pseudocode reduces, but does not eliminate, this benefit.
Gains concentrate in signature recovery and algorithm classification, which depend on function interfaces, types, and program logic. Binary code summarization instead uses lexical metrics sensitive to identifiers and phrasing. Since ASAP targets functional recovery without a dedicated naming component, semantic gains may not produce equal gains in summary overlap.
ASAP also exceeds SK2Decompile on average and leads on four of five metrics for both models. With the downstream model, prompts, and pipeline fixed, these gains support a more useful representation rather than an advantage limited to older downstream LLMs.
Comment #3:
Q3: Why were Ref Decompile, LLM4Decompile, and SK2Decompile chosen as the main baselines? Please clarify whether stronger or more recent recompilable/decompilation baselines such as DecLLM (or classical decompiler improvements such as SAILR) could be used instead.
Answer #3:
We originally selected Ref Decompile, LLM4Decompile, and SK2Decompile as recent learning-based methods evaluated under the same HumanEval/MBPP and O0–O3 pipeline; SK2Decompile was the strongest in re-execution. To cover compiler-aware structuring, fine-grained alignment, and feedback-driven repair, we added SAILR [2], FAE [3], and DecLLM [4].
SAILR is an angr compiler-aware structuring algorithm that removes spurious goto statements. FAE uses debugging information for statement-level assembly-source alignment in end-to-end decompilation. DecLLM iteratively repairs pseudocode using compilation and runtime feedback. All values are re-execution rates (%).
| HumanEval | O0 | O1 | O2 | O3 | Avg |
|---|---|---|---|---|---|
| SAILR | 40.2 | 18.3 | 14.6 | 12.8 | 21.5 |
| FAE | 67.7 | 48.8 | 45.7 | 42.1 | 51.1 |
| DecLLM | 80.4 | 65.2 | 65.5 | 58.5 | 67.4 |
| ASAP | 87.2 | 76.8 | 72.0 | 64.6 | 75.2 |
| MBPP | O0 | O1 | O2 | O3 | Avg |
|---|---|---|---|---|---|
| SAILR | 54.1 | 32.8 | 28.4 | 23.0 | 34.6 |
| FAE | 61.6 | 46.0 | 46.8 | 44.7 | 49.8 |
| DecLLM | 74.8 | 59.5 | 58.2 | 51.3 | 60.9 |
| ASAP | 77.1 | 69.8 | 65.0 | 62.7 | 68.7 |
ASAP leads all three baselines at every optimization level. SAILR targets control-flow structure, while FAE validates fine-grained assembly-source supervision but remains below ASAP's combination of pseudocode and aligned assembly. DecLLM is the strongest addition, yet ASAP achieves higher averages without iterative compiler or runtime feedback during inference.
Comment #4:
Q4: Why is ASAP not evaluated on Decompile-Bench? Since this benchmark is designed for decompilation evaluation, running ASAP on it, even for a subset of tasks, would help establish whether the reported gains transfer beyond the papers current benchmark setup.
Answer #4:
Decompile-Bench-Eval reports re-execution only on HumanEval and MBPP, which we already evaluate. Its GitHub2025 subset lacks function-level executable tests and uses reference-based metrics such as R2I and edit similarity. Thus, its re-executable portion would repeat our existing benchmarks rather than extend their scope.
To test beyond short, single-function programs, we evaluated ASAP on BringUpBench without benchmark-specific fine-tuning. It contains complete, nontrivial C programs with minimal dependencies. We report re-execution rates (%) below.
| BringUpBench | O0 | O1 | O2 | O3 | Avg |
|---|---|---|---|---|---|
| Ghidra | 6.6 | 5.2 | 4.5 | 2.7 | 4.8 |
| IDA Pro | 25.4 | 21.6 | 21.4 | 18.3 | 21.7 |
| SK2Decompile | 34.3 | 29.1 | 24.9 | 19.7 | 27.0 |
| ASAP | 42.6 | 34.3 | 32.3 | 28.6 | 34.4 |
ASAP outperforms SK2Decompile and both rule-based decompilers at every optimization level. This comparison is particularly informative because SK2Decompile refines IDA Pro pseudocode, whose average re-execution rate is 21.7%, whereas ASAP refines Ghidra pseudocode, whose average is only 4.8%. Despite starting from substantially less reliable pseudocode, ASAP achieves 34.4%, exceeding the 27.0% achieved by SK2Decompile. These results show that ASAP’s gains transfer to a more demanding, domain-specific, and fully executable benchmark beyond HumanEval and MBPP.
Comment #5:
The prompt from A.2 is rather simple, maybe examples could guide the model. Please explain how you came up with this prompt.
Answer #5:
The refinement prompt follows LLM4Decompile because ASAP uses LLM4Decompile-9B as its decompilation LLM. Retaining the same minimal instruction keeps the evaluation consistent and avoids introducing prompt engineering as an additional factor. For the evaluation prompts, we reuse the GPT-Judge prompt from SK2Decompile to maintain metric comparability. We designed the Code Extractor prompt and refined its steps and rules through iterative analysis of output-formatting and function-selection failures.
Comment #6:
The code and data is not available. Can you please make it available as part of the review process? Without this, I cannot fully evaluate. My score could increase if I can check the code and data.
Answer #6:
We will release the model checkpoint, test data, and evaluation script on Hugging Face this week, and the training script, preprocessing pipeline, and configurations next month after cleanup.
Comment #7:
Limitation are discussed in Appendix C only, it would be great to discuss them in the main part of the paper.
Answer #7:
Thank you for this suggestion. We will move the limitations discussion from the appendix to the main text in the revised paper.
References:
[1] Tan et al. "Decompile-Bench: Million-Scale Binary-Source Function Pairs for Real-World Binary Decompilation." 2025.
[2] Basque et al. "Ahoy SAILR! There is No Need to DREAM of C: A Compiler-Aware Structuring Algorithm for Binary Decompilation." 2024.
[3] Feng et al. "Self-Constructed Context Decompilation with Fine-Grained Alignment Enhancement." 2024.
[4] Wong et al. "DecLLM: LLM-Augmented Recompilable Decompilation for Enabling Programmatic Use of Decompiled Code." 2025.
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper proposes ASAP, an assembly-source aligned pseudocode refinement framework for binary decompilation. The key idea is to keep decompiler-generated pseudocode as the main high-level input, while adding compact assembly-derived tokens as corrective low-level evidence. The method first aligns assembly and source representations with function-level and snippet-level contrastive learning, then uses a Q-Former to compress assembly features for an LLM-based refinement model. Experiments on HumanEval and MBPP across multiple optimization levels show clear gains in recompilation and re-execution rates over strong decompilation baselines.
Strengths and weaknesses
strengths
The paper addresses an important and practical problem in binary decompilation: pseudocode is readable but can hide semantic errors, while raw assembly is precise but difficult for LLMs to use directly. The proposed combination of source-aligned assembly representations, Q-Former compression, pseudocode masking, and assembly-advantage training is well motivated and technically sound. The empirical evaluation is also fairly strong, covering multiple optimization levels, several baselines, downstream binary-analysis tasks, and useful ablations showing that both the alignment and refinement components contribute to the final performance.
weakness
The main weaknesses are that the evaluation is still limited to C functions, x86_64, GCC, and two benchmark families, so generalization to other compilers, architectures, real-world projects, and obfuscated binaries remains unclear. The paper also lacks statistical significance analysis or error bars, and the code/data release plan is somewhat underspecified. In addition, while the limitations section is useful, the dual-use implications of stronger decompilation could be discussed more concretely.
Questions
-
How well does ASAP generalize beyond the current GCC/x86_64/C setting? Even a small experiment on Clang, another compiler version, or another architecture would strengthen the generalization claim.
-
Could the authors include a more detailed failure analysis, especially cases involving signedness, pointer arithmetic, or optimized control-flow idioms? This would clarify where assembly tokens help most.
Limitations
Mostly yes. The paper discusses functional equivalence, readability, and model scale limitations.
Final justification
Thank you to the author for the response; it addressed most of my concerns, so I have decided to maintain my positive rating.
Formatting concerns
None
1 comment
Rebuttal
We thank Reviewer 2MrZ for the detailed feedback and address each point below.
Comment #1:
W1/Q1: The evaluation is still limited to C functions, x86_64, GCC, and two benchmark families, so generalization to other compilers, architectures, real-world projects, and obfuscated binaries remains unclear.
Answer #1:
We address the four generalization axes raised in turn: source language, compiler and architecture, benchmark complexity, and obfuscation.
1. C++ Evaluation
Although ASAP was trained exclusively on C, we evaluated it on C++ functions from MBPP without additional fine-tuning.
| MBPP (C++) | O0 | O1 | O2 | O3 | Avg |
|---|---|---|---|---|---|
| Ghidra | 11.9 | 14.6 | 14.6 | 13.6 | 13.7 |
| SK2Decompile | 26.2 | 19.5 | 18.1 | 17.2 | 20.3 |
| ASAP | 22.4 | 18.4 | 16.6 | 16.2 | 18.4 |
ASAP improves the average re-execution rate over Ghidra from 13.7% to 18.4%, and SK2Decompile reaches a similarly low 20.3%. Both learning-based methods degrade sharply relative to their C results, where ASAP reaches 68.7% on MBPP, so the C++ gap is a shared limitation rather than one specific to ASAP. Of the 3,896 C++ samples, 2,893 (74.3%) contain STL or object-type markers and achieve only 3.7%, whereas the remaining 1,003 C-like scalar, array, and loop functions achieve 60.9%. The main difficulty is therefore recovering C++ object and template semantics rather than C++ syntax itself.
2. Cross-Platform
We tested ASAP on macOS-ARM64 binaries compiled with Clang and Windows-x86_64 binaries compiled with MSVC, without platform-specific fine-tuning. Rates are averaged over HumanEval and MBPP.
| Platform | O0/Od | O1 | O2 | O3/Ox | Avg |
|---|---|---|---|---|---|
| Linux-x86_64-GCC | 82.2 | 73.4 | 68.5 | 63.7 | 71.9 |
| macOS-ARM64-Clang | 77.4 | 52.5 | 51.3 | 48.8 | 57.5 |
| Windows-x86_64-MSVC | 72.5 | 63.4 | 61.3 | 57.9 | 63.8 |
Performance decreases on both unseen platforms. Windows changes the compiler and ABI while retaining the x86_64 ISA, whereas macOS additionally changes the ISA to ARM64, exposing the assembly encoder to different calling conventions, register roles, and instruction sequences. The larger decrease on macOS-ARM64-Clang is consistent with the cross-platform results reported by SK2Decompile. Nevertheless, ASAP maintains substantial functional recovery on both configurations without platform-specific fine-tuning.
3. Benchmark
Following Reviewer 3343's suggestion, we additionally evaluated ASAP on BringUpBench, a suite of real-world programs.
| BringUpBench | O0 | O1 | O2 | O3 | Avg |
|---|---|---|---|---|---|
| Ghidra | 6.6 | 5.2 | 4.5 | 2.7 | 4.8 |
| IDA Pro | 25.4 | 21.6 | 21.4 | 18.3 | 21.7 |
| SK2Decompile | 34.3 | 29.1 | 24.9 | 19.7 | 27.0 |
| ASAP | 42.6 | 34.3 | 32.3 | 28.6 | 34.4 |
ASAP leads at every optimization level, improving the average from 27.0% to 34.4%. See our response to Reviewer 3343 for additional context on BringUpBench.
4. Obfuscation
Following the obfuscation evaluation in SK2Decompile, we applied the same three Obfuscator-LLVM transformations [1] without obfuscation-specific fine-tuning. Rates are averaged over HumanEval and MBPP. Instruction substitution (SUB) replaces standard integer arithmetic or Boolean operators with functionally equivalent but more complex instruction sequences. Bogus control flow (BCF) inserts opaque predicates and cloned basic blocks containing junk instructions. Control-flow flattening (FLA) reorganizes the original basic blocks under a dispatcher loop controlled by a state variable.
| HumanEval + MBPP | O0 | O1 | O2 | O3 | Avg |
|---|---|---|---|---|---|
| Unobfuscated | 82.2 | 73.4 | 68.5 | 63.7 | 71.9 |
| BCF | 6.8 | 14.6 | 12.6 | 12.5 | 11.6 |
| FLA | 21.1 | 9.5 | 7.0 | 6.0 | 10.9 |
| SUB | 70.5 | 56.9 | 46.8 | 45.1 | 54.8 |
ASAP remains considerably more robust under SUB, above 50% on average, since SUB leaves the original control-flow structure intact. BCF and FLA, which alter that structure, are more challenging, with average rates of 11.6% and 10.9%; SK2Decompile and LLM4Decompile report similar degradation. We view dedicated de-obfuscation as complementary to ASAP and integrating the two as a natural direction for future work.
5. Overall
All of these evaluations use the same ASAP model without language-, platform-, benchmark-, or obfuscation-specific fine-tuning, showing that ASAP is not restricted to short C functions compiled with GCC for Linux-x86_64.
Comment #2:
W2: The paper lacks error bars or significance analysis, and the code/data release plan is underspecified.
Answer #2:
We independently trained ASAP three times under the same configuration and report the mean and sample standard deviation.
| Re-execution rate | O0 | O1 | O2 | O3 | Avg |
|---|---|---|---|---|---|
| Three-runs | 81.5 ± 1.0 | 73.2 ± 1.0 | 67.0 ± 1.6 | 63.9 ± 0.6 | 71.4 ± 0.7 |
| ASAP | 82.2 | 73.4 | 68.5 | 63.7 | 71.9 |
| Recompilation rate | |||||
| Three-runs | 96.0 ± 0.9 | 96.5 ± 0.6 | 96.6 ± 0.7 | 95.5 ± 0.3 | 96.1 ± 0.6 |
| ASAP | 96.9 | 96.5 | 97.0 | 95.9 | 96.6 |
The originally reported averages fall within one sample standard deviation of these three-run means, and every per-level value differs by at most 1.5 points. We will release the model checkpoint, test data, and evaluation script on Hugging Face this week, and the training script, preprocessing pipeline, and configurations next month after cleanup.
Comment #3:
W3: The dual-use implications of stronger decompilation could be discussed more concretely.
Answer #3:
We agree the dual-use implications deserve a more concrete treatment. ASAP is intended for legitimate applications such as malware analysis, vulnerability auditing, and legacy software maintenance, and the same capability may lower the effort required for unauthorized reverse engineering or vulnerability discovery. ASAP operates only on user-provided binaries and does not acquire targets, execute exploits, or bypass access controls, so its dual-use profile is similar to that of widely used reverse-engineering tools such as objdump, Ghidra, and IDA Pro.
Comment #4:
Q2: Could the authors include a more detailed failure analysis, especially cases involving signedness, pointer arithmetic, or optimized control-flow idioms?
Answer #4:
To isolate the contribution of the assembly tokens, we compare the Full and Zero-Asm conditions of Appendix B.2, which differ only in whether the assembly tokens carry function-specific features or zero vectors. We call their outputs ASAP and Pseudocode-only.
In the cases we inspected, ASAP succeeds while Pseudocode-only fails mainly on type- and ABI-level facts: where the pseudocode leaves a type as undefined or omits a return value, the two conditions resolve it differently, while the branch and loop structure is carried over under both. We walk through a representative case in detail and then summarize a second recurring pattern.
Erased Element Type and Pointer Stride
// Source
char func0(char tup1[], int index, int size) {
if (index < 0) index = size + index;
return tup1[index]; // one-byte element access
}
// Ghidra: opaque one-byte type, not char
undefined func0(long param_1, int param_2, int param_3) {
if (param_2 < 0) param_2 = param_3 + param_2;
return *(undefined *)(param_1 + param_2); // long base, unscaled offset
}
// Pseudocode-only: int * implies a four-byte stride
int func0(int *arr, int idx, int n) {
if (idx < 0) idx += n;
return arr[idx];
}
Assembly
ADD EDX, ESI ; size + index
TEST ESI, ESI ; sign flag from index
CMOVS ESI, EDX ; if negative, use size + index
MOVSXD RSI, ESI ; sign-extend for 64-bit addressing
MOVZX EAX, byte ptr [RDI + RSI*1] ; one-byte load at scale 1
// ASAP: char * implies a one-byte stride
char func0(char *x, int i, int n) {
if (i < 0) return x[i + n];
else return x[i];
}
Analysis. Ghidra preserves the signed check as param_2 < 0, but the array becomes a long base with an unscaled offset and an opaque undefined element type, so nothing in the pseudocode ties the pointer to a stride. Pseudocode-only restores an array interface but chooses int *: for idx=3 it reads byte offset 12 instead of 3. The assembly states the element size and the stride explicitly in MOVZX ... byte ptr [RDI + RSI*1], and TEST, CMOVS, and MOVSXD show that the index is signed and sign-extended for 64-bit addressing. ASAP commits to char *, matching the source. Both conditions recover the signed negative-index check, so signedness alone is not the discriminating factor; what the assembly supplies is the element type behind Ghidra's undefined.
A second pattern concerns return semantics. When a function allocates a buffer and returns it, Ghidra sometimes declares the function void and drops the returned pointer, and Pseudocode-only follows that interface even when the loop body is faithful. In the assembly, malloc returns its pointer in RAX and RAX is unchanged before ret, so under the AMD64 ABI the allocated pointer is the return value, which ASAP recovers as an int * return type.
Both patterns concern type- and ABI-level facts that the decompiler erases or infers incorrectly, while the branch and loop structure is preserved under both conditions. Because the assembly tokens are compressed representations, we characterize these gains at this level rather than attributing them to individual instructions.
References:
[1] Junod et al. "Obfuscator-LLVM -- Software Protection for the Masses." 2015.
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper presents ASAP, a framework designed to improve Large Language Model (LLM) based binary decompilation by integrating assembly-level representations. Existing LLM decompilers typically rely on refining rule-based pseudocode, which is often lossy, heuristic, and error-prone—especially in aggressively optimized binaries where low-level details are lost. ASAP addresses this by using a Q-Former to compress source-aligned assembly features, conditioning the LLM on both the raw assembly and the initial pseudocode. To ensure the model actually utilizes the assembly features rather than over-relying on the flawed pseudocode, the authors introduce stochastic pseudocode masking and a relative assembly-advantage loss during training. Evaluated across two benchmarks, ASAP significantly outperforms existing baselines, improving average re-execution rates from 64.7% to 71.9% and recompilation rates from 91.6% to 96.6%.
Strengths and weaknesses
Strengths Dual-Modality Integration: The framework successfully incorporates both assembly instructions and decompiler-generated pseudocode. While previous methods have typically relied on a single format, this work effectively leverages the combined strengths of both representations to guide the decompilation process.
Advanced Assembly Projection: Rather than naïvely appending assembly text or adding raw embeddings, the architecture employs a Q-Former to intelligently extract and project relevant assembly features. This allows the model to contextually align the low-level details with the pseudocode.
Effective Mitigation of Overfitting: The implementation of stochastic pseudocode masking is a well-designed training strategy. It effectively forces the model to learn from the assembly features, preventing it from over-relying on the flawed initial pseudocode and ignoring the low-level semantics.
Weaknesses Suboptimal Evaluation Benchmarks: The evaluation relies on datasets like ExeBench, HumanEval, and MBPP, which are not perfectly suited for assessing the complex nuances of binary decompilation. The paper would be significantly strengthened by evaluating the framework on more rigorous, domain-specific benchmarks, such as BringUpBench.
Outdated Base Model Initialization: The decision to initialize the model weights using UniXCoder is questionable. Because UniXCoder is a relatively older architecture and modern decoder-only LLMs have since demonstrated vastly superior performance on code-related tasks, the authors should justify this choice or, ideally, utilize a more contemporary model as their starting point for a fairer comparison.
Questions
Refer to weakness.
Limitations
yes
Final justification
Thanks for the response, I would maintain my already positive score.
Formatting concerns
no
1 comment
Rebuttal
We sincerely thank Reviewer 3343 for the constructive feedback on the evaluation benchmarks and model initialization.
Comment #1:
W1: Weaknesses Suboptimal Evaluation Benchmarks. The evaluation relies on datasets like ExeBench, HumanEval, and MBPP, which are not perfectly suited for assessing the complex nuances of binary decompilation. The paper would be significantly strengthened by evaluating the framework on more rigorous, domain-specific benchmarks, such as BringUpBench.
Answer #1:
In response to this suggestion, we additionally evaluated ASAP on BringUpBench, a suite of nontrivial C programs designed for bringing up newly developed CPUs, accelerators, compilers, and operating systems. These programs have zero library dependencies and near-zero system dependencies. This evaluation extends beyond the short, single-function tasks in HumanEval and MBPP to functions drawn from complete benchmark programs. We report re-execution rates (%) below.
| BringUpBench | O0 | O1 | O2 | O3 | Avg |
|---|---|---|---|---|---|
| Ghidra | 6.6 | 5.2 | 4.5 | 2.7 | 4.8 |
| IDA Pro | 25.4 | 21.6 | 21.4 | 18.3 | 21.7 |
| SK2Decompile | 34.3 | 29.1 | 24.9 | 19.7 | 27.0 |
| ASAP | 42.6 | 34.3 | 32.3 | 28.6 | 34.4 |
As shown above, ASAP outperforms SK2Decompile and both rule-based decompilers at every optimization level. This comparison is particularly notable because SK2Decompile refines IDA Pro pseudocode, whereas ASAP refines Ghidra pseudocode. On BringUpBench, IDA Pro achieves an average re-execution rate of 21.7%, compared with only 4.8% for Ghidra. Despite starting from pseudocode with substantially lower re-executability, ASAP achieves 34.4%, exceeding the 27.0% achieved by SK2Decompile. This result shows that ASAP can recover substantial functional behavior even when the initial pseudocode is unreliable. More broadly, the BringUpBench evaluation demonstrates that ASAP remains effective on a more rigorous, domain-specific decompilation benchmark.
Comment #2:
W2: Outdated Base Model Initialization. The decision to initialize the model weights using UniXCoder is questionable. Because UniXCoder is a relatively older architecture and modern decoder-only LLMs have since demonstrated vastly superior performance on code-related tasks, the authors should justify this choice or, ideally, utilize a more contemporary model as their starting point for a fairer comparison.
Answer #2:
To address this concern, we evaluated two recent decoder-only embedding models, Jina-Code-Embeddings-0.5B [1] and Qwen3-Embedding-0.6B [2], as alternative initializations for both the assembly and source encoders, while keeping all other training and evaluation settings unchanged. To integrate these models, we construct sequence representations from their final-layer token hidden states and train the assembly encoder with the function-level and snippet-level contrastive objectives. We report re-execution rates (%) below.
| HumanEval + MBPP | O0 | O1 | O2 | O3 | Avg |
|---|---|---|---|---|---|
| UniXCoder-125M | 82.2 | 73.4 | 68.5 | 63.7 | 71.9 |
| Jina-Code-Embeddings-0.5B | 85.1 | 73.0 | 65.2 | 64.5 | 71.9 |
| Qwen3-Embedding-0.6B | 83.6 | 73.3 | 68.9 | 62.6 | 72.1 |
As shown above, the three encoder initializations achieve similar average re-execution rates. Although Jina-Code-Embeddings performs better at O0 and Qwen3-Embedding at O2, neither decoder-only initialization provides a consistent advantage over UniXCoder across optimization levels.
Given the comparable re-execution performance, we retain UniXCoder because it is substantially smaller. ASAP encodes up to 64 assembly chunks per function, making encoder size an important efficiency consideration. The comparable results with Jina and Qwen3 also confirm that ASAP can incorporate contemporary decoder-only embedding models.
References:
[1] Kryvosheieva et al. "Efficient Code Embeddings from Code Generation Models." 2025.
[2] Zhang et al. "Qwen3 Embedding: Advancing Text Embedding and Reranking Through Foundation Models." 2025.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Rebuttal
We appreciate Reviewer kWyY's detailed feedback and address each comment below.
Comment #1:
Major1: HumanEval and MBPP are trivial single-function programs with low cyclomatic complexity. The paper's motivation is handling complex optimized binaries, yet it never tests this regime. Decompile-Bench-Eval, with real GitHub binaries, was available before submission.
Answer #1:
Thank you for raising this concern. We agree HumanEval and MBPP do not adequately represent complex program binaries. Decompile-Bench-Eval reports re-execution only on HumanEval and MBPP, while its GitHub2025 subset lacks function-level executable tests and relies on reference-based metrics (R2I, edit similarity). Its executable evaluation would therefore repeat our benchmarks rather than probe functional recovery in a harder regime.
We instead evaluated ASAP on BringUpBench, which contains complete, nontrivial C programs with minimal dependencies, without benchmark-specific fine-tuning. Re-execution rates (%) are below.
ASAP outperforms SK2Decompile and both rule-based decompilers at every optimization level. The comparison is informative because ASAP refines Ghidra pseudocode, at only 4.8% average re-execution, while SK2Decompile refines the much stronger IDA Pro pseudocode at 21.7%. Despite this weaker starting point, ASAP reaches 34.4% against 27.0%. This executable evaluation shows ASAP’s gains extend beyond short single-function tasks to demanding programs and optimized binaries.
Comment #2:
Major2: GPT-4-class baselines are missing without explanation. ... HELIOS reports GPT-4.1 Mini achieving 89.6% average compilability on HumanEval-Decompile, competitive with ASAP's recompilation gains. In my experience GPT models perform really well. Cost could be a reason, but why omit them?
Answer #2:
Thank you for identifying this omission. Our task-agnostic baselines prioritized lower-cost, high-throughput models suitable for large numbers of functions, and we excluded GPT-family generation models because GPT-5-mini also served as the GPT-Judge, risking same-family evaluator bias. We agree this should not preclude execution-based comparison, and therefore evaluated GPT-4.1-mini, GPT-5-mini, and GPT-5.5 in the same Ghidra-pseudocode pipeline. Re-execution rates (%) are below.
The GPT models are strong task-agnostic baselines. GPT-5.5 achieves a higher average than ASAP on HumanEval, while ASAP remains higher on MBPP and exceeds GPT-4.1-mini and GPT-5-mini on both. We will add these GPT-class comparisons to the revised evaluation.
Following your reference to HELIOS, we also compared recompilation rates on the HumanEval levels reported there.
ASAP achieves a higher recompilation rate than GPT-4.1-mini with HELIOS at every reported level, and we will include this comparison in the revised paper.
Comment #3:
Major3: We have seen that embedding structural information usually provides better gains (SK2Decompile for example), and I did not see discussion related to that.
Answer #3:
Thank you for this important observation. ASAP uses program structure indirectly through Ghidra pseudocode, which retains high-level constructs such as branches, loops, and expressions, and its masking deliberately preserves structural tokens and control-flow keywords so this structure stays visible. The assembly side is complementary: instruction chunks are encoded in order with chunk-position embeddings, without explicit control-flow or data-flow edges. SK2Decompile differs, as its skeleton separates structure from naming.
This indirect use of structure is already effective: ASAP surpasses SK2Decompile on re-execution (71.9% versus 64.7%) and recompilation (96.6% versus 91.6%), and on BringUpBench does so from a far weaker pseudocode starting point. Our masking ablation and attention analysis quantify this reliance on structure versus assembly.
We nevertheless agree explicit structure is promising. ASAP could add control-flow and data-flow edges to the assembly encoder or Q-Former so evidence from related basic blocks is aggregated structurally, or be combined with a skeleton-to-skin pipeline that applies assembly evidence during structure recovery and names identifiers separately. We will make this discussion explicit and add both as future work.
Comment #4:
Major4: SC²Dec/FAE (EMNLP 2024) is not cited. FAE aligns assembly to source at the statement level using compiler debug info, with supervision nearly identical to ASAP's snippet-level alignment.
Answer #4:
Thank you for identifying this missing reference. We agree SC²Dec/FAE is closely related and will cite and distinguish it in the revised paper. Both methods derive local assembly–source correspondences from compiler debugging information, and in both cases that information builds training data only and is never needed at inference.
The difference lies in how the alignment is consumed. FAE converts each correspondence into a generation target, supervising an assembly-to-source model to emit source code for a given block alongside its end-to-end objective. ASAP treats it as a representation-learning signal: because optimizations may move, merge, or remove statements, we use snippets with overlapping source-line mappings as weak positives rather than exact statement-level targets, and train the assembly encoder with function- and snippet-level contrastive objectives. The Q-Former compresses these representations to augment pseudocode refinement. FAE thus improves direct assembly-to-source generation, while ASAP corrects a pseudocode hypothesis with aligned assembly.
We also evaluated FAE in the same re-execution pipeline.
ASAP outperforms FAE at every optimization level. Fine-grained alignment is thus valuable in both settings, while ASAP further pairs aligned assembly with the high-level structure of pseudocode.
Comment #5:
Minor1: Nova (ICLR 2025) also uses contrastive learning with optimization-level grouping; the cross-modal vs intra-modal distinction should be explicit.
Answer #5:
Thank you for pointing out this related work. We will cite Nova and clarify the distinction. Nova combines hierarchical attention with two contrastive objectives: functionality contrastive learning brings source code and assembly variants of the same function closer, while optimization contrastive learning organizes representations of one function across O0–O3 to model the progression from compiler optimization. The latter is intra-modal.
ASAP is cross-modal: its multi-positive function-level objective associates all assembly variants of a function with the corresponding source representation, and its snippet-level objective uses debugging information for weakly aligned local pairs. ASAP imposes no ordered O0–O3 distance and pretrains no standalone generative assembly model; the aligned representations serve as corrective evidence for pseudocode refinement through the Q-Former. We will add this to the revised paper.
Comment #6:
Minor2: Only GCC x86_64 + Ghidra is evaluated; SK2Decompile tests GCC and Clang.
Answer #6:
Following your comment, we evaluated the same ASAP model on macOS-ARM64 binaries built with Clang and Windows-x86_64 binaries built with MSVC, without platform-specific fine-tuning.
ASAP transfers to both unseen configurations, although performance decreases relative to Linux-x86_64-GCC, particularly on optimized ARM64 binaries. Windows keeps the x86_64 instruction set architecture (ISA) but changes the compiler, operating system, and application binary interface, whereas macOS also moves to ARM64, with different instructions, register roles, and calling conventions. The larger macOS decrease is consistent with this broader shift and with the cross-platform trend SK2Decompile reports. ASAP still retains substantial functional recovery on both.