Is Function Similarity Over-Engineered? Building a Benchmark
Not on the map. Why?
Abstract (arXiv)
Binary analysis is a core component of many critical security tasks, including reverse engineering, malware analysis, and vulnerability detection. Manual analysis is often time-consuming, but identifying commonly-used or previously-seen functions can reduce the time it takes to understand a new file. However, given the complexity of assembly, and the NP-hard nature of determining function equivalence, this task is extremely difficult. Common approaches often use sophisticated disassembly and decompilation tools, graph analysis, and other expensive pre-processing steps to perform function similarity searches over some corpus. In this work, we identify a number of discrepancies between the current research environment and the underlying application need. To remedy this, we build a new benchmark, REFuSE-Bench, for binary function similarity detection consisting of high-quality datasets and tests that better reflect real-world use cases. In doing so, we address issues like data duplication and accurate labeling, experiment with real malware, and perform the first serious evaluation of ML binary function similarity models on Windows data. Our benchmark reveals that a new, simple basline, one which looks at only the raw bytes of a function, and requires no disassembly or other pre-processing, is able to achieve state-of-the-art performance in multiple settings. Our findings challenge conventional assumptions that complex models with highly-engineered features are being used to their full potential, and demonstrate that simpler approaches can provide significant value.
Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Builds on 30 of its 72 references that are in the map. First posted on arXiv 30 Oct 2024.
Builds on
30 of 72 references.
References · 30
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2015FaceNet: A Unified Embedding for Face Recognition and Clusteringcited by 2,849
- 2016Efficient and robust approximate nearest neighbor search using Hierarchical Navigable Small World graphscited by 861
- 2017In Defense of the Triplet Loss for Person Re-Identificationcited by 786
- 2019Graph Matching Networks for Learning the Similarity of Graph Structured Objectscited by 205
- 2021Accounting for Variance in Machine Learning Benchmarkscited by 201
- 2014Learning Fine-grained Image Similarity with Deep Rankingcited by 190
- 2017Malware Detection by Eating a Whole EXEcited by 115
- 2018Deep Metric Learning with Hierarchical Triplet Losscited by 112
- 2017Neural Network-based Graph Embedding for Cross-Platform Binary Code Similarity Detectioncited by 65
- 2020SOREL-20M: A Large Scale Benchmark Dataset for Malicious PE Detectioncited by 49
- 2021PalmTree: Learning an Assembly Language Model for Instruction Embeddingcited by 49
18 more
- 2022jTrans: Jump-Aware Transformer for Binary Code Similaritycited by 44
- 2018SAFE: Self-Attentive Function Embeddings for Binary Similaritycited by 33
- 2020A Survey of Machine Learning Methods and Challenges for Windows Malware Classificationcited by 33
- 2020Classifying Sequences of Extreme Length with Constant Memory Applied to Malware Detectioncited by 24
- 2021MOTIF: A Large Malware Reference Dataset with Ground Truth Family Labelscited by 17
- 2021A Framework for Cluster and Classifier Evaluation in the Absence of Reference Labelscited by 16
- 2024Assemblage: Automatic Binary Dataset Construction for Machine Learningcited by 12
- 2021Leveraging Uncertainty for Improved Static Malware Detection Under Extreme False Positive Constraintscited by 11
- 2023kTrans: Knowledge-Aware Transformer for Binary Code Embeddingcited by 10
- 2019I-MAD: Interpretable Malware Detector Using Galaxy Transformercited by 8
- 2022BinBert: Binary Code Understanding with a Fine-tunable and Execution-aware Transformercited by 8
- 2021Rank-1 Similarity Matrix Decomposition For Modeling Changes in Antivirus Consensus Through Timecited by 7
- 2021Semantic-aware Binary Code Representation with BERTcited by 6
- 2022Deep-Learning-based Vulnerability Detection in Binary Executablescited by 6
- 2024Holographic Global Convolutional Networks for Long-Range Prediction Tasks in Malware Detectioncited by 6
- 2023FASER: Binary Code Similarity Search through the use of Intermediate Representationscited by 4
- 2023Small Effect Sizes in Malware Detection? Make Harder Train/Test Splits!cited by 4
- 2022UniASM: Binary Code Similarity Detection without Fine-tuningcited by 3
Built on by
Citing papers per year: 2024: 2; 2025: 1; 2026: 3.
6 papers.
- 2024What Do Machine Learning Researchers Mean by "Reproducible"?cited by 9
- 2024Living off the Analyst: Harvesting Features from Yara Rules for Malware Detectioncited by 3
- 2025Zipf-Gramming: Scaling Byte N-Grams Up to Production Sized Malware Corporacited by 2
- 2026Cybersecurity is the True Frontier for Generative AI Success or Failurecited by 2
- 2026ASSEMBLAGE-DEEPHISTORY: A Cross-Build Binary Dataset with Temporal Coveragecited by 0
- 2026When LLM Decompilers Recompile More and Preserve Lesscited by 0
- 2026When LLM Decompilers Recompile More and Preserve Less4 Sep 2026
- 2026Cybersecurity is the True Frontier for Generative AI Success or Failure27 Jun 2026
- 2026ASSEMBLAGE-DEEPHISTORY: A Cross-Build Binary Dataset with Temporal Coverage20 May 2026
- 2025Zipf-Gramming: Scaling Byte N-Grams Up to Production Sized Malware Corpora17 Nov 2025
- 2024What Do Machine Learning Researchers Mean by "Reproducible"?5 Dec 2024
- 2024Living off the Analyst: Harvesting Features from Yara Rules for Malware Detection27 Nov 2024