SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2601.17907 · 2026

FARM: Few-shot Adaptive Malware Family Classification under Concept Drift

Numan Guldemir, Oluwafemi Olukoya, Jesús Martínez-Del-Rincón

arXiv · PDF · Open in the Atlas

Code that ran

14 of 14 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 13 failures of our instrument; 0 no recorded run), measured 2026-11-22; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2601.17907.json · badge: /api/ran/2601.17907.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
numanhg/farm canonical (classifier label)
classifier basis: census
14 ran · 0 no recorded run
FunctionStatusWhere it lives
build_autoencoder Ran
ran; our contract draft was wrong, not the code
numanhg/farm/farm/triplet_network.py
pointer only (licence: NONE) · get_code("ae29970c99256b07")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, numanhg/farm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

build_triplet_multitask_model Ran
ran; our contract draft was wrong, not the code
numanhg/farm/farm/triplet_network.py
pointer only (licence: NONE) · get_code("2d0769f894d0c10b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, numanhg/farm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

calculate_thresholds_and_centroids Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
numanhg/farm/farm/meta_dicts.py
pointer only (licence: NONE) · get_code("a93c2dff0dae3545")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, numanhg/farm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

dense_block Ran
ran; our contract draft was wrong, not the code
numanhg/farm/farm/triplet_network.py
pointer only (licence: NONE) · get_code("487806bc3938c1a6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, numanhg/farm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

evaluate_model Ran
ran; our contract draft was wrong, not the code
numanhg/farm/src/experiments/build_retrain_dataset.py
pointer only (licence: NONE) · get_code("ce0ebe6c7c84c6d8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, numanhg/farm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_eval_set Ran
ran; our contract draft was wrong, not the code
numanhg/farm/src/experiments/build_retrain_dataset.py
pointer only (licence: NONE) · get_code("e7dfda78fbdff150")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, numanhg/farm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_artifacts Ran
ran; our contract draft was wrong, not the code
numanhg/farm/src/experiments/evaluate_adapted_model.py
pointer only (licence: NONE) · get_code("1120616827b89374")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, numanhg/farm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_retrain_data Ran
ran; our contract draft was wrong, not the code
numanhg/farm/src/experiments/evaluate_adapted_model.py
pointer only (licence: NONE) · get_code("50b89162f004bbbc")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, numanhg/farm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_retrain_data Ran
ran; our contract draft was wrong, not the code
numanhg/farm/src/experiments/update_model_and_thresholds.py
pointer only (licence: NONE) · get_code("22e819162e47bd5d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, numanhg/farm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

make_triplet_loss Ran
ran; our contract draft was wrong, not the code
numanhg/farm/farm/triplet_losses.py
pointer only (licence: NONE) · get_code("f8631f8b396d8895")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, numanhg/farm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

preprocess_data Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
numanhg/farm/farm/preprocessing.py
pointer only (licence: NONE) · get_code("264b4f8629fb2589")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, numanhg/farm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

sample_training_data Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
numanhg/farm/src/experiments/update_model_and_thresholds.py
pointer only (licence: NONE) · get_code("17274a6835a05531")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, numanhg/farm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

sample_triplet Ran
ran, honoured the contract we drafted
numanhg/farm/farm/triplet_batch.py
pointer only (licence: NONE) · get_code("cd0d0fa8c6cb9db5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, numanhg/farm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

split_train_val_test Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
numanhg/farm/farm/triplet_data.py
pointer only (licence: NONE) · get_code("f6909f20cf0f16b6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, numanhg/farm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

Also present in other papers' code

Of 14 samples lifted from this paper's linked repositories, 14 carry a function identity and 0 do not. Of the 14 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 14 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Malware classification models often suffer performance degradation under concept drift due to evolving threat landscapes and the emergence of novel malware families. This paper presents FARM (Few-shot Adaptive Recognition of Malware), a unified framework for detecting and adapting to both covariate drift and label drift in Windows Portable Executable (PE) malware family classification. FARM uses a triplet autoencoder to project samples into a discriminative latent space, enabling unsupervised drift detection through DBSCAN clustering and dynamic thresholding. To enable rapid adaptation, the framework employs a few-shot strategy that can incorporate new classes from only a small number of labeled samples. FARM also supports full retraining when sufficient drifted samples accumulate, allowing longer-term model updating. Experiments on the BenchMFC dataset show that FARM improves classification performance under covariate drift by 5.6%, and achieves an average F1 score of 0.85 on unseen malware families using fewshot adaptation, increasing to 0.94 after retraining. These results indicate that FARM provides an effective approach for driftaware malware family classification in dynamic environments with limited supervision.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2601.17907")
get_code_for_paper("2601.17907")
have("2601.17907")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2601.17907.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2601.17907.svg)](https://syntology.ai/paper/2601.17907)

Connect an agent — have() is free.