CoolFace
Modelpublic

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

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

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

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

Test-set metrics

splitrecall@1F1thresholddiag meanoff-diag mean
pretrained0.73250.23650.68500.73150.4856
run_00.95090.93350.70890.96320.1041
run_10.95090.93000.70080.96280.0473
run_20.95090.93940.70460.95590.0670
run_30.95090.93260.70060.94700.0347
run_40.95090.94200.71070.97540.0106

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-mpnet-base-v2")
model = AutoModel.from_pretrained("shaswatamitra/falcon-yara-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}
}