← Lab /AI/ML

LLM decompilers often recompile but change behavior, hiding bugs

LLM-based decompilers can produce code that builds and passes tests yet diverges from original functionality and omits disclosed vulnerabilities

AI/ML arXiv 4 Sep 2026 Measurement Prototype evidence

Published as “When LLM Decompilers Recompile More and Preserve Less”

Why it matters

Security tools that rely solely on recompilability or shipped test suites may miss functional regressions and vulnerability-removing rewrites introduced by LLM decompilers.

Summary

LLM-based decompilers can recompile and pass all shipped tests yet still diverge from the original behavior on unseen inputs, affecting up to 4.9% of passers overall and as many as 13% for a single system; they also cause crash-absence in up to 8.7% of CVE-grounded functions. The authors evaluated eight systems across nine configurations on established decompilation corpora, a GitHub library benchmark (291 functions) and a CVE benchmark (287 functions), using a new oracle that fuzzes driver-generated inputs. Evidence is strong, covering >15 k candidate functions and showing consistent trade-offs between build rate and behavioral agreement.

What they found 3

  1. 4.9% of candidates that pass all shipped tests still diverge on the generated corpus

    “Replaying every candidate through the three released suites (ported precisely so the shipped tests and Decompile-Diverge score identical bytes), 4.9% of the 12,133 such passers diverge, 77% of them by changing an output with no crash at all.”

  2. LLM4Decompile raises Ghidra's build rate from 75% to 90% but its matched rate drops from 74% to 62%

    “On real code the refiners buy build rate at a cost to behavioral agreement. LLM4Decompile posts the largest build gain of any refiner, lifting Ghidra from 75% to 90%, while its Matched rate falls from 74% to 62%.”

  3. Up to 8.7% of CVE functions lose their original crash after LLM decompilation (Crash Absence)

    “LLM4Decompile raises Ghidra’s Build to 64% at 38% Matched, but 25 of its 183 builds lose the reference crash: a full-track Crash Absence rate of 25/287, or 8.7% (95% CI [6.0%, 12.5%]), with leave-one-project-out bootstrapping confirming no single project drives it.”

Caveats 5

  • DeGPT-Qwen, which edits in place, stays at ≤5% Divergence.
  • DeGPT-Qwen tracks Ghidra almost exactly (30% Build, 27% Matched, 3% Divergence, 0% Crash Absence).
  • The conflated factors limit this result to an observation about offdistribution robustness.
  • The reported gap is conservative because Divergence rates cover only code that compiles; many hallucinated programs fail to build and are excluded.
  • the association supports the proposed mechanism without establishing causality.

What’s new here 3

  • Introduces Decompile-Diverge, an automated oracle that synthesizes drivers and fuzzes inputs to compare decompiled code behavior without relying on fixed tests.
  • Provides two new benchmark suites: 300 real-world GitHub library functions and 287 CVE-grounded vulnerable functions.
  • Shows that higher recompilability achieved by LLM refiners often comes at the cost of behavioral divergence and loss of vulnerability-triggering crashes.