VLAI for Severity
Collection
A collection of papers, models, and datasets supporting the AI and NLP components of the Vulnerability-Lookup project. โข 9 items โข Updated โข 2
How to use CIRCL/vulnerability-severity-classification-roberta-base with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="CIRCL/vulnerability-severity-classification-roberta-base") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("CIRCL/vulnerability-severity-classification-roberta-base")
model = AutoModelForSequenceClassification.from_pretrained("CIRCL/vulnerability-severity-classification-roberta-base", device_map="auto")# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("CIRCL/vulnerability-severity-classification-roberta-base")
model = AutoModelForSequenceClassification.from_pretrained("CIRCL/vulnerability-severity-classification-roberta-base", device_map="auto")This model is a fine-tuned version of roberta-base on an unknown dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 Macro | Low Precision | Low Recall | Low F1 | Medium Precision | Medium Recall | Medium F1 | High Precision | High Recall | High F1 | Critical Precision | Critical Recall | Critical F1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2.6595 | 1.0 | 18151 | 2.5896 | 0.7341 | 0.6285 | 0.6716 | 0.2567 | 0.3714 | 0.7917 | 0.7991 | 0.7954 | 0.7002 | 0.7492 | 0.7239 | 0.6326 | 0.6141 | 0.6232 |
| 2.4978 | 2.0 | 36302 | 2.3990 | 0.7614 | 0.6814 | 0.5762 | 0.4255 | 0.4895 | 0.7779 | 0.8556 | 0.8149 | 0.7881 | 0.7133 | 0.7488 | 0.6681 | 0.6771 | 0.6726 |
| 1.7617 | 3.0 | 54453 | 2.1975 | 0.7879 | 0.7097 | 0.6682 | 0.4156 | 0.5125 | 0.8119 | 0.8615 | 0.8360 | 0.8056 | 0.7546 | 0.7793 | 0.6775 | 0.7484 | 0.7112 |
| 1.7304 | 4.0 | 72604 | 2.0677 | 0.8075 | 0.7366 | 0.6663 | 0.4761 | 0.5554 | 0.8389 | 0.8588 | 0.8487 | 0.8077 | 0.8021 | 0.8049 | 0.7248 | 0.7506 | 0.7375 |
| 1.4189 | 5.0 | 90755 | 2.0411 | 0.8164 | 0.7491 | 0.6536 | 0.5148 | 0.5759 | 0.8377 | 0.8712 | 0.8541 | 0.8236 | 0.8077 | 0.8156 | 0.7561 | 0.7457 | 0.7509 |
Base model
FacebookAI/roberta-base
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="CIRCL/vulnerability-severity-classification-roberta-base")