Self-Constructed Context Decompilation with Fined-grained Alignment Enhancement

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Feng, Yunlong, Teng, Dechuan, Xu, Yang, Mu, Honglin, Xu, Xiao, Qin, Libo, Zhu, Qingfu, Che, Wanxiang
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866914963225837568
author Feng, Yunlong
Teng, Dechuan
Xu, Yang
Mu, Honglin
Xu, Xiao
Qin, Libo
Zhu, Qingfu
Che, Wanxiang
author_facet Feng, Yunlong
Teng, Dechuan
Xu, Yang
Mu, Honglin
Xu, Xiao
Qin, Libo
Zhu, Qingfu
Che, Wanxiang
contents Decompilation transforms compiled code back into a high-level programming language for analysis when source code is unavailable. Previous work has primarily focused on enhancing decompilation performance by increasing the scale of model parameters or training data for pre-training. Based on the characteristics of the decompilation task, we propose two methods: (1) Without fine-tuning, the Self-Constructed Context Decompilation (sc$^2$dec) method recompiles the LLM's decompilation results to construct pairs for in-context learning, helping the model improve decompilation performance. (2) Fine-grained Alignment Enhancement (FAE), which meticulously aligns assembly code with source code at the statement level by leveraging debugging information, is employed during the fine-tuning phase to achieve further improvements in decompilation. By integrating these two methods, we achieved a Re-Executability performance improvement of approximately 3.90% on the Decompile-Eval benchmark, establishing a new state-of-the-art performance of 52.41%. The code, data, and models are available at https://github.com/AlongWY/sccdec.
format Preprint
id arxiv_https___arxiv_org_abs_2406_17233
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Self-Constructed Context Decompilation with Fined-grained Alignment Enhancement
Feng, Yunlong
Teng, Dechuan
Xu, Yang
Mu, Honglin
Xu, Xiao
Qin, Libo
Zhu, Qingfu
Che, Wanxiang
Software Engineering
Computation and Language
Decompilation transforms compiled code back into a high-level programming language for analysis when source code is unavailable. Previous work has primarily focused on enhancing decompilation performance by increasing the scale of model parameters or training data for pre-training. Based on the characteristics of the decompilation task, we propose two methods: (1) Without fine-tuning, the Self-Constructed Context Decompilation (sc$^2$dec) method recompiles the LLM's decompilation results to construct pairs for in-context learning, helping the model improve decompilation performance. (2) Fine-grained Alignment Enhancement (FAE), which meticulously aligns assembly code with source code at the statement level by leveraging debugging information, is employed during the fine-tuning phase to achieve further improvements in decompilation. By integrating these two methods, we achieved a Re-Executability performance improvement of approximately 3.90% on the Decompile-Eval benchmark, establishing a new state-of-the-art performance of 52.41%. The code, data, and models are available at https://github.com/AlongWY/sccdec.
title Self-Constructed Context Decompilation with Fined-grained Alignment Enhancement
topic Software Engineering
Computation and Language
url https://arxiv.org/abs/2406.17233