CoolFace
Modelpublic

shaswatamitra/falcon-yara-bi-all-MiniLM-L6-v2

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

FALCON bi-encoder — YARA / all-MiniLM-L6-v2

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

Test-set metrics

splitrecall@1F1thresholddiag meanoff-diag mean
pretrained0.79800.54090.71710.91980.7944
run_00.94760.90750.70750.96570.1632
run_10.94870.92620.70810.96490.0723
run_20.94980.91560.70890.96740.0953
run_30.94870.93470.70800.96720.0671
run_40.95090.93550.70780.97650.0067

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-yara-bi-all-MiniLM-L6-v2")
model = AutoModel.from_pretrained("shaswatamitra/falcon-yara-bi-all-MiniLM-L6-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}
}