Self-Supervised Representations for Binary Program Clustering: From Empirical Study to Retrieval-Augmented Learning
This paper presents the first systematic investigation of self-supervised and tabular representation learning for binary program clustering, identifying VIME as a new state-of-the-art method and proposing VIME-R, a retrieval-augmented variant that significantly improves malware clustering performance.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine the internet as a giant, bustling city where millions of new "digital residents" arrive every single day. Most are friendly neighbors, but some are sneaky intruders trying to steal, break, or cause chaos. These intruders are called malware. In 2024 alone, over 80 million new ones showed up. To keep the city safe, security guards (cybersecurity experts) need to sort these millions of files into groups. If they can spot that a new file belongs to the same "family" as a known bad actor, they can stop the threat instantly. This sorting process is called clustering.
Usually, sorting is easy if you have a list of names (labels) telling you who is who. But in the real world, guards often have to sort a massive pile of mystery files without any names at all. This is where Self-Supervised Learning (SSL) and Tabular Representation Learning (TRL) come in. Think of SSL as a student who learns by looking at two slightly different photos of the same object and guessing they are the same thing, without a teacher telling them the answer. TRL is the specific art of teaching computers to understand "spreadsheet data" (rows and columns of numbers) rather than pictures or text. The big question researchers have been asking is: Can we teach computers to sort these mystery malware files into perfect families just by looking at their numbers, without any help from a human teacher?
The Mystery of the Mystery Files
In this study, researchers Martin Mocko and Daniela Chudá decided to play detective with a massive pile of digital files. They wanted to see if modern AI tricks, usually used for recognizing cats in photos or understanding sentences, could be repurposed to group malware files together. They used two huge, public datasets of Windows files called Ember and Bodmas. These datasets are like giant libraries containing hundreds of thousands of files, each described by a long list of numbers (features) that act like a fingerprint.
The researchers split their investigation into two phases, like a two-part mystery novel.
Phase 1: The "What If" Test
First, they wanted to know the absolute best possible score. Imagine a teacher giving the AI the answer key. They took famous AI models designed for images (like BYOL, SimSiam, Barlow Twins, and VICReg) and forced them to learn by comparing files that they knew belonged to the same family. This was a "supervised" test to see how high the ceiling could go.
The results were a mix of heroes and flops. BYOL and SimSiam turned out to be the superheroes. When given the answer key, they performed almost as well as a fully supervised model (one that knows every single family name), achieving a "Homogeneity" score (a measure of how pure the groups are) of nearly 99% for general categories and over 84% for specific families. However, Barlow Twins and VICReg stumbled badly, performing worse than even the simplest baseline methods. It turns out, not all "smart" AI models are equally smart when you switch from pictures to spreadsheets.
Phase 2: The Real Challenge
Next, the researchers removed the answer key. This is the real-world scenario: the AI has to sort the files without knowing any family names. They tested the best models from Phase 1 alongside newer methods designed specifically for spreadsheet data, like VIME, SCARF, and SwitchTab.
Here, the old image-based models (BYOL and SimSiam) struggled when forced to use the "corruption" tricks meant for spreadsheets. They couldn't beat the simple baselines. But VIME (Value Imputation and Mask Estimation) stepped up. It worked by randomly hiding parts of a file's data and trying to guess what was missing, learning the patterns in the process. VIME proved to be the new champion, beating the strong traditional baselines (like PCA and Autoencoders) and setting a new state-of-the-art record.
The Twist: VIME-R
The researchers weren't done yet. They noticed that VIME was guessing missing data by looking at random files from the whole library. But what if it only looked at files that were already very similar to the one it was studying? They invented VIME-R (Retrieval-Augmented). Instead of guessing from the whole crowd, VIME-R asks, "Who are the 100 neighbors most like this file?" and uses their data to fill in the blanks.
This simple change was a game-changer. VIME-R didn't just beat the other unsupervised methods; on the Ember dataset, it actually surpassed the "supervised ceiling" established by the best-performing supervised model in that specific test, SimSiam. While a fully supervised MLP classifier scored higher on the Bodmas dataset, on Ember, VIME-R achieved a family Homogeneity of 77.48%, beating the SimSiam score of 76.53%. This means that by using a clever "neighborhood" strategy, the unsupervised AI learned to group the malware families better than the supervised model that was explicitly told the family names in that specific context!
What This Means for the Future
The paper suggests that while some popular AI models (like Barlow Twins and VICReg) might not be the right tools for sorting malware spreadsheets, others (like BYOL and SimSiam) have huge potential if we can figure out how to create the right "pairs" of files for them to learn from.
Most importantly, the study proves that retrieval-augmented learning is a powerful new direction. By teaching the AI to learn from its closest neighbors rather than the whole world, we can get incredibly accurate results without needing expensive human labels. The researchers found that VIME-R improved the clustering quality by 2.7% to 5.8% over the previous best method.
While the study is limited to static features (like looking at a file's blueprint rather than watching it run) and specific datasets, the results are a strong signal. They show that with the right tricks, computers can learn to organize the chaotic world of malware on their own, potentially helping security guards spot new threats faster than ever before. The code for these methods will be made available, inviting others to build on this discovery.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.