cedricbonhomme commited on
Commit
3c9363c
·
verified ·
1 Parent(s): f154e11

End of training

Browse files
Files changed (3) hide show
  1. README.md +35 -69
  2. config.json +1 -1
  3. model.safetensors +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,37 +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.0549
81
- - Accuracy: 0.8168
82
- - F1 Macro: 0.7486
83
- - Low Precision: 0.6931
84
- - Low Recall: 0.4992
85
- - Low F1: 0.5804
86
- - Medium Precision: 0.8449
87
- - Medium Recall: 0.8722
88
- - Medium F1: 0.8584
89
- - High Precision: 0.8083
90
- - High Recall: 0.8124
91
- - High F1: 0.8103
92
- - Critical Precision: 0.7617
93
- - Critical Recall: 0.7299
94
- - Critical F1: 0.7455
95
-
96
  ### Training results
97
 
98
  | 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 |
99
  |:-------------:|:-----:|:-----:|:---------------:|:--------:|:--------:|:-------------:|:----------:|:------:|:----------------:|:-------------:|:---------:|:--------------:|:-----------:|:-------:|:------------------:|:---------------:|:-----------:|
100
- | 2.4224 | 1.0 | 16352 | 2.5629 | 0.7378 | 0.6209 | 0.7021 | 0.2288 | 0.3451 | 0.7902 | 0.8129 | 0.8014 | 0.7011 | 0.7546 | 0.7269 | 0.6479 | 0.5765 | 0.6101 |
101
- | 2.1704 | 2.0 | 32704 | 2.3004 | 0.7693 | 0.6756 | 0.6116 | 0.3487 | 0.4442 | 0.8013 | 0.8491 | 0.8245 | 0.7664 | 0.7493 | 0.7577 | 0.6794 | 0.6727 | 0.6760 |
102
- | 2.1241 | 3.0 | 49056 | 2.1680 | 0.7906 | 0.7040 | 0.7357 | 0.3666 | 0.4894 | 0.8024 | 0.8852 | 0.8417 | 0.8044 | 0.7481 | 0.7752 | 0.7111 | 0.7082 | 0.7097 |
103
- | 1.5991 | 4.0 | 65408 | 2.0822 | 0.8083 | 0.7326 | 0.7214 | 0.4372 | 0.5444 | 0.8378 | 0.8689 | 0.8531 | 0.8028 | 0.7983 | 0.8005 | 0.7279 | 0.7370 | 0.7324 |
104
- | 1.6372 | 5.0 | 81760 | 2.0549 | 0.8168 | 0.7486 | 0.6931 | 0.4992 | 0.5804 | 0.8449 | 0.8722 | 0.8584 | 0.8083 | 0.8124 | 0.8103 | 0.7617 | 0.7299 | 0.7455 |
105
 
106
 
107
  ### Framework versions
108
 
109
- - Transformers 5.8.0
110
- - Pytorch 2.11.0+cu130
111
  - Datasets 4.8.5
112
  - 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.0079
22
+ - Accuracy: 0.8187
23
+ - F1 Macro: 0.7495
24
+ - Low Precision: 0.6490
25
+ - Low Recall: 0.5059
26
+ - Low F1: 0.5686
27
+ - Medium Precision: 0.8468
28
+ - Medium Recall: 0.8712
29
+ - Medium F1: 0.8588
30
+ - High Precision: 0.8140
31
+ - High Recall: 0.8114
32
+ - High F1: 0.8127
33
+ - Critical Precision: 0.7671
34
+ - Critical Recall: 0.7488
35
+ - Critical F1: 0.7579
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.8382 | 1.0 | 16475 | 2.5695 | 0.7351 | 0.6552 | 0.4964 | 0.4244 | 0.4576 | 0.7986 | 0.7994 | 0.7990 | 0.7393 | 0.6933 | 0.7156 | 0.5868 | 0.7245 | 0.6484 |
67
+ | 2.3037 | 2.0 | 32950 | 2.3201 | 0.7709 | 0.6774 | 0.6294 | 0.3490 | 0.4490 | 0.8025 | 0.8541 | 0.8275 | 0.7629 | 0.7502 | 0.7565 | 0.6908 | 0.6630 | 0.6766 |
68
+ | 2.1765 | 3.0 | 49425 | 2.1006 | 0.7905 | 0.7077 | 0.6790 | 0.3867 | 0.4928 | 0.8246 | 0.8568 | 0.8404 | 0.7894 | 0.7659 | 0.7775 | 0.6903 | 0.7524 | 0.7201 |
69
+ | 1.7249 | 4.0 | 65900 | 2.0247 | 0.8091 | 0.7329 | 0.6677 | 0.4528 | 0.5396 | 0.8236 | 0.8874 | 0.8543 | 0.8136 | 0.7828 | 0.7979 | 0.7669 | 0.7144 | 0.7397 |
70
+ | 1.3227 | 5.0 | 82375 | 2.0079 | 0.8187 | 0.7495 | 0.6490 | 0.5059 | 0.5686 | 0.8468 | 0.8712 | 0.8588 | 0.8140 | 0.8114 | 0.8127 | 0.7671 | 0.7488 | 0.7579 |
71
 
72
 
73
  ### Framework versions
74
 
75
+ - Transformers 5.8.1
76
+ - Pytorch 2.12.0+cu130
77
  - Datasets 4.8.5
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.8.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.8.1",
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:a02fca88e4cc69505091129c6eacd435a26eedafe6a4d35755ba9c3ddc692600
3
  size 498618976
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:425da81b964907c943a9fd042b0ac9f4fbf58f2a82baee3448fba8432fbf76cc
3
  size 498618976