Decaf: Improving Neural Decompilation with Automatic Feedback and Search

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Shypula, Alexander, Bastani, Osbert, Schwartz, Edward
Format: Preprint
Published: 2026
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866911672961073152
author Shypula, Alexander
Bastani, Osbert
Schwartz, Edward
author_facet Shypula, Alexander
Bastani, Osbert
Schwartz, Edward
contents Decompilers are useful tools used in reverse engineering to understand compiled source code. Reconstructing source code from compiled binaries is a challenging task, because high-level syntax, identifiers, and custom data types are generally lost as the compiler translates human-readable code to low-level machine code. Deterministic decompilers are useful tools for binary analysis, but can struggle to infer idiomatic syntax and identifier names. Generative AI models are a natural fit for reconstructing high-level syntax, identifiers, and types, but they can still suffer by hallucinating improper programming constructs and semantics. Instead of attempting to improve neural decompilers with more data and more training, we argue that compiler feedback can be used to dramatically improve the semantic correctness of neural decompiler outputs via search. Our system, Decaf (DECompilation with Automated Feedback), raises the neural decompilation rate from 26.0% on ExeBench to 83.9% on the Real -O2 split without sacrificing similarity to the original source code. We also find our automatic feedback methodology is highly effective for improving weaker neural decompilation models.
format Preprint
id arxiv_https___arxiv_org_abs_2605_11501
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Decaf: Improving Neural Decompilation with Automatic Feedback and Search
Shypula, Alexander
Bastani, Osbert
Schwartz, Edward
Software Engineering
Artificial Intelligence
Cryptography and Security
Decompilers are useful tools used in reverse engineering to understand compiled source code. Reconstructing source code from compiled binaries is a challenging task, because high-level syntax, identifiers, and custom data types are generally lost as the compiler translates human-readable code to low-level machine code. Deterministic decompilers are useful tools for binary analysis, but can struggle to infer idiomatic syntax and identifier names. Generative AI models are a natural fit for reconstructing high-level syntax, identifiers, and types, but they can still suffer by hallucinating improper programming constructs and semantics. Instead of attempting to improve neural decompilers with more data and more training, we argue that compiler feedback can be used to dramatically improve the semantic correctness of neural decompiler outputs via search. Our system, Decaf (DECompilation with Automated Feedback), raises the neural decompilation rate from 26.0% on ExeBench to 83.9% on the Real -O2 split without sacrificing similarity to the original source code. We also find our automatic feedback methodology is highly effective for improving weaker neural decompilation models.
title Decaf: Improving Neural Decompilation with Automatic Feedback and Search
topic Software Engineering
Artificial Intelligence
Cryptography and Security
url https://arxiv.org/abs/2605.11501