Extending Source Code Pre-Trained Language Models to Summarise Decompiled Binaries
Not on the map. Why?
Abstract (arXiv)
Reverse engineering binaries is required to understand and analyse programs for which the source code is unavailable. Decompilers can transform the largely unreadable binaries into a more readable source code-like representation. However, reverse engineering is time-consuming, much of which is taken up by labelling the functions with semantic information. While the automated summarisation of decompiled code can help Reverse Engineers understand and analyse binaries, current work mainly focuses on summarising source code, and no suitable dataset exists for this task. In this work, we extend large pre-trained language models of source code to summarise decompiled binary functions. Furthermore, we investigate the impact of input and data properties on the performance of such models. Our approach consists of two main components; the data and the model. We first build CAPYBARA, a dataset of 214K decompiled function-documentation pairs across various compiler optimisations. We extend CAPYBARA further by generating synthetic datasets and deduplicating the data. Next, we fine-tune the CodeT5 base model with CAPYBARA to create BinT5. BinT5 achieves the state-of-the-art BLEU-4 score of 60.83, 58.82, and 44.21 for summarising source, decompiled, and synthetically stripped decompiled code, respectively. This indicates that these models can be extended to decompiled binaries successfully. Finally, we found that the performance of BinT5 is not heavily dependent on the dataset size and compiler optimisation level. We recommend future research to further investigate transferring knowledge when working with less expressive input formats such as stripped binaries.
Key facts. Cited by 25 papers in the map (data through 7 Oct 2026). Builds on 17 of its 47 references that are in the map. First posted on arXiv 4 Jan 2023.
Builds on
17 of 47 references.
References · 17
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
- 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
- 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 638
- 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 600
- 2016FastText.zip: Compressing text classification modelscited by 331
- 2018The Adverse Effects of Code Duplication in Machine Learning Models of Codecited by 123
- 2016A Convolutional Attention Network for Extreme Summarization of Source Codecited by 90
- 2021On the Evaluation of Neural Code Summarizationcited by 47
5 more
- 2019Recommendations for Datasets for Source Code Summarizationcited by 46
- 2021Multilingual training for Software Engineeringcited by 43
- 2019DIRE: A Neural Approach to Decompiled Identifier Namingcited by 36
- 2021Variable Name Recovery in Decompiled Binary Code using Constrained Masked Language Modelingcited by 7
- 2021Learning to Find Usages of Library Functions in Optimized Binariescited by 5
Built on by
Citing papers per year: 2023: 7; 2024: 8; 2025: 6; 2026: 4.
25 papers.
Sort:
By area:
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
- 2024Agents in Software Engineering: Survey, Landscape, and Visioncited by 60
- 2024Language Models for Code Completion: A Practical Evaluationcited by 38
- 2023Binary Code Summarization: Benchmarking ChatGPT/GPT-4 and Other Large Language Modelscited by 13
- 2024Assemblage: Automatic Binary Dataset Construction for Machine Learningcited by 12
- 2024Leveraging Large Language Models for Enhancing the Understandability of Generated Unit Testscited by 11
- 2023The (ab)use of Open Source Code to Train Large Language Modelscited by 9
- 2024Source Code Foundation Models are Transferable Binary Analysis Knowledge Basescited by 8
- 2023Targeted Attack on GPT-Neo for the SATML Language Model Data Extraction Challengecited by 7
- 2023Enriching Source Code with Contextual Data for Code Completion Models: An Empirical Studycited by 7
- 2024Exploring the Efficacy of Large Language Models (GPT-4) in Binary Reverse Engineeringcited by 7
- 2025Code Red! On the Harmfulness of Applying Off-the-shelf Large Language Models to Programming Taskscited by 6
13 more
- 2023STACC: Code Comment Classification using SentenceTransformerscited by 5
- 2024MALSIGHT: Exploring Malicious Source Code and Benign Pseudocode for Iterative Binary Malware Summarizationcited by 5
- 2023On the Impact of Language Selection for Training and Evaluating Programming Language Modelscited by 4
- 2025ASMA-Tune: Unlocking LLMs' Assembly Code Comprehension via Structural-Semantic Instruction Tuningcited by 4
- 2025Scrub It Out! Erasing Sensitive Memorization in Code Language Models via Machine Unlearningcited by 3
- 2024LLMs in the Heart of Differential Testing: A Case Study on a Medical Rule Enginecited by 2
- 2025REx86: A Local Large Language Model for Assisting in x86 Assembly Reverse Engineeringcited by 1
- 2025Retrofit: Continual Learning with Controlled Forgetting for Binary Security Detection and Analysiscited by 0
- 2025C-ing Clearly: Enhanced Binary Code Explanations using C codecited by 0
- 2026SoK: AI-Augmented Binary Reversingcited by 0
- 2026OASIF: An Efficient Obfuscation-Aware Self-Improving Framework for LLM-Based Assembly Code Instruction Following and Comprehensioncited by 0
- 2026Beyond Text Matching: Towards Reference-Free Evaluation for Human-Oriented Binary Reverse Engineeringcited by 0
- 2026Reveree: Diagnosing LLM Reverse-Engineering Agentscited by 0
- 2026Reveree: Diagnosing LLM Reverse-Engineering Agents1 Sep 2026
- 2026Beyond Text Matching: Towards Reference-Free Evaluation for Human-Oriented Binary Reverse Engineering7 Aug 2026
- 2026OASIF: An Efficient Obfuscation-Aware Self-Improving Framework for LLM-Based Assembly Code Instruction Following and Comprehension28 Jun 2026
- 2026SoK: AI-Augmented Binary Reversing16 Jun 2026
- 2025C-ing Clearly: Enhanced Binary Code Explanations using C code16 Dec 2025
- 2025Retrofit: Continual Learning with Controlled Forgetting for Binary Security Detection and Analysis14 Nov 2025
- 2025REx86: A Local Large Language Model for Assisting in x86 Assembly Reverse Engineering23 Oct 2025
- 2025Scrub It Out! Erasing Sensitive Memorization in Code Language Models via Machine Unlearning17 Sep 2025
- 2025Code Red! On the Harmfulness of Applying Off-the-shelf Large Language Models to Programming Tasks2 Apr 2025
- 2025ASMA-Tune: Unlocking LLMs' Assembly Code Comprehension via Structural-Semantic Instruction Tuning14 Mar 2025
- 2024Agents in Software Engineering: Survey, Landscape, and Vision13 Sep 2024
- 2024Leveraging Large Language Models for Enhancing the Understandability of Generated Unit Tests21 Aug 2024
13 more
- 2024MALSIGHT: Exploring Malicious Source Code and Benign Pseudocode for Iterative Binary Malware Summarization26 Jun 2024
- 2024Exploring the Efficacy of Large Language Models (GPT-4) in Binary Reverse Engineering9 Jun 2024
- 2024Source Code Foundation Models are Transferable Binary Analysis Knowledge Bases30 May 2024
- 2024Assemblage: Automatic Binary Dataset Construction for Machine Learning7 May 2024
- 2024Language Models for Code Completion: A Practical Evaluation25 Feb 2024
- 2024LLMs in the Heart of Differential Testing: A Case Study on a Medical Rule Engine16 Feb 2024
- 2023Binary Code Summarization: Benchmarking ChatGPT/GPT-4 and Other Large Language Models15 Dec 2023
- 2023On the Impact of Language Selection for Training and Evaluating Programming Language Models25 Aug 2023
- 2023Large Language Models for Software Engineering: A Systematic Literature Review21 Aug 2023
- 2023Enriching Source Code with Contextual Data for Code Completion Models: An Empirical Study24 Apr 2023
- 2023The (ab)use of Open Source Code to Train Large Language Models27 Feb 2023
- 2023STACC: Code Comment Classification using SentenceTransformers25 Feb 2023
- 2023Targeted Attack on GPT-Neo for the SATML Language Model Data Extraction Challenge13 Feb 2023
- 2024Agents in Software Engineering: Survey, Landscape, and Visioncited by 60
- 2026Reveree: Diagnosing LLM Reverse-Engineering Agentscited by 0
- 2026Reveree: Diagnosing LLM Reverse-Engineering Agents1 Sep 2026
- 2024Agents in Software Engineering: Survey, Landscape, and Vision13 Sep 2024
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
- 2024Language Models for Code Completion: A Practical Evaluationcited by 38
- 2023Binary Code Summarization: Benchmarking ChatGPT/GPT-4 and Other Large Language Modelscited by 13
- 2024Assemblage: Automatic Binary Dataset Construction for Machine Learningcited by 12
- 2024Leveraging Large Language Models for Enhancing the Understandability of Generated Unit Testscited by 11
- 2023The (ab)use of Open Source Code to Train Large Language Modelscited by 9
- 2024Source Code Foundation Models are Transferable Binary Analysis Knowledge Basescited by 8
- 2023Enriching Source Code with Contextual Data for Code Completion Models: An Empirical Studycited by 7
- 2024Exploring the Efficacy of Large Language Models (GPT-4) in Binary Reverse Engineeringcited by 7
- 2025Code Red! On the Harmfulness of Applying Off-the-shelf Large Language Models to Programming Taskscited by 6
- 2023STACC: Code Comment Classification using SentenceTransformerscited by 5
- 2024MALSIGHT: Exploring Malicious Source Code and Benign Pseudocode for Iterative Binary Malware Summarizationcited by 5
12 most cited of 20 All 20 (JSON)
- 2026Beyond Text Matching: Towards Reference-Free Evaluation for Human-Oriented Binary Reverse Engineering7 Aug 2026
- 2026SoK: AI-Augmented Binary Reversing16 Jun 2026
- 2025C-ing Clearly: Enhanced Binary Code Explanations using C code16 Dec 2025
- 2025Retrofit: Continual Learning with Controlled Forgetting for Binary Security Detection and Analysis14 Nov 2025
- 2025REx86: A Local Large Language Model for Assisting in x86 Assembly Reverse Engineering23 Oct 2025
- 2025Code Red! On the Harmfulness of Applying Off-the-shelf Large Language Models to Programming Tasks2 Apr 2025
- 2025ASMA-Tune: Unlocking LLMs' Assembly Code Comprehension via Structural-Semantic Instruction Tuning14 Mar 2025
- 2024Leveraging Large Language Models for Enhancing the Understandability of Generated Unit Tests21 Aug 2024
- 2024MALSIGHT: Exploring Malicious Source Code and Benign Pseudocode for Iterative Binary Malware Summarization26 Jun 2024
- 2024Exploring the Efficacy of Large Language Models (GPT-4) in Binary Reverse Engineering9 Jun 2024
- 2024Source Code Foundation Models are Transferable Binary Analysis Knowledge Bases30 May 2024
- 2024Assemblage: Automatic Binary Dataset Construction for Machine Learning7 May 2024
12 newest of 20 All 20 (JSON)