Skip to main navigation Skip to search Skip to main content

Exploiting Transformer-Based Static Binary Analysis for Identifying Inefficient Locks

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

Multithreaded production software often suffers from lock-related inefficiencies that cause severe performance degradation. These issues are difficult to detect before a significant performance drop, and even skilled programmers struggle to resolve them without knowing whether frequent lock acquisition or contention is to blame. As transformer-based language models have shown strong potential in automating code analysis, we present Luna, a transformer-based static binary analysis tool for identifying inefficient locks. We formalize the classification task for frequent lock acquisition and contention in multithreaded binaries and design a transformer-based model with calling context awareness. By combining this model with static control flow analysis, Luna can identify suspicious lock operations along with their inefficiency type and call path attribution. Guided by Luna, developers can detect inefficient locks without executing the program and achieve significant performance gains through early optimization.

Original languageEnglish
Title of host publicationNetwork and Parallel Computing - 21st IFIP WG 10.3 International Conference, NPC 2025, Proceedings
EditorsXiaoliang Wang, Baoliu Ye, Xiaohong Jiang, Noel Crespi
PublisherSpringer Science and Business Media Deutschland GmbH
Pages90-102
Number of pages13
ISBN (Print)9783032104588
DOIs
StatePublished - 2026
Event21st IFIP WG 10.3 International Conference on Network and Parallel Computing, NPC 2025 - Nha Trang, Viet Nam
Duration: 14 Nov 202516 Nov 2025

Publication series

NameLecture Notes in Computer Science
Volume16305 LNCS
ISSN (Print)0302-9743
ISSN (Electronic)1611-3349

Conference

Conference21st IFIP WG 10.3 International Conference on Network and Parallel Computing, NPC 2025
Country/TerritoryViet Nam
CityNha Trang
Period14/11/2516/11/25

Fingerprint

Dive into the research topics of 'Exploiting Transformer-Based Static Binary Analysis for Identifying Inefficient Locks'. Together they form a unique fingerprint.

Cite this