Revisiting Graph Representations for ML-Based Binary Code Similarity Detection: A Systematic Study
Tengteng Yang, Yikun Hu, Jican Zhang, Lei Xue, Ming Fan, Liang Zhang
Key points
From the paper's conclusion- The results show that DFG, PDG, and SOG subgraph pairs more often preserve trained models' similarity scores under pruning, while several other representations are more sensitive to structural reduction.
Abstract
Binary Code Similarity Detection (BCSD) is a foundational capability in software security, underpinning critical applications ranging from vulnerability detection to malware analysis. While recent tools based on Machine Learning (ML) have achieved significant performance improvements, their efficacy is heavily contingent upon the underlying code representation. Through a systematic literature review of ML-based BCSD papers, we find that existing approaches typically leverage linear sequences or adopt graph-based representations, with the latter constituting the majority (77%). Despite this prevalence, there is no consensus on which graph representation yields superior effectiveness. Existing works usually couple graph construction with customized learning backbones and evaluate them on inconsistent benchmarks. This makes isolating the representation's impact difficult. Consequently, determining which graph topologies most effectively capture robust binary-code semantics under controlled and comparable evaluation settings remains an open problem. In this paper, we present a systematic study of graph representations for ML-based BCSD to bridge this gap. Specifically, we implement a modular evaluation framework that decouples graph construction from model training. Using this framework, we systematically evaluate seven representative graph representations, finding that no single representation is universally dominant, that distinct topologies exhibit unique strengths depending on the evaluation scenario, and that their rankings are largely backbone-stable despite varying absolute performance. We further investigate their combination effectiveness in N-day vulnerability detection and employ a tailored post-hoc analysis tool to study model-level structural reliance. The results show that DFG, PDG, and SOG subgraph pairs more often preserve trained models' similarity scores under pruning, while several other representations are more sensitive to structural reduction.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- SemDiff: Binary similarity detection by diffing key-semantics graphs.Neural networks : the official journal of the International Neural Network Society · 2026
- Fool Me If You Can: On the Robustness of Binary Code Similarity Detection Models against Semantics-Preserving TransformationsProceedings of the ACM on software engineering. · 2026
- BinXSight: Fast Binary Program Summarization via Hierarchical Modular DecompositionarXiv · 2026
- MicroSim: Contrastive Graph Neural Networks for Binary Code Similarity DetectionarXiv · 2026
- From Similarity Ranking to Definitive Verdict: LLM-Enhanced Source-to-Binary Function LocalizationProceedings of the ACM on Programming Languages · 2026
- Model Reuse Through Retargeted-Architecture Binary Code AnalysisIEEE Transactions on Dependable and Secure Computing · 2026