---
title: "SAFE: Self-Attentive Function Embeddings for Binary Similarity"
url: https://awesomerea.org/papers/paper-safe/
updated: 2026-11-10
type: paper
---

# SAFE: Self-Attentive Function Embeddings for Binary Similarity

> SAFE embeds disassembled binary functions with a self-attentive network for similarity comparison. Quantitative and qualitative analyses compare it with earlier methods and examine semantic clustering.

- Authors: Luca Massarelli; Giuseppe Antonio Di Luna; Fabio Petroni; Leonardo Querzoni; Roberto Baldoni
- Venue: DIMVA 2019
- Status: Conference paper
- Publication / posting date: 2019 (exact date not verified)
- Date source: Publication date in the Crossref record for the DOI.
- First arXiv submission: November 13, 2018
- arXiv: 1811.05296
- Read in a terminal: `hf papers read 1811.05296`
- Reviewed arXiv version: v4
- DOI: 10.1007/978-3-030-22038-9_15
- Sources reviewed: 2026-11-09
- Added to the catalog: 2026-11-10
- Original paper: <https://doi.org/10.1007/978-3-030-22038-9_15>
- PDF: <https://arxiv.org/pdf/1811.05296>
- BibTeX: <https://awesomerea.org/papers/citations/paper-safe.bib>
- Catalog page: <https://awesomerea.org/papers/paper-safe/>
- Record JSON: <https://awesomerea.org/papers/paper-safe/record.json>
- Chinese version: [简体中文](https://awesomerea.org/zh/papers/paper-safe/index.md)

## Scope and limitations

The study focuses on function-level similarity in disassembled binaries, including stripped binaries and multiple architectures.

## Why it fits this collection

Binary function similarity is a reverse-engineering task, and SAFE derives its representations directly from disassembled code.

## Publication and review notes

The venue and date come from the Crossref record for the DOI; the PDF is the arXiv version.

## BibTeX

```bibtex
@inproceedings{paper-safe,
  title = {{SAFE: Self-Attentive Function Embeddings for Binary Similarity}},
  author = {{Luca Massarelli} and {Giuseppe Antonio Di Luna} and {Fabio Petroni} and {Leonardo Querzoni} and {Roberto Baldoni}},
  year = {2019},
  url = {https://doi.org/10.1007/978-3-030-22038-9_15},
  booktitle = {DIMVA 2019},
  doi = {10.1007/978-3-030-22038-9_15},
  eprint = {1811.05296},
  archivePrefix = {arXiv}
}
```

## Primary sources

1. <https://arxiv.org/abs/1811.05296>
2. <https://doi.org/10.1007/978-3-030-22038-9_15>
3. <https://api.crossref.org/works/10.1007/978-3-030-22038-9_15>

## About this entry

Reviewed against the paper and its primary sources. Cite the original authors using the linked paper or BibTeX.
Original editorial content: MIT. Linked projects, papers and assets retain their own rights and licenses.
