Instruction Alignment for Binary Code Representation Learning

Huaijin Wang, Shuai Wang
8/12/2026
cs.SEcs.AIcs.CR

No confident code implementation found for this paper.

Abstract

Binary code representation learning is a fundamental problem in software security and reverse engineering. Existing methods mainly learn function-level embeddings that capture coarse-grained semantic relationships between binary functions, but they largely ignore fine-grained instruction-level correspondences.

Show full abstract

This limitation misses valuable supervision signals available from compiler debug information, which can support the learning of more accurate and interpretable binary code representations. We propose to leverage instruction alignment knowledge to further improve binary code representation learning. Our preliminary study reveals that models finetuned for function-level binary code similarity exhibit substantially better instruction alignment than their pre-trained model, suggesting a strong correlation between instruction alignment and function-level embedding quality. Motivated by this observation, we design a training approach that explicitly incorporates instruction alignment as an auxiliary training objective. Our experiments show that instruction alignment training improves retrieval accuracy and provides more discriminative signal for the model's similarity judgments.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{wang2026instruction,
  title  = {Instruction Alignment for Binary Code Representation Learning},
  author = {Huaijin Wang and Shuai Wang},
  year   = {2026},
  eprint = {2608.11766},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2608.11766v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2608.11766.svg)](https://codeofpaper.com/paper/2608.11766)

Discussion