Model reference · open weights
SecureBERT2.0-cross_encoder is an open-weight embedding model from cisco-ai. AxForge deploys and operates it for you on dedicated EU-owned hardware — with the licence handled where one is required.
Available as managed deployment — configured and operated for you on dedicated EU hardware, quoted per deployment.
What it is
| Released by | cisco-ai |
|---|---|
| Type | Embedding models |
| Task | Embeddings |
| Parameters (lead) | 150M |
| Context | 8k tokens |
| Runs with | sentence-transformers |
| Based on | cisco-ai/SecureBERT2.0-base |
| Released | 2025-10-06 |
| Popularity | 1k downloads / month |
| Licence | Open weights |
About
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:
From the published model card. Full card on the HuggingFace links in the sidebar.
Using it via the API
Once AxForge deploys securebert2-0-cross-encoder for you, it answers on the OpenAI-compatible API — the same base URL and keys as every other model. (securebert2-0-cross-encoder below is illustrative; you get the exact model name on deployment.)
$ curl -sS https://api.axforge.ai/v1/embeddings \
-H "Authorization: Bearer $AXFORGE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"securebert2-0-cross-encoder","input":"text to embed"}'
Create an account — your API key is available in the console. 3M free tokens every 30 days with every new account.