Re-ranking boosts binary function search effectiveness
ReSIM’s neural re-ranker improves nDCG and Recall over embedding-only baselines
Security & privacy arXiv 10 Feb 2026 Method Prototype evidence
Published as “ReSIM: Re-ranking Binary Similarity Embeddings to Improve Function Search Performance”
Why it matters
ReSIM can materially increase the recall of vulnerability-detection pipelines, but practitioners must weigh the accuracy gains against the added query latency.
Summary
ReSIM’s neural re-ranking layer boosts binary function search, raising average nDCG by 21.7% and Recall by 27.8% over seven embedding models on two benchmarks. The paper reports consistent gains (e.g., Recall from 0.59 to 0.72, nDCG from 0.69 to 0.82) and also improves vulnerability-detection recall, but the re-ranking step adds substantial latency (up to ~109 s per query at large window sizes).
What they found 3
- ReSIM improves search effectiveness across all evaluated embeddings.
“demonstrating consistent improvements in search effectiveness, with average gains of 21.7% in terms of nDCG and 27.8% in terms of Recall.”
- Recall rises from 0.59 to 0.72 and nDCG from 0.69 to 0.82 after re-ranking.
“average Recall from 0.59 to 0.72; average nDCG from 0.69 to 0.82”
- Vulnerability-detection metrics improve when using the re-ranker.
“CLAP model achieves nDCG of 0.90 and Recall of 0.92 at . When enhanced with DEEP, both metrics improve to 0.93 and 0.95 respectively”
Caveats 3
- The re-ranking step dominates runtime, scaling linearly with window size (e.g., "t(ρ) is equal to 16.5 seconds at w = 30, 27.6 seconds at w = 50, 54.9 seconds at w = 100, and 109.4 seconds at k = 200.")
- The authors acknowledge they did not focus on temporal efficiency ("In our evaluation, we did not focus on temporal efficiency; future studies may involve exploring lightweight re-ranker architectures and strategies.")
- our experiments indicate that the re-ranker generalizes across unseen x86-64 compiler toolchains; however, assessing its behavior on new architectures (e.g., ARM64, MIPS) remains an open question.
What’s new here 4
- Adds a cross-encoder re-ranking stage that jointly processes query-candidate pairs, capturing interactions bi-encoders miss.
- Works with any underlying BFS embedding model, making it model-agnostic.
- Ensembles multiple re-ranked embedding models for further recall gains.
- Leverages a large pre-trained LLM (DeepSeek-R1-Qwen3-8B) fine-tuned for assembly, showing transfer from non-assembly pre-training.