arrow
Return

Exploiting Transformer-Based Static Binary Analysis for Identifying Inefficient Locks

delete2026-01-01
delete0
PRE
AI
Z
Zhibo Xuan
X
Xin You
H
Hailong Yang *
C
Chen, Jingqi
Z
Zhongzhi Luan
Y
Yi Liu
D
Depei Qian
DOI:10.1007/978-3-032-10459-5_8delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
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.
Keywords:
lock analysis
transformer model
static binary analysis
multithreaded software
performance optimization

Journal

N
NETWORK AND PARALLEL COMPUTING, NPC 2025, PT I
IF:
0
Papers:
29
Citations:
0

Organization

B
Beihang University
Scholars:
5.2W
Papers: 4.1W
Citations: 37
Cited Papers

Cited Papers

SOK: (State of) The Art of War: Offensive Techniques in Binary Analysis
err2016-05-01
err0
errOAAI
errYan Shoshitaishvili; Ruoyu Wang; Christopher Salls; Nick Stephens; Mario Polino; Andrew Dutcher; John Grosen; Siji Feng; Christophe Hauser; Christopher Kruegel; Giovanni Vigna
errShare
errSave
SyncPerf
err2017-04-23
err0
errOAAI
errMohammad Mejbah ul Alam; Tongping Liu; Guangming Zeng; Abdullah Muzahid
errShare
errSave
err
IF0
err
err0
PREAI
err
errShare
errSave
err
IF0
err
err0
PREAI
err
errShare
errSave
err
IF0
err
err0
PREAI
err
errShare
errSave
Lock–Unlock
err2019-03-14
err0
errOAAI
errRachid Guerraoui; Hugo Guiroux; Renaud Lachaize; Vivien Quéma; Vasileios Trigonakis
errShare
errSave
Understanding and detecting real-world performance bugs
err2012-06-11
err0
errOAAI
errGuoliang Jin; Linhai Song; Xiaoming Shi; Joel Scherpelz; Shan Lu
errShare
errSave
Learning to Forget: Continual Prediction with LSTM
err2000-10-01
err0
PREAI
errFelix A. Gers; Jürgen Schmidhuber; Fred Cummins
errShare
errSave
researcher View more