Binary decompilation is fundamental to security tasks such as vulnerability discovery, malware inspection, and executable-only program understanding. Recent LLM-based decompilation methods have shown promising results, but most still follow a single-turn generation paradigm: given assembly code or decompiler-produced pseudo-code, the model generates one output and stops. Consequently, the generated code may appear readable or even compile successfully, yet still deviate from the behavior of the original binary and mislead downstream analysis.
This paper presents AutoDecompiler, a decompilation-specialized LLM trained with reinforcement learning for feedback-driven multi-turn binary decompilation. Instead of treating decompilation as one-shot code generation, AutoDecompiler formulates it as an iterative refinement process, where the model revises generated code based on compilation, execution, and input/output testing feedback. To enable this process, we design decompilation-specific rewards that capture code validity, recompilability, execution consistency, and semantic fidelity. We further construct stage-aware diagnostic feedback from compiler errors, execution failures, and failed test cases, and introduce progress-aware trajectory rewarding and turn-aware advantage reweighting to encourage beneficial revisions while suppressing regressions.
We train the AutoDecompiler family and evaluate it across different input settings, model scales, and benchmarks. Experimental results show that AutoDecompiler consistently outperforms its single-turn counterparts under the same model size and input setting, achieving clear improvements in behavioral re-executability. These results demonstrate that learning to exploit program feedback with reinforcement learning is an effective direction for improving the functional correctness of LLM-based binary decompilation.
CHISEL-ing Back Source Code with AI-enabled Iterative Recovery
A*STAR Institute of Advanced Intelligence and Computing(A*STAR先进智能与计算研究所);Coimbatore Institution of Technology(科因巴托尔理工学院);National University of Singapore(新加坡国立大学)
A Pair Programming Framework for Code Generation via Multi-Plan Exploration and Feedback-Driven Refinement
State Key Laboratory for Novel Software Technology(计算机软件新技术国家重点实验室);Nanjing University(南京大学);National Institute of Healthcare Data Science(国家卫生健康数据科学研究院)
Effective LLM Code Refinement via Property-Oriented and Structurally Minimal Feedback
School of Software, Beihang University, Beijing, China(北京航空航天大学软件学院);Shanghai AI Laboratory, Shanghai, China(上海人工智能实验室);Shanghai Innovation Institute, Shanghai, China(上海创新研究院)
OpenCodeInterpreter: Integrating Code Generation with Execution and Refinement
Multimodal Art Projection Research Community(多模态艺术投影研究共同体);University of Waterloo(滑铁卢大学);Allen Institute for Artificial Intelligence(艾伦人工智能研究所);HKUST(香港科技大学);IN.AI Research(IN.AI研究机构)
CoDe-R: Refining Decompiler Output with LLMs via Rationale Guidance and Adaptive Inference
School of Computer Science and Technology / School of Artificial Intelligence, China University of Mining and Technology(计算机科学与技术学院/人工智能学院,中国矿业大学);Mine Digitization Engineering Research Center of the Ministry of Education, China University of Mining and Technology(教育部矿山数字化工程研究中心,中国矿业大学)
A-ProS: Towards Reliable Autonomous Programming Through Multi-Model Feedback
Dept. of Computer Science and Engineering, University of Dhaka(达卡大学计算机科学与工程系);Dept. of Information Systems, University of Maryland, Baltimore County(马里兰大学巴尔的摩县信息学院);University of Maryland, Baltimore County(马里兰大学巴尔的摩县)