Text Classification
Transformers
Safetensors
English
roberta
Generated from Trainer
classification
nlp
vulnerability
Eval Results (legacy)
text-embeddings-inference
Run this model with HF Jobs
Run CIRCL/vulnerability-severity-classification-roberta-base on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/CIRCL/vulnerability-severity-classification-roberta-base. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/CIRCL/vulnerability-severity-classification-roberta-base on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use CIRCL/vulnerability-severity-classification-roberta-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
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")# pip install -U transformers accelerate # 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") - Inference
- Notebooks
- Google Colab
- Kaggle
End of training
Browse filesFiles changed (2)
- README.md+20-54
- model.safetensors+1-1
12334565691011127891011161712131415162122232425262728293031171819202122232425363738394041422627442829464748493031515253323355565758596061626364343536378 unmodified lines464748798081824950515287888990915354555657585960---library_name: transformerslicense: cc-by-4.0license: mitbase_model: roberta-basemetrics:- accuracytags:- generated_from_trainer- text-classification- classification- nlp- vulnerabilitymetrics:- accuracymodel-index:- name: vulnerability-severity-classification-roberta-base results: []datasets:- CIRCL/vulnerability-scores---
<!-- This model card has been generated automatically according to the information the Trainer had access to. Youshould probably proofread and complete it, then remove this comment. -->
# VLAI: A RoBERTa-Based Model for Automated Vulnerability Severity Classification
# Severity classification
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).
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)].
**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.
You can read [this page](https://www.vulnerability-lookup.org/user-manual/ai/) for more information.# vulnerability-severity-classification-roberta-base
This model is a fine-tuned version of [roberta-base](https://huggingface.co/roberta-base) on an unknown dataset.It achieves the following results on the evaluation set:- Loss: 2.0147- Accuracy: 0.8189
## Model description
It is a classification model and is aimed to assist in classifying vulnerabilities by severity based on their descriptions.
## How to get started with the model
```pythonfrom transformers import AutoModelForSequenceClassification, AutoTokenizerimport torchMore information needed
labels = ["low", "medium", "high", "critical"]## Intended uses & limitations
model_name = "CIRCL/vulnerability-severity-classification-roberta-base"tokenizer = AutoTokenizer.from_pretrained(model_name)model = AutoModelForSequenceClassification.from_pretrained(model_name)model.eval()More information needed
test_description = "SAP NetWeaver Visual Composer Metadata Uploader is not protected with a proper authorization, allowing unauthenticated agent to upload potentially malicious executable binaries \that could severely harm the host system. This could significantly affect the confidentiality, integrity, and availability of the targeted system."inputs = tokenizer(test_description, return_tensors="pt", truncation=True, padding=True)## Training and evaluation data
# Run inferencewith torch.no_grad(): outputs = model(**inputs) predictions = torch.nn.functional.softmax(outputs.logits, dim=-1)
# Print resultsprint("Predictions:", predictions)predicted_class = torch.argmax(predictions, dim=-1).item()print("Predicted severity:", labels[predicted_class])```More information needed
## Training procedure
8 unmodified lines- lr_scheduler_type: linear- num_epochs: 5
It achieves the following results on the evaluation set:- Loss: 2.0377- Accuracy: 0.8151
### Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy ||:-------------:|:-----:|:-----:|:---------------:|:--------:|| 2.5673 | 1.0 | 15312 | 2.5667 | 0.7330 || 2.2339 | 2.0 | 30624 | 2.2996 | 0.7678 || 1.9288 | 3.0 | 45936 | 2.1713 | 0.7870 || 1.6486 | 4.0 | 61248 | 2.0764 | 0.8027 || 1.4956 | 5.0 | 76560 | 2.0377 | 0.8151 || 2.9778 | 1.0 | 15387 | 2.5250 | 0.7408 || 1.8687 | 2.0 | 30774 | 2.2716 | 0.7739 || 2.1265 | 3.0 | 46161 | 2.1010 | 0.7921 || 1.8736 | 4.0 | 61548 | 2.0113 | 0.8081 || 1.5266 | 5.0 | 76935 | 2.0147 | 0.8189 |
### Framework versions1223version https://git-lfs.github.com/spec/v1oid sha256:df6a35c1403f5222ce1b94dca35b3b1a4fa22fb064ff2e4d74c12d2aacc1cd77oid sha256:e1bfb11710df9e740342e84a578db6f95a89cb5a6dbcba59b976de349621238bsize 498618952README.md+20-54
model.safetensors+1-1