File size: 1,979 Bytes
2f42973
 
1b02d6b
 
 
 
 
 
2f42973
1b02d6b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
---
license: eupl-1.2
tags:
- assembly
- arm64
- amd64
- risc-v
- i386
---

# Model Description
ASMTransformers is a project to train and use a machine learning model to compare assembly (ARM64, AMD64, RISC-V, i386) functions to a database of known functions, 
to aid in the process of reverse engineering.

# Status
?

# Relevant links
* [Github repo ASMtransformers](https://github.com/NetherlandsForensicInstitute/asmtransformers)

# Version
TODO: calver of new release

# Usage
TODO: do we refer to the inference file of our repo? 

# Intended use
The model has been trained and tested to be used for similarity search of assembly code. It has not been trained/tested on any other languages than ARM64, AMD64, RISC-V or I386, 
nor has it been tested on other downstream tasks.

# Architecture description
TODO: get model architecture like on the model card of the previous model
Don't forget to describe that during pretraining, the --mlm-prob parameter has been set to 0.4, in accordance to [paper](INSERT LINK)
Parameters used: epochs=19, eval_steps=10000, batch_size=512, gradient_accumulation_steps=1, mlm_prob=0.4, bf16=True, tf32=True

add estimated time it has cost to train:
pretraining:
finetuning: 4 hours on 1 NVIDIA H200

# Output
The model outputs embeddings that can be compared using cosine similarity

# Data
TODO: how did we get the data?

# Preprocessing
Several preprocessing steps have been taken, that differ slightly between architectures. 
TODO: update to same as architecture.md in repo

# Performance
Performance was measured in two ways: Mean Reciprocal Rank (MRR) and Accuracy@1

-------------------------------------------------------------------------------------------------------------------------
|model|ARM64 mrr|ARM64 acc|AMD64 mrr|AMD64 acc|RISC-V mrr|RISC-V acc|I386 mrr|I386 acc|crosslingual mrr|crosslingual acc|
---------------------------------------------------------------------------------------------------------------------------