MicroSim: Contrastive Graph Neural Networks for Binary Code Similarity Detection
Not on the map. Why?
Abstract (arXiv)
We present MicroSim, a system for binary code similarity detection that represents each function as a graph built from IDA Pro Hex-Rays microcode and compares such graphs with a contrastive Siamese graph neural network (GNN). We evaluate on the TREX cross-optimization benchmark, a corpus of 849,072 function-level microcode graphs spanning optimization levels -O0 through -O3, under a strict class-disjoint split in which no function key is shared between train and test. Under this protocol, MicroSim reaches 0.9972 area under the receiver operating characteristic curve (ROC-AUC) and 0.9762 Matthews correlation coefficient (MCC), outperforming Gemini (0.9332 ROC-AUC), SAFE (0.9752), and jTrans (0.9740) retrained on the same split, as well as a structure-free Bag-of-Words (BoW) baseline (0.9484). We analyze the gap between pair classification and ranked retrieval in graph transformers, showing that Cross-domain Similarity Local Scaling (CSLS) under unified tie-resolved evaluation raises GraphGPS mean reciprocal rank (MRR) from 0.2542 to 0.2559 (R@1 = 0.1639, R@10 = 0.4561), strictly satisfying the theoretical MRR upper bound. Finally, over 5 seeds with equal compute, the pairwise cosine-embedding loss attains a slightly higher ROC-AUC (Delta = -0.0256, 95% confidence interval [-0.3282, +0.2770]), whereas the supervised-contrastive information noise-contrastive estimation (InfoNCE) loss is significantly better on thresholded classification and ranked retrieval.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Builds on 21 of its 30 references that are in the map. Submitted 8 Nov 2026.
Builds on
21 of 30 references.
References · 21
- 2014Adam: A Method for Stochastic Optimizationcited by 38,596
- 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 12,277
- 2016Semi-Supervised Classification with Graph Convolutional Networkscited by 11,727
- 2017Graph Attention Networkscited by 9,201
- 2018Representation Learning with Contrastive Predictive Codingcited by 8,178
- 2017Inductive Representation Learning on Large Graphscited by 6,466
- 2018How Powerful are Graph Neural Networks?cited by 4,526
- 2017Neural Message Passing for Quantum Chemistrycited by 3,554
- 2020Supervised Contrastive Learningcited by 2,929
- 2020Graph Contrastive Learning with Augmentationscited by 1,237
- 2022Recipe for a General, Powerful, Scalable Graph Transformercited by 741
- 2021Graph Neural Networks with Learnable Structural and Positional Representationscited by 353
9 more
- 2021Do Transformers Really Perform Bad for Graph Representation?cited by 330
- 2019Graph Matching Networks for Learning the Similarity of Graph Structured Objectscited by 207
- 2017Neural Network-based Graph Embedding for Cross-Platform Binary Code Similarity Detectioncited by 66
- 2021PalmTree: Learning an Assembly Language Model for Instruction Embeddingcited by 50
- 2022jTrans: Jump-Aware Transformer for Binary Code Similaritycited by 45
- 2020Trex: Learning Execution Semantics from Micro-Traces for Binary Similaritycited by 35
- 2018SAFE: Self-Attentive Function Embeddings for Binary Similaritycited by 34
- 2019A Survey of Binary Code Similaritycited by 20
- 2025Bin2Vec: Interpretable and Auditable Multi-View Binary Analysis for Code Plagiarism Detectioncited by 1
Built on by
Not cited yet.