Attention Distance: A Novel Metric for Directed Fuzzing with Large Language Models
Wang Bin, Ao Yang, Kedan Li, Aofan Liu, Hui Li, Guibo Luo, Weixiang Huang, Yan Zhuang

TL;DR
This paper introduces attention distance, a new metric using large language models to improve directed fuzzing by capturing logical code relationships, significantly boosting testing efficiency and effectiveness.
Contribution
It proposes attention distance, a novel LLM-based metric for directed fuzzing that considers logical code relationships, outperforming traditional physical distance measures.
Findings
3.43× increase in testing efficiency over traditional methods
2.89× and 7.13× improvements over state-of-the-art fuzzers
Consistent performance enhancement when integrated into existing fuzzers
Abstract
In the domain of software security testing, Directed Grey-Box Fuzzing (DGF) has garnered widespread attention for its efficient target localization and excellent detection performance. However, existing approaches measure only the physical distance between seed execution paths and target locations, overlooking logical relationships among code segments. This omission can yield redundant or misleading guidance in complex binaries, weakening DGF's real-world effectiveness. To address this, we introduce \textbf{attention distance}, a novel metric that leverages a large language model's contextual analysis to compute attention scores between code elements and reveal their intrinsic connections. Under the same AFLGo configuration -- without altering any fuzzing components other than the distance metric -- replacing physical distances with attention distances across 38 real vulnerability…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Testing and Debugging Techniques · Software Engineering Research · Advanced Malware Detection Techniques
