← Lab /AI/ML

LLM4CodeRE improves assembly-to-source and source-to-assembly decompilation

LLM4CodeRE outperforms existing decompilation tools and general-purpose code models

AI/ML arXiv 7 Apr 2026 Method Prototype evidence

Published as “LLM4CodeRE: Generative AI for Code Decompilation Analysis and Reverse Engineering”

Why it matters

The approach can speed up malware analysis by producing more accurate and executable decompiled code, potentially reducing analyst effort.

Summary

LLM4CodeRE achieves higher semantic similarity (0.85), edit similarity (0.63), and re-executability (86%) than prior decompilation tools and generic code models. The model is pretrained on a large corpus of real malware binaries and fine-tuned with Multi-Adapter and Seq2Seq Unified strategies. Experiments on the SBAN dataset (676 k samples) show consistent gains across both assembly-to-source and source-to-assembly tasks, though the Multi-Adapter variant has lower re-executability (53%) and edit similarity on source-to-assembly remains modest (0.27). Evidence is based on reported metric values; no additional external validation is provided.

What they found 2

  1. LLM4CodeRE (Multi-Adapter) attains the highest semantic similarity (0.85) and edit similarity (0.63) on assembly-to-source translation

    “LLM4CodeRE (MA) achieves the highest semantic similarity (0.85) and edit similarity (0.63), followed by the S2S variant (0.81 / 0.61), while DeepSeek and LLM4Decompile obtain lower scores.”

  2. LLM4CodeRE (Seq2Seq) reaches the highest re-executability rate (86%) for assembly-to-source translation

    “LLM4CodeRE (S2S) achieves the highest re-executability rate (86%), substantially outperforming LLM4CodeRE (MA) (53%), LLM4Decompile (48%), and DeepSeek (15%).”

Caveats 6

  • LLM4CodeRE (MA) shows a much lower re-executability (53%) than the Seq2Seq variant, indicating a trade-off between adapter-based adaptation and functional correctness.
  • Even the best model’s edit similarity on source-to-assembly is only 0.27, suggesting limited structural fidelity in the more challenging direction.
  • The proposed framework primarily targets Windows PE malware and may not generalize to other formats such as ELF or mobile binaries.
  • Automated decompilation introduces label noise, particularly for heavily obfuscated samples.
  • Reexecutability is evaluated in a sandboxed environment with limited behavioral coverage, and embedding-based semantic metrics may not fully capture functional equivalence.
  • All models use a fixed context length of 1024 tokens, with over-length samples uniformly excluded.

What’s new here 4

  • Domain-adaptive pretraining on real malware binaries rather than generic code corpora
  • Bidirectional unified model supporting both assembly-to-source and source-to-assembly translation
  • Hybrid fine-tuning with Multi-Adapter modules and Seq2Seq task-conditioned prefixes
  • Evaluation that includes functional re-executability in a sandboxed environment