Add files using upload-large-folder tool
Browse filesFiles changed (6)
- README.mdAdded+57
- SHA256SUMSAdded+2
- benchmark_1720.zipAdded+3
- model.jsonAdded+16
- model_epoch5_best_acc_qwen3_8b_824.pthAdded+3
- paper_reference_metrics.jsonAdded+22
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657---language:- entags:- security-patch-detection- binary-analysis- graph-neural-network- qwen3base_model:- Qwen/Qwen3-8B- microsoft/unixcoder-base---
# StriderSPD
Full joint-model checkpoint for identifying security patches from paired pre/post binary control-flow graphs and decompiled pseudo-code.
The checkpoint contains 718 tensors, including the Qwen3-8B backbone, UniXcoder node encoder, GNN, cross-attention and binary classifier. Load it with the custom StriderSPD code in [7thParkk/StriderSPD](https://github.com/7thParkk/StriderSPD).
## Downloads
- [Paper checkpoint](https://huggingface.co/hanjin996/StriderSPD/resolve/main/model_epoch5_best_acc_qwen3_8b_824.pth): 25,682,301,190 bytes (25.68 GB).- [1,720-sample benchmark](https://huggingface.co/hanjin996/StriderSPD/resolve/main/benchmark_1720.zip): extract into `benchmark_1720/`. The ZIP contains `benchmark_new_infos.json`, `CFG/` and `pseudo/`.
The benchmark is also included directly in the GitHub repository. Each modality contains 3,440 JSON files, representing 1,720 paired pre/post samples. Labels: 1,010 security and 710 non-security.
Checkpoint SHA256:
```text991045a6bd0c8a30b113b1d2f633ed6d464f48ec06f4325b6adfef27db5e01e7```
Benchmark ZIP SHA256:
```textdde9462e5e57cc84749562e2064bd682376fb523c1f8e3c879a5de4dcbdd0536```
## Evaluation
See the GitHub README for environment installation and commands. The supported environment is Linux, Python 3.11, CUDA and BF16-capable GPUs. The original execution used four visible GPUs. Evaluation initializes the custom architecture using Qwen3-8B and UniXcoder, then strictly loads all checkpoint tensors.
The archived 1,720 predictions from this exact checkpoint produce the following results:
| Accuracy | Precision | Recall | F1 || --- | --- | --- | --- || 0.854070 | 0.822979 | 0.957426 | 0.885126 |
Confusion matrix: TP 967, TN 502, FP 208, FN 43. Positive means a security patch; the decision threshold is sigmoid(logit) >= 0.5. The reference prediction records and metrics are available in the GitHub `release_metadata/` directory.
The local checkpoint checksum and archived predictions have been verified. GPU inference with the portable release has not been rerun. The archived evaluation used a local LoRA-merged Qwen3 initializer; its tokenizer/config bytes have not been compared with the public model assets. All saved model weights are included in the joint checkpoint.
## Training and use
The GitHub code exposes the joint-training stage. Paper training initializes from a LoRA-merged Qwen3-8B model and requires the prepared train/dev data. The released 1,720-sample benchmark is for evaluation.
Model outputs provide a signal for prioritizing patch review. Evaluate performance on the intended projects and binary-analysis pipeline before use. The Qwen3-8B and UniXcoder upstream model licenses and conditions also apply to their components.12991045a6bd0c8a30b113b1d2f633ed6d464f48ec06f4325b6adfef27db5e01e7 model_epoch5_best_acc_qwen3_8b_824.pthdde9462e5e57cc84749562e2064bd682376fb523c1f8e3c879a5de4dcbdd0536 benchmark_1720.zip123version https://git-lfs.github.com/spec/v1oid sha256:dde9462e5e57cc84749562e2064bd682376fb523c1f8e3c879a5de4dcbdd0536size 2373262812345678910111213141516{ "model_name": "StriderSPD", "repository": "hanjin996/StriderSPD", "filename": "model_epoch5_best_acc_qwen3_8b_824.pth", "size_bytes": 25682301190, "sha256": "991045a6bd0c8a30b113b1d2f633ed6d464f48ec06f4325b6adfef27db5e01e7", "download_url": "https://huggingface.co/hanjin996/StriderSPD/resolve/main/model_epoch5_best_acc_qwen3_8b_824.pth", "format": "PyTorch full joint-model state_dict", "state_dict_entries": 718, "llm": "Qwen3-8B", "node_encoder": "microsoft/unixcoder-base", "attention_layer_frequency": 1, "reference_metrics": "release_metadata/paper_reference_metrics.json", "source_code_commit": "8262094", "verification": "Local checkpoint SHA256 matches the server source digest; archived prediction records reproduce the reported benchmark metrics. GPU evaluation of this portable release has not been rerun."}123version https://git-lfs.github.com/spec/v1oid sha256:991045a6bd0c8a30b113b1d2f633ed6d464f48ec06f4325b6adfef27db5e01e7size 2568230119012345678910111213141516171819202122{
"num_samples": 1720,
"accuracy": 0.8540697674418605,
"precision": 0.8229787234042554,
"recall": 0.9574257425742574,
"f1": 0.8851258581235698,
"fpr": 0.29295770521722464,
"tp": 967,
"tn": 502,
"fp": 208,
"fn": 43,
"pred_pos_rate": 0.6831395348837209,
"label_pos_rate": 0.5872093023255814,
"mean_logit": -0.1554695442665455,
"prediction_file": "release_metadata/reference_predictions.jsonl",
"benchmark_manifest": "benchmark_1720/benchmark_new_infos.json",
"checkpoint": "model_epoch5_best_acc_qwen3_8b_824.pth",
"code_root": "Original snapshot dated 2026-07-19",
"reference_export_date": "2026-08-12",
"decision_rule": "sigmoid(logit) >= 0.5",
"fpr_denominator_adjustment": 0.0001
}README.mdAdded+57
SHA256SUMSAdded+2
benchmark_1720.zipAdded+3
model.jsonAdded+16
model_epoch5_best_acc_qwen3_8b_824.pthAdded+3
paper_reference_metrics.jsonAdded+22