KiloGrams: Very Large N-Grams for Malware Classification
Not on the map. Why?
Abstract (arXiv)
N-grams have been a common tool for information retrieval and machine learning applications for decades. In nearly all previous works, only a few values of n are tested, with n > 6 being exceedingly rare. Larger values of n are not tested due to computational burden or the fear of overfitting. In this work, we present a method to find the top-k most frequent n-grams that is 60× faster for small n, and can tackle large n≥1024. Despite the unprecedented size of n considered, we show how these features still have predictive ability for malware classification tasks. More important, large n-grams provide benefits in producing features that are interpretable by malware analysis, and can be used to create general purpose signatures compatible with industry standard tools like Yara. Furthermore, the counts of common n-grams in a file may be added as features to publicly available human-engineered features that rival efficacy of professionally-developed features when used to train gradient-boosted decision tree models on the EMBER dataset.
Key facts. Cited by 9 papers in the map (data through 14 Oct 2026). First posted on arXiv 1 Aug 2019.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 2; 2022: 1; 2023: 2; 2024: 1; 2025: 1; 2026: 2.
9 papers.
- 2024Infini-gram: Scaling Unbounded n-gram Language Models to a Trillion Tokenscited by 153
- 2023Recasting Self-Attention with Holographic Reduced Representationscited by 14
- 2021Leveraging Uncertainty for Improved Static Malware Detection Under Extreme False Positive Constraintscited by 11
- 2022Transformers for End-to-End InfoSec Tasks: A Feasibility Studycited by 6
- 2021Malware Detection Using Frequency Domain-Based Image Visualization and Deep Learningcited by 5
- 2023Small Effect Sizes in Malware Detection? Make Harder Train/Test Splits!cited by 4
- 2025Zipf-Gramming: Scaling Byte N-Grams Up to Production Sized Malware Corporacited by 2
- 2026Hamm-Grams: An Algorithm for Mining Regular Expressions of Bytescited by 0
- 2026Simpler Methods Work Better for L1 Penalized Logistic Models and Large Datasetscited by 0
- 2026Simpler Methods Work Better for L1 Penalized Logistic Models and Large Datasets21 Sep 2026
- 2026Hamm-Grams: An Algorithm for Mining Regular Expressions of Bytes1 Jul 2026
- 2025Zipf-Gramming: Scaling Byte N-Grams Up to Production Sized Malware Corpora17 Nov 2025
- 2024Infini-gram: Scaling Unbounded n-gram Language Models to a Trillion Tokens30 Jan 2024
- 2023Small Effect Sizes in Malware Detection? Make Harder Train/Test Splits!25 Dec 2023
- 2023Recasting Self-Attention with Holographic Reduced Representations31 May 2023
- 2022Transformers for End-to-End InfoSec Tasks: A Feasibility Study5 Dec 2022
- 2021Leveraging Uncertainty for Improved Static Malware Detection Under Extreme False Positive Constraints9 Aug 2021
- 2021Malware Detection Using Frequency Domain-Based Image Visualization and Deep Learning26 Jan 2021