cedricbonhomme commited on
Commit
e4a3453
·
verified ·
1 Parent(s): a2300cc

End of training

Browse files
Files changed (4) hide show
  1. README.md +36 -58
  2. config.json +1 -1
  3. model.safetensors +1 -1
  4. training_args.bin +1 -1
README.md CHANGED
@@ -1,67 +1,50 @@
1
  ---
2
  library_name: transformers
3
- license: cc-by-4.0
4
  base_model: roberta-base
5
- metrics:
6
- - accuracy
7
  tags:
8
  - generated_from_trainer
9
- - text-classification
10
- - classification
11
- - nlp
12
- - vulnerability
13
  model-index:
14
  - name: vulnerability-severity-classification-roberta-base
15
  results: []
16
- datasets:
17
- - CIRCL/vulnerability-scores
18
  ---
19
 
 
 
20
 
21
- # VLAI: A RoBERTa-Based Model for Automated Vulnerability Severity Classification
22
-
23
- # Severity classification
24
-
25
- This model is a fine-tuned version of [roberta-base](https://huggingface.co/roberta-base) on the dataset [CIRCL/vulnerability-scores](https://huggingface.co/datasets/CIRCL/vulnerability-scores).
26
-
27
- The model was presented in the paper [VLAI: A RoBERTa-Based Model for Automated Vulnerability Severity Classification](https://huggingface.co/papers/2507.03607) [[arXiv](https://arxiv.org/abs/2507.03607)].
28
-
29
- **Abstract:** VLAI is a transformer-based model that predicts software vulnerability severity levels directly from text descriptions. Built on RoBERTa, VLAI is fine-tuned on over 600,000 real-world vulnerabilities and achieves over 82% accuracy in predicting severity categories, enabling faster and more consistent triage ahead of manual CVSS scoring. The model and dataset are open-source and integrated into the Vulnerability-Lookup service.
30
-
31
- You can read [this page](https://www.vulnerability-lookup.org/user-manual/ai/) for more information.
32
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
 
34
  ## Model description
35
 
36
- It is a classification model and is aimed to assist in classifying vulnerabilities by severity based on their descriptions.
37
-
38
- ## How to get started with the model
39
-
40
- ```python
41
- from transformers import AutoModelForSequenceClassification, AutoTokenizer
42
- import torch
43
 
44
- labels = ["low", "medium", "high", "critical"]
45
 
46
- model_name = "CIRCL/vulnerability-severity-classification-roberta-base"
47
- tokenizer = AutoTokenizer.from_pretrained(model_name)
48
- model = AutoModelForSequenceClassification.from_pretrained(model_name)
49
- model.eval()
50
 
51
- test_description = "SAP NetWeaver Visual Composer Metadata Uploader is not protected with a proper authorization, allowing unauthenticated agent to upload potentially malicious executable binaries \
52
- that could severely harm the host system. This could significantly affect the confidentiality, integrity, and availability of the targeted system."
53
- inputs = tokenizer(test_description, return_tensors="pt", truncation=True, padding=True)
54
 
55
- # Run inference
56
- with torch.no_grad():
57
- outputs = model(**inputs)
58
- predictions = torch.nn.functional.softmax(outputs.logits, dim=-1)
59
-
60
- # Print results
61
- print("Predictions:", predictions)
62
- predicted_class = torch.argmax(predictions, dim=-1).item()
63
- print("Predicted severity:", labels[predicted_class])
64
- ```
65
 
66
  ## Training procedure
67
 
@@ -76,25 +59,20 @@ The following hyperparameters were used during training:
76
  - lr_scheduler_type: linear
77
  - num_epochs: 5
78
 
79
- It achieves the following results on the evaluation set:
80
- - Loss: 2.0151
81
- - Accuracy: 0.8167
82
-
83
-
84
  ### Training results
85
 
86
- | Training Loss | Epoch | Step | Validation Loss | Accuracy |
87
- |:-------------:|:-----:|:-----:|:---------------:|:--------:|
88
- | 2.5823 | 1.0 | 15871 | 2.5155 | 0.7412 |
89
- | 2.2788 | 2.0 | 31742 | 2.2984 | 0.7668 |
90
- | 2.1224 | 3.0 | 47613 | 2.1535 | 0.7869 |
91
- | 1.8902 | 4.0 | 63484 | 2.0301 | 0.8057 |
92
- | 1.5144 | 5.0 | 79355 | 2.0151 | 0.8167 |
93
 
94
 
95
  ### Framework versions
96
 
97
- - Transformers 5.4.0
98
  - Pytorch 2.11.0+cu130
99
  - Datasets 4.8.4
100
  - Tokenizers 0.22.2
 
1
  ---
2
  library_name: transformers
3
+ license: mit
4
  base_model: roberta-base
 
 
5
  tags:
6
  - generated_from_trainer
7
+ metrics:
8
+ - accuracy
 
 
9
  model-index:
10
  - name: vulnerability-severity-classification-roberta-base
11
  results: []
 
 
12
  ---
13
 
14
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
15
+ should probably proofread and complete it, then remove this comment. -->
16
 
17
+ # vulnerability-severity-classification-roberta-base
 
 
 
 
 
 
 
 
 
 
18
 
19
+ This model is a fine-tuned version of [roberta-base](https://huggingface.co/roberta-base) on an unknown dataset.
20
+ It achieves the following results on the evaluation set:
21
+ - Loss: 2.0502
22
+ - Accuracy: 0.8139
23
+ - F1 Macro: 0.7431
24
+ - Low Precision: 0.6397
25
+ - Low Recall: 0.4924
26
+ - Low F1: 0.5565
27
+ - Medium Precision: 0.8410
28
+ - Medium Recall: 0.8714
29
+ - Medium F1: 0.8559
30
+ - High Precision: 0.8123
31
+ - High Recall: 0.8011
32
+ - High F1: 0.8067
33
+ - Critical Precision: 0.7592
34
+ - Critical Recall: 0.7477
35
+ - Critical F1: 0.7534
36
 
37
  ## Model description
38
 
39
+ More information needed
 
 
 
 
 
 
40
 
41
+ ## Intended uses & limitations
42
 
43
+ More information needed
 
 
 
44
 
45
+ ## Training and evaluation data
 
 
46
 
47
+ More information needed
 
 
 
 
 
 
 
 
 
48
 
49
  ## Training procedure
50
 
 
59
  - lr_scheduler_type: linear
60
  - num_epochs: 5
61
 
 
 
 
 
 
62
  ### Training results
63
 
64
+ | 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 |
65
+ |:-------------:|:-----:|:-----:|:---------------:|:--------:|:--------:|:-------------:|:----------:|:------:|:----------------:|:-------------:|:---------:|:--------------:|:-----------:|:-------:|:------------------:|:---------------:|:-----------:|
66
+ | 2.7509 | 1.0 | 15759 | 2.5739 | 0.7341 | 0.6469 | 0.5294 | 0.3716 | 0.4367 | 0.7947 | 0.8050 | 0.7998 | 0.7148 | 0.7127 | 0.7137 | 0.6192 | 0.6570 | 0.6375 |
67
+ | 2.3507 | 2.0 | 31518 | 2.4020 | 0.7609 | 0.6754 | 0.5901 | 0.3763 | 0.4595 | 0.7847 | 0.8626 | 0.8218 | 0.7920 | 0.6852 | 0.7348 | 0.6399 | 0.7385 | 0.6857 |
68
+ | 1.6387 | 3.0 | 47277 | 2.1924 | 0.7858 | 0.7093 | 0.6319 | 0.4335 | 0.5142 | 0.8197 | 0.8558 | 0.8374 | 0.7971 | 0.7467 | 0.7711 | 0.6734 | 0.7614 | 0.7147 |
69
+ | 1.2756 | 4.0 | 63036 | 2.0808 | 0.8042 | 0.7289 | 0.6554 | 0.4562 | 0.5380 | 0.8217 | 0.8792 | 0.8495 | 0.8022 | 0.7858 | 0.7939 | 0.7730 | 0.6991 | 0.7342 |
70
+ | 1.5348 | 5.0 | 78795 | 2.0502 | 0.8139 | 0.7431 | 0.6397 | 0.4924 | 0.5565 | 0.8410 | 0.8714 | 0.8559 | 0.8123 | 0.8011 | 0.8067 | 0.7592 | 0.7477 | 0.7534 |
71
 
72
 
73
  ### Framework versions
74
 
75
+ - Transformers 5.5.0
76
  - Pytorch 2.11.0+cu130
77
  - Datasets 4.8.4
78
  - Tokenizers 0.22.2
config.json CHANGED
@@ -34,7 +34,7 @@
34
  "pad_token_id": 1,
35
  "problem_type": "single_label_classification",
36
  "tie_word_embeddings": true,
37
- "transformers_version": "5.4.0",
38
  "type_vocab_size": 1,
39
  "use_cache": true,
40
  "vocab_size": 50265
 
34
  "pad_token_id": 1,
35
  "problem_type": "single_label_classification",
36
  "tie_word_embeddings": true,
37
+ "transformers_version": "5.5.0",
38
  "type_vocab_size": 1,
39
  "use_cache": true,
40
  "vocab_size": 50265
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:673e35db5e1847d0950d3f200fc2eea3e18bb4016e48ba81e15e4f0e4272ca7a
3
  size 498618952
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:45b332e5b806ab9f5eec0cc477a61ecc9319048bf8f539587b597f37388a418d
3
  size 498618952
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:d5c9228ce48c1d74ec90ce865a9b5c409505e7e08212aacac7217e118b754c76
3
  size 5265
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6a89f00003aad1fd8409cc273592dc9478b1934fab4e9a8a3b21a4719f2d2dc3
3
  size 5265