mlsanityData to 14 Oct 2026

Empirical Study of Code Large Language Models for Binary Security Patch Detection

arXiv 2509.06052 ↗First posted 7 Sep 2025cs.SE cs.AI cs.CRcited by 1

Not on the map. Why?

Abstract (arXiv)

Security patch detection (SPD) is crucial for maintaining software security, as unpatched vulnerabilities can lead to severe security risks. In recent years, numerous learning-based SPD approaches have demonstrated promising results on source code. However, these approaches typically cannot be applied to closed-source applications and proprietary systems that constitute a significant portion of real-world software, as they release patches only with binary files, and the source code is inaccessible. Given the impressive performance of code large language models (LLMs) in code intelligence and binary analysis tasks such as decompilation and compilation optimization, their potential for detecting binary security patches remains unexplored, exposing a significant research gap between their demonstrated low-level code understanding capabilities and this critical security task. To address this gap, we construct a large-scale binary patch dataset containing 19,448 samples, with two levels of representation: assembly code and pseudo-code, and systematically evaluate 19 code LLMs of varying scales to investigate their capability in binary SPD tasks. Our initial exploration demonstrates that directly prompting vanilla code LLMs struggles to accurately identify security patches from binary patches, and even state-of-the-art prompting techniques fail to mitigate the lack of domain knowledge in binary SPD within vanilla models. Drawing on the initial findings, we further investigate the fine-tuning strategy for injecting binary SPD domain knowledge into code LLMs through two levels of representation. Experimental results demonstrate that fine-tuned LLMs achieve outstanding performance, with the best results obtained on the pseudo-code representation.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 33 of its 68 references that are in the map. First posted on arXiv 7 Sep 2025.

Builds on

33 of 68 references.

References · 33

  1. 2023GPT-4 Technical Reportcited by 18,396
  2. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
  3. 2016Semi-Supervised Classification with Graph Convolutional Networkscited by 11,361
  4. 2020Scaling Laws for Neural Language Modelscited by 6,586
  5. 2013Efficient Estimation of Word Representations in Vector Spacecited by 4,375
  6. 2022Large Language Models are Zero-Shot Reasonerscited by 4,374
  7. 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,442
  8. 2023Code Llama: Open Foundation Models for Codecited by 2,139
  9. 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 906
  10. 2023StarCoder: may the source be with you!cited by 799
  11. 2015Gated Graph Sequence Neural Networkscited by 796
  12. 2024Yi: Open Foundation Models by 01.AIcited by 719
21 more
  1. 2024StarCoder 2 and The Stack v2: The Next Generationcited by 502
  2. 2024DeepSeek-Coder-V2: Breaking the Barrier of Closed-Source Models in Code Intelligencecited by 331
  3. 2014Recurrent Neural Network Regularizationcited by 189
  4. 2024LLM Maybe LongLM: Self-Extend LLM Context Window Without Tuningcited by 136
  5. 2024Make Your LLM Fully Utilize the Contextcited by 119
  6. 2022Less Training, More Repairing Please: Revisiting Automated Program Repair via Zero-shot Learningcited by 76
  7. 2023RepairLLaMA: Efficient Representations and Fine-Tuned Adapters for Program Repaircited by 50
  8. 2022Transformer-Based Language Models for Software Vulnerability Detectioncited by 39
  9. 2021Neural Transfer Learning for Repairing Security Vulnerabilities in C Codecited by 36
  10. 2024ReposVul: A Repository-Level High-Quality Vulnerability Datasetcited by 36
  11. 2015On the "Naturalness" of Buggy Codecited by 35
  12. 2024How Does Code Pretraining Affect Language Model Task Performance?cited by 28
  13. 2023Nuances are the Key: Unlocking ChatGPT to Find Failure-Inducing Tests with Differential Promptingcited by 23
  14. 2023GAMMA: Revisiting Template-based Automated Program Repair via Mask Predictioncited by 23
  15. 2022Pre-trained Language Models Can be Fully Zero-Shot Learnerscited by 22
  16. 2021PatchRNN: A Deep Learning-Based System for Security Patch Identificationcited by 13
  17. 2023SteloCoder: a Decoder-Only LLM for Multi-Language to Python Code Translationcited by 9
  18. 2023Just-in-Time Detection of Silent Security Patchescited by 7
  19. 2021An Empirical Study on Code Comment Completioncited by 5
  20. 2025BinMetric: A Comprehensive Binary Analysis Benchmark for Large Language Modelscited by 4
  21. 2024Repository-Level Graph Representation Learning for Enhanced Security Patch Detectioncited by 3

Built on by

Cited by year

Citing papers per year: 2025: 1.

1 paper.