paper-with-me

홈 › Papers

A Progressive Transformer for Unifying Binary Code Embedding and Knowledge Transfer

2024-12-15 · Hanxiao Lu, Hongyu Cai, Yiming Liang, Antonio Bianchi, Z. Berkay Celik

Language model approaches have recently been integrated into binary analysis tasks, such as function similarity detection and function signature recovery. These models typically employ a two-stage training process: pre-training via Masked Language Modeling (MLM) on machine code and fine-tuning for specific tasks. While MLM helps to understand binary code structures, it ignores essential code characteristics, including control and data flow, which negatively affect model generalization. Recent work leverages domain-specific features (e.g., control flow graphs and dynamic execution traces) in transformer-based approaches to improve binary code semantic understanding. However, this approach involves complex feature engineering, a cumbersome and time-consuming process that can introduce predictive uncertainty when dealing with stripped or obfuscated code, leading to a performance drop. In this paper, we introduce ProTST, a novel transformer-based methodology for binary code embedding. ProTST employs a hierarchical training process based on a unique tree-like structure, where knowledge progressively flows from fundamental tasks at the root to more specialized tasks at the leaves. This progressive teacher-student paradigm allows the model to build upon previously learned knowledge, resulting in high-quality embeddings that can be effectively leveraged for diverse downstream binary analysis tasks. The effectiveness of ProTST is evaluated in seven binary analysis tasks, and the results show that ProTST yields an average validation score (F1, MRR, and Recall@1) improvement of 14.8% compared to traditional two-stage training and an average validation score of 10.7% compared to multimodal two-stage frameworks.

📄 PDF Abstract BibTeX arXiv:2412.11177

Code (0)

등록된 구현이 없습니다.

Tasks

Feature EngineeringLanguage ModelingLanguage ModellingMasked Language ModelingTransfer Learning

Similar Papers 제목 키워드 기반

kTrans: Knowledge-Aware Transformer for Binary Code Embedding

2023-08-24 · Wenyu Zhu, Hao Wang, Yuchen Zhou, JiaMing Wang 외

Binary Code Embedding (BCE) has important applications in various reverse engineering tasks such as binary code similarity detection, type recovery, control-flow recovery and data-flow analysis. Recent studies have shown…

Outlier Detection

Unifying Watermarking via Dimension-Aware Mapping

2026-02-03 · Jiale Meng, Runyi Hu, Jie Zhang, Zheming Lu 외 arxiv

Deep watermarking methods often share similar encoder-decoder architectures, yet differ substantially in their functional behaviors. We propose DiM, a new multi-dimensional watermarking framework that formulates watermar…

BinBert: Binary Code Understanding with a Fine-tunable and Execution-aware Transformer

2022-08-13 · Fiorella Artuso, Marco Mormando, Giuseppe A. Di Luna, Leonardo Querzoni

A recent trend in binary code analysis promotes the use of neural solutions based on instruction embedding models. An instruction embedding model is a neural network that transforms sequences of assembly instructions int…

General Knowledge

Longformer: Longitudinal Transformer for Alzheimer's Disease Classification with Structural MRIs

2023-02-02 · Qiuhui Chen, Yi Hong

Structural magnetic resonance imaging (sMRI) is widely used for brain neurological disease diagnosis; while longitudinal MRIs are often collected to monitor and capture disease progression, as clinically used in diagnosi…

Binary Classification

Vision Transformer with Progressive Sampling

2021-08-03 · ICCV 2021 10 · Xiaoyu Yue, Shuyang Sun, Zhanghui Kuang, Meng Wei 외

Transformers with powerful global relation modeling abilities have been introduced to fundamental computer vision tasks recently. As a typical example, the Vision Transformer (ViT) directly applies a pure transformer arc…

image-classificationImage Classification