Revisiting Opcode Representations for Malware Family Classification: Learned Embeddings Versus Frequency Baselines

Opcode representations provide numerical features for malware-family classification, but their value must be assessed against simple distributional controls under a shared evaluation protocol. We compare globally trained Word2Vec, GloVe, and fastText embeddings with normalized opcode frequencies on 1,045 files from nine malware families. Ten stratified repeated holdouts use identical file assignments across representations. Embedding epochs are selected using an inner validation partition, followed by a fresh fit on the outer training files. A fixed Random Forest evaluates original-only training and conventional oversampling on the same held-out files. Mean original-only accuracies for opcode frequency, Word2Vec, GloVe, and fastText were 1.0000, 0.9995, 0.9981, 0.9976, respectively. The frequency baseline matched or exceeded the learned representations’ mean accuracy. SMOTE increased macro F1 in 4 of 40 representation–split pairs (none for frequency, which was already at the ceiling). All four representations achieved near-ceiling accuracy on this selected closed-set benchmark.

Authors

Publication Details

Journal
Preprints.org
Published
2026-11-02
DOI
https://doi.org/10.20944/preprints202611.0077.v1
Primary Topic
Advanced Malware Detection Techniques
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
preprint

Revisiting Opcode Representations for Malware Family Classification: Learned Embeddings Versus Frequency Baselines

Fabio Di Troia, Kiana Bakrani Balani, Mohammed Nassar
Preprints.org
Advanced Malware Detection Techniques
preprint

Revisiting Opcode Representations for Malware Family Classification: Learned Embeddings Versus Frequency Baselines

Fabio Di Troia, Kiana Bakrani Balani, Mohammed Nassar
preprint en

Abstract

Opcode representations provide numerical features for malware-family classification, but their value must be assessed against simple distributional controls under a shared evaluation protocol. We compare globally trained Word2Vec, GloVe, and fastText embeddings with normalized opcode frequencies on 1,045 files from nine malware families. Ten stratified repeated holdouts use identical file assignments across representations. Embedding epochs are selected using an inner validation partition, followed by a fresh fit on the outer training files. A fixed Random Forest evaluates original-only training and conventional oversampling on the same held-out files. Mean original-only accuracies for opcode frequency, Word2Vec, GloVe, and fastText were 1.0000, 0.9995, 0.9981, 0.9976, respectively. The frequency baseline matched or exceeded the learned representations’ mean accuracy. SMOTE increased macro F1 in 4 of 40 representation–split pairs (none for frequency, which was already at the ceiling). All four representations achieved near-ceiling accuracy on this selected closed-set benchmark.

Preprints.org
Advanced Malware Detection Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon
Revisiting Opcode Representations for Malware Family Classification: Learned Embeddings Versus Frequency Baselines — Fabio Di Troia, Kiana Bakrani Balani, et al. · Preprints.org (2026) | TGRS Research Map | TGRS