---
title: "Pre-Training Representations of Binary Code Using Contrastive Learning"
url: https://awesomerea.org/papers/paper-contrabin/
updated: 2026-11-10
type: paper
---

# Pre-Training Representations of Binary Code Using Contrastive Learning

> ContraBin learns binary code representations using source code and comments, then evaluates them on functionality classification, function name recovery, code summarization, and reverse engineering.

- Authors: Yifan Zhang; Chen Huang; Yueke Zhang; Huajie Shao; Kevin Leach; Yu Huang
- Venue: arXiv
- Status: Preprint
- Publication / posting date: October 11, 2022
- Date source: First arXiv submission date.
- First arXiv submission: October 11, 2022
- arXiv: 2210.05102
- Read in a terminal: `hf papers read 2210.05102`
- Reviewed arXiv version: v5
- Sources reviewed: 2026-11-09
- Added to the catalog: 2026-11-10
- Original paper: <https://arxiv.org/abs/2210.05102>
- PDF: <https://arxiv.org/pdf/2210.05102>
- BibTeX: <https://awesomerea.org/papers/citations/paper-contrabin.bib>
- Catalog page: <https://awesomerea.org/papers/paper-contrabin/>
- Record JSON: <https://awesomerea.org/papers/paper-contrabin/record.json>
- Chinese version: [简体中文](https://awesomerea.org/zh/papers/paper-contrabin/index.md)

## Scope and limitations

The evaluation covers four binary code tasks and compares the effects of human-written and synthetic comments.

## Why it fits this collection

It learns binary code representations that support function name recovery and other reverse-engineering tasks.

## Publication and review notes

The date and venue come from the arXiv record.

## BibTeX

```bibtex
@misc{paper-contrabin,
  title = {{Pre-Training Representations of Binary Code Using Contrastive Learning}},
  author = {{Yifan Zhang} and {Chen Huang} and {Yueke Zhang} and {Huajie Shao} and {Kevin Leach} and {Yu Huang}},
  year = {2022},
  url = {https://arxiv.org/abs/2210.05102},
  howpublished = {arXiv:2210.05102},
  note = {Preprint},
  eprint = {2210.05102},
  archivePrefix = {arXiv},
  month = oct
}
```

## Primary sources

1. <https://arxiv.org/abs/2210.05102>

## 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.
