Downloads · 30 days
664
0% of all-time downloads
cisco-ai/SecureBERT2.0-cross_encoder
SecureBERT2.0-cross_encoder is a sentence similarity model from cisco-ai. Use it when you need a score for how close two texts are. It is set up for sentence-transformers. The card lists the license as apache-2.0.
The SecureBERT 2.0 Cross-Encoder is a cybersecurity domain-specific model fine-tuned from SecureBERT 2.0. It computes pairwise similarity scores between two texts, enabling use in text reranking, semantic search, and…
Downloads · 30 days
664
0% of all-time downloads
All-time downloads
705K
Public
Parameters
150M
1.8 GB on disk
Likes
3
Public
Click a slice to open those files.
.pt1.2 GB · 67%
From the Hugging Face model README
The SecureBERT 2.0 Cross-Encoder is a cybersecurity domain-specific model fine-tuned from SecureBERT 2.0.
It computes pairwise similarity scores between two texts, enabling use in text reranking, semantic search, and cybersecurity intelligence retrieval tasks.
Can be integrated into:
The model reflects the distribution of cybersecurity-related data used during fine-tuning.
Potential risks include:
Users should evaluate results for domain alignment and combine with other retrieval models or heuristic filters when applied to non-cybersecurity contexts.
pip install -U sentence-transformers
from sentence_transformers import CrossEncoder
# Load the model
model = CrossEncoder("cisco-ai/SecureBERT2.0-cross-encoder")
# Example pairs
pairs = [
["How does Stealc malware extract browser data?",
"Stealc uses Sqlite3 DLL to query browser databases and retrieve cookies, passwords, and history."],
["Best practices for post-acquisition cybersecurity integration?",
"Conduct security assessment, align policies, integrate security technologies, and train employees."],
]
# Compute similarity scores
scores = model.predict(pairs)
print(scores)
query = "How to prevent Kerberoasting attacks?"
candidates = [
"Implement MFA and privileged access management",
"Monitor Kerberos tickets for anomalous activity",
"Apply zero-trust network segmentation",
]
ranking = model.rank(query, candidates)
print(ranking)
The model was fine-tuned on a cybersecurity sentence-pair similarity dataset for cross-encoder training.
sentence1, sentence2, label| Field | Mean Length |
|---|---|
| Sentence1 | 98.46 |
| Sentence2 | 1468.34 |
| Label | 1.0 |
| Field | Type | Description |
|---|---|---|
| sentence1 | string | Query or document text |
| sentence2 | string | Paired document or candidate response |
| label | float | Similarity score between the two inputs |
The model was trained using a contrastive ranking objective to learn high-quality similarity scores between cybersecurity-related text pairs.
{
"scale": 10.0,
"num_negatives": 10,
"activation_fn": "torch.nn.modules.activation.Sigmoid",
"mini_batch_size": 24
}
The evaluation was performed on a held-out test set of cybersecurity-related question–answer pairs and document retrieval tasks.
Data includes:
Evaluation considered multiple aspects of similarity and relevance:
The model was evaluated using standard information retrieval metrics:
| Model | mAP | R@1 | NDCG@10 | MRR@10 |
|---|---|---|---|---|
| ms-marco-TinyBERT-L2 | 0.920 | 0.849 | 0.964 | 0.955 |
| SecureBERT 2.0 Cross-Encoder | 0.955 | 0.948 | 0.986 | 0.983 |
The SecureBERT 2.0 Cross-Encoder achieves state-of-the-art retrieval and ranking performance on cybersecurity text similarity tasks.
Compared to the general-purpose ms-marco-TinyBERT-L2 baseline:
These results confirm that domain-specific pretraining and fine-tuning substantially enhance semantic understanding and information retrieval capabilities in cybersecurity applications.
Bibtex
@article{aghaei2025securebert,
title={SecureBERT 2.0: Advanced Language Model for Cybersecurity Intelligence},
author={Aghaei, Ehsan and Jain, Sarthak and Arun, Prashanth and Sambamoorthy, Arjun},
journal={arXiv preprint arXiv:2510.00240},
year={2025}
}
Cisco AI
For inquiries, please contact [email protected]