mlsanityData to 7 Oct 2026

CLAP: Learning Transferable Binary Code Representations with Natural Language Supervision

arXiv 2402.16928 ↗First posted 26 Feb 2024cs.SE cs.AIcited by 17

Not on the map. Why?

Abstract (arXiv)

Binary code representation learning has shown significant performance in binary analysis tasks. But existing solutions often have poor transferability, particularly in few-shot and zero-shot scenarios where few or no training samples are available for the tasks. To address this problem, we present CLAP (Contrastive Language-Assembly Pre-training), which employs natural language supervision to learn better representations of binary code (i.e., assembly code) and get better transferability. At the core, our approach boosts superior transfer learning capabilities by effectively aligning binary code with their semantics explanations (in natural language), resulting a model able to generate better embeddings for binary code. To enable this alignment training, we then propose an efficient dataset engine that could automatically generate a large and diverse dataset comprising of binary code and corresponding natural language explanations. We have generated 195 million pairs of binary code and explanations and trained a prototype of CLAP. The evaluations of CLAP across various downstream tasks in binary analysis all demonstrate exceptional performance. Notably, without any task-specific training, CLAP is often competitive with a fully supervised baseline, showing excellent transferability. We release our pre-trained model and code at https://github.com/Hustcw/CLAP.

Key facts. Cited by 17 papers in the map (data through 7 Oct 2026). Builds on 33 of its 78 references that are in the map. First posted on arXiv 26 Feb 2024.

Builds on

33 of 78 references.

References · 33

  1. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2023GPT-4 Technical Reportcited by 18,132
  4. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  5. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  6. 2016Semi-Supervised Classification with Graph Convolutional Networkscited by 11,282
  7. 2018Representation Learning with Contrastive Predictive Codingcited by 7,662
  8. 2020Scaling Laws for Neural Language Modelscited by 6,411
  9. 2022Flamingo: a Visual Language Model for Few-Shot Learningcited by 4,337
  10. 2022BLIP: Bootstrapping Language-Image Pre-training for Unified Vision-Language Understanding and Generationcited by 4,310
  11. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
  12. 2023Code Llama: Open Foundation Models for Codecited by 2,105
21 more
  1. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
  2. 2023LIMA: Less Is More for Alignmentcited by 1,080
  3. 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
  4. 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
  5. 2023Towards General Text Embeddings with Multi-stage Contrastive Learningcited by 705
  6. 2018Subword Regularization: Improving Neural Network Translation Models with Multiple Subword Candidatescited by 632
  7. 2023CodeT5+: Open Code Large Language Models for Code Understanding and Generationcited by 327
  8. 2015Order Matters: Sequence to sequence for setscited by 236
  9. 2019Graph Matching Networks for Learning the Similarity of Graph Structured Objectscited by 202
  10. 2017Malware Detection by Eating a Whole EXEcited by 114
  11. 2017Neural Network-based Graph Embedding for Cross-Platform Binary Code Similarity Detectioncited by 65
  12. 2021PalmTree: Learning an Assembly Language Model for Instruction Embeddingcited by 49
  13. 2022jTrans: Jump-Aware Transformer for Binary Code Similaritycited by 44
  14. 2019DIRE: A Neural Approach to Decompiled Identifier Namingcited by 36
  15. 2020Trex: Learning Execution Semantics from Micro-Traces for Binary Similaritycited by 34
  16. 2018SAFE: Self-Attentive Function Embeddings for Binary Similaritycited by 33
  17. 2020XDA: Accurate, Robust Disassembly with Transfer Learningcited by 21
  18. 2021CMA-CLIP: Cross-Modality Attention CLIP for Image-Text Classificationcited by 16
  19. 2023kTrans: Knowledge-Aware Transformer for Binary Code Embeddingcited by 10
  20. 2024BinaryAI: Binary Software Composition Analysis via Intelligent Binary Source Code Matchingcited by 9
  21. 2020COSEA: Convolutional Code Search with Layer-wise Attentioncited by 1

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 3; 2025: 6; 2026: 8.

17 papers.

Sort:

By area:

  1. 2024When LLMs Meet Cybersecurity: A Systematic Literature Reviewcited by 70
  2. 2025Primus: A Pioneering Collection of Open-Source Datasets for Cybersecurity LLM Trainingcited by 23
  3. 2026ShieldedCode: Learning Robust Representations for Virtual Machine Protected Codecited by 8
  4. 2025ASMA-Tune: Unlocking LLMs' Assembly Code Comprehension via Structural-Semantic Instruction Tuningcited by 4
  5. 2024BLens: Contrastive Captioning of Binary Functions using Ensemble Embeddingcited by 3
  6. 2024ViC: Virtual Compiler Is All You Need For Assembly Code Searchcited by 2
  7. 2025Tady: A Neural Disassembler without Structural Constraint Violationscited by 2
  8. 2025Code-Driven Inductive Synthesis: Enhancing Reasoning Abilities of Large Language Models with Sequencescited by 1
  9. 2025Beyond Embeddings: Interpretable Feature Extraction for Binary Code Similaritycited by 0
  10. 2025C-ing Clearly: Enhanced Binary Code Explanations using C codecited by 0
  11. 2026EXHIB: A Benchmark for Realistic and Diverse Evaluation of Function Similarity in the Wildcited by 0
  12. 2026Attacking the First-Principle: A Black-Box, Query-Free Targeted Mimicry Attack on Binary Function Classifierscited by 0
5 more
  1. 2026SoK: AI-Augmented Binary Reversingcited by 0
  2. 2026OASIF: An Efficient Obfuscation-Aware Self-Improving Framework for LLM-Based Assembly Code Instruction Following and Comprehensioncited by 0
  3. 2026Practical Source Code Recovery from Binary Functions Using Anchor-Based Retrieval and LLM Reasoningcited by 0
  4. 2026Pretraining on Call Graphs: When Binary Analysis Tasks Profit From Contextcited by 0
  5. 2026Instruction Alignment for Binary Code Representation Learningcited by 0