Run this model with HF Jobs

Run CIRCL/vulnerability-severity-classification-chinese-macbert-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-chinese-macbert-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-chinese-macbert-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.

VLAI: Automated Vulnerability Severity Classification (Chinese Text)

A fine-tuned hfl/chinese-macbert-base model for classifying Chinese vulnerability descriptions from the China National Vulnerability Database (CNVD) into three severity levels: Low, Medium, and High.

Trained on the CIRCL/Vulnerability-CNVD dataset as part of the VulnTrain project.

Evaluation results

Evaluated on a deduplicated test set (26,312 samples) where no description text appears in both train and test splits, preventing data leakage from CNVD's reuse of boilerplate descriptions across different vulnerability IDs.

Class Precision Recall F1-score Support
Low 0.6264 0.3674 0.4631 2,360
Medium 0.7819 0.8072 0.7944 14,527
High 0.7502 0.7906 0.7699 9,425
  • Overall accuracy: 76.18%
  • Macro F1: 0.6758

Class distribution

The dataset is imbalanced: Low (9.0%), Medium (55.2%), High (35.8%).

Usage

from transformers import pipeline

classifier = pipeline(
    "text-classification",
    model="CIRCL/vulnerability-severity-classification-chinese-macbert-base"
)

description = "TOTOLINK A3600Rε­˜εœ¨ηΌ“ε†²εŒΊζΊ’ε‡ΊζΌζ΄žοΌŒζ”»ε‡»θ€…ε―εˆ©η”¨θ―₯ζΌζ΄žεœ¨η³»η»ŸδΈŠζ‰§θ‘Œδ»»ζ„δ»£η ζˆ–θ€…ε―Όθ‡΄ζ‹’η»ζœεŠ‘γ€‚"
result = classifier(description)
print(result)

Known limitations

  • Low severity recall: the Low class has the lowest recall. Approximately 60% of Low-severity entries are misclassified, mostly as Medium. This reflects the vocabulary overlap between Low and Medium descriptions in CNVD data. Class-weighted loss and focal loss were tested but all degraded Medium recall disproportionately without a net benefit.

  • Keyword dependency: the model biases toward a vulnerability type's typical severity. For example, buffer overflow descriptions are predicted as High regardless of the actual assigned severity. On entries where the actual severity deviates from the type's typical severity, accuracy drops from ~89% to ~55%.

  • Negation blindness: the model does not understand negation. Descriptions like "does NOT allow remote code execution" can still produce high-confidence High severity predictions.

  • CVE overlap: 81% of CNVD entries have a corresponding CVE. The model primarily adds value for the ~19% of CNVD-only entries (concentrated in Chinese domestic software) where no CVE severity assessment exists.

These limitations were identified through independent analysis in VulnTrain#19.

Training details

  • Base model: hfl/chinese-macbert-base
  • Dataset: CIRCL/Vulnerability-CNVD
  • Train/test split: deduplicated on description text (no leakage), 80/20 split
  • Loss: uniform cross-entropy (no class weighting)
  • Learning rate: 3e-05
  • Batch size: 16
  • Epochs: 5
  • Best model selection: by accuracy

References

Downloads last month
87
Safetensors
Model size
0.1B params
Tensor type
F32
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for CIRCL/vulnerability-severity-classification-chinese-macbert-base

Finetuned
(71)
this model

Dataset used to train CIRCL/vulnerability-severity-classification-chinese-macbert-base

Space using CIRCL/vulnerability-severity-classification-chinese-macbert-base 1

Collection including CIRCL/vulnerability-severity-classification-chinese-macbert-base

Paper for CIRCL/vulnerability-severity-classification-chinese-macbert-base