All models

BinT5

BinT5-C, a CodeT5-based model that writes summaries of functions, fine-tuned on C source from Capybara.

Language · 1,466 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (62 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
222.9M
Operations
1,466
Framework
PyTorch
Recurrent
No
Published
SANER 2023
Cited by
33 (as of 27 October 2026)
Authors
Ali Al-Kaswan, Toufique Ahmed, Maliheh Izadi and others
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m14944
Graph hash
cee28da714b8c27bc3b1eceb53d5bcf5a69ac4def006f907b86312719438f25f
Skeleton hash
fb9db3c096168d1e61637653a5ad5a0a77555f869eb16dd536fb2e83966c517e
Architecture hash
61e2ad020608e7d7ddbe952998c545b6b2782da94f0e3a47a2dfbdc4688f8286
Diagram SHA-256
a9e1b8fd71c2da574f643080a5043c6988f0a2445382f97d46df79dcdcccfd95
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

BinT5 is a binary code summarization model: given a function, it writes a short description of what the function does. The motivation is reverse engineering, where decompilers turn largely unreadable binaries into a more readable, source code-like form. The paper notes that much of a reverse engineer's time still goes into labeling functions with semantic information.

BinT5 is the CodeT5 base model fine-tuned on CAPYBARA. CAPYBARA is a dataset the authors built of 214K decompiled function-documentation pairs across various compiler optimization levels. Five variations of the model are offered, and they differ in their training data. The variation on this page is BinT5-C, whose training data is C source.

The paper reports BLEU-4 scores of 60.83, 58.82 and 44.21 for summarizing source, decompiled and synthetically stripped decompiled code. It also found that BinT5's performance does not depend heavily on dataset size or compiler optimization level. The authors recommend further research on less expressive input formats such as stripped binaries.

Key idea. The paper fine-tunes the CodeT5 base model on CAPYBARA, a dataset of 214K decompiled function-documentation pairs, to create BinT5 for summarizing decompiled binary functions.

  • BinT5
  • BinT5-C
  • binary code summarization
  • decompiled code summarization
  • CAPYBARA
  • reverse engineering
  • decompiled binaries
  • code summarization
  • function summarization

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{alkaswan2023extendingsourcecodepretrained,
      title={Extending Source Code Pre-Trained Language Models to Summarise Decompiled Binaries}, 
      author={Ali Al-Kaswan and Toufique Ahmed and Maliheh Izadi and Anand Ashok Sawant and Premkumar Devanbu and Arie van Deursen},
      year={2023},
      eprint={2301.01701},
      archivePrefix={arXiv},
      primaryClass={cs.CR},
      url={https://arxiv.org/abs/2301.01701}, 
}