CoolFace
Modelpublic

shaswatamitra/falcon-snort-bi-all-mpnet-base-v2

sourceHugging Facecc-by-nc-nd-4.0updated 4mo agoView on Hugging Face
0likes82downloads
Model Card

FALCON bi-encoder — SNORT / all-mpnet-base-v2

Contrastive encoder fine-tuned to map CTI text and SNORT rules into a shared embedding space. Backbone: sentence-transformers/all-mpnet-base-v2.

Test-set metrics

splitrecall@1F1thresholddiag meanoff-diag mean
pretrained0.81420.30630.64410.56530.3167
run_00.95390.91180.70360.93520.0594
run_10.95260.93100.70080.92830.0472
run_20.95510.93010.69660.93580.0510
run_30.95510.93600.69860.94230.0381
run_40.95510.94430.71120.96680.0073

Training

Symmetric InfoNCE / NT-Xent over in-batch negatives. Best checkpoint selected by validation loss.

  • —Run 0 — batch=16, epochs=5, lr=2e-05, schedule=constant, T=0.05
  • —Run 1 — batch=50, epochs=10, lr=2e-05, schedule=constant, T=0.05
  • —Run 2 — batch=70, epochs=30, lr=2e-05, schedule=constant, T=0.05
  • —Run 3 — batch=128, epochs=30, lr=5e-05, schedule=warmup_cosine, T=0.05
  • —Run 4 — batch=70, epochs=50, lr=2e-05, schedule=constant, T=0.07

Loading

python
from transformers import AutoModel, AutoTokenizer
tok   = AutoTokenizer.from_pretrained("shaswatamitra/falcon-snort-bi-all-mpnet-base-v2")
model = AutoModel.from_pretrained("shaswatamitra/falcon-snort-bi-all-mpnet-base-v2")

Citation

bibtex
@article{mitra2025falcon,
  title={FALCON: Autonomous Cyber Threat Intelligence Mining with LLMs for IDS Rule Generation},
  author={Mitra, Shaswata and Bazarov, Azim and Duclos, Martin and Mittal, Sudip and Piplai, Aritran and Rahman, Md Rayhanur and Zieglar, Edward and Rahimi, Shahram},
  journal={arXiv preprint arXiv:2508.18684},
  year={2025}
}