CoolFace
Modelpublic

shaswatamitra/falcon-yara-bi-e5-base-v2

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

FALCON bi-encoder — YARA / e5-base-v2

Contrastive encoder fine-tuned to map CTI text and YARA rules into a shared embedding space. Backbone: intfloat/e5-base-v2.

Test-set metrics

splitrecall@1F1thresholddiag meanoff-diag mean
pretrained0.54800.29540.71130.88100.8226
run_00.94980.92980.70090.94940.1193
run_10.95090.92900.70260.96350.1401
run_20.94980.93140.70600.96450.1542
run_30.94980.93810.70590.96300.0780
run_40.94980.93350.70820.97460.0298

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