llasm: Naming Functions in Binaries by Fusing Encoder-only and Decoder-only LLMs
ACM Transactions on Software Engineering and Methodology · 31.05.2025 · 34 (4) · 1-22
DOI: 10.1145/3702988 ↗Kurz gefasst
Fachartikel in der Zeitschrift ACM Transactions on Software Engineering and Methodology, online erschienen am 28.04.2025. Verfasst von Zihan Sha und 6 weiteren Autor:innen. Die Arbeit wurde bisher 15-mal zitiert (Crossref) und nennt 47 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0).
Abstract (Originalsprache)
Predicting function names in stripped binaries, which requires succinctly summarizing semantics of binary code in natural languages, is a crucial but challenging task. Recently, many machine learning based solutions have been proposed. However, they have poor generalizability, i.e., fail to handle unseen binaries. To advance the state of the art, we present large assembly language Model ( llasm ) , a novel framework which fuses encoder-only and decoder-only LLMs for function name prediction. It refines encoder-only models to preserve more binary information and learn better binary representations. Then it adopts a novel architecture to project the encoding to the input space of a decoder-only natural language model, which enables it to have better capability of inferring general knowledge and better generalizability. We have evaluated llasm in the BinaryCorp and Debin datasets. llasm outperforms the state-of-the-art function name prediction tools by up to 19.9%, 40.7%, and 36.5% in precision, recall, and F1 score, with significantly better generalizability in unseen binaries. Our case studies further demonstrate the practical use cases of llasm in analyzing real-world malware, showing the usefulness of function name prediction.
Zitieren
APA
Sha, Z., Wang, H., Gao, Z., Shu, H., Zhang, B., Wang, Z., & Zhang, C. (2025). llasm: Naming Functions in Binaries by Fusing Encoder-only and Decoder-only LLMs. ACM Transactions on Software Engineering and Methodology, 34(4), 1-22. https://doi.org/10.1145/3702988
Vancouver
Sha Z, Wang H, Gao Z, Shu H, Zhang B, Wang Z, et al. llasm: Naming Functions in Binaries by Fusing Encoder-only and Decoder-only LLMs. ACM Transactions on Software Engineering and Methodology. 2025;34(4):1-22. doi:10.1145/3702988
BibTeX
@article{Sha2025,
author = {Sha, Zihan and Wang, Hao and Gao, Zeyu and Shu, Hui and Zhang, Bolun and Wang, Ziqing and Zhang, Chao},
title = {llasm: Naming Functions in Binaries by Fusing Encoder-only and Decoder-only LLMs},
journal = {ACM Transactions on Software Engineering and Methodology},
year = {2025},
volume = {34},
number = {4},
pages = {1--22},
doi = {10.1145/3702988}
}
EUVIMED