CIRCL/vulnerability-attack-technique-classification-roberta-base-llm-expanded

Model

0

stars

4

commits

2

linked in READMEs

Jul 29, 2026

updated

cti
cve
endpoints_compatible
generated_from_trainer
mitre-attack
model-index
multi-label-classification
negative-result
roberta
safetensors
security
text-classification
text-embeddings-inference
transformers
vulnerability
Browse cluster: Transformer Text Classification & Embeddings

README

vulnerability-attack-technique-classification-roberta-base-llm-expanded

This is a negative-result comparison checkpoint, published for reproducibility. For applications, use CIRCL/vulnerability-attack-technique-classification-roberta-base.

A multi-label classifier that suggests MITRE ATT&CK (Enterprise) techniques from a free-text vulnerability description. It is identical to the released gold-only model — same base model (roberta-base), same 53-technique label vocabulary, same seed, same evaluation protocol — except for one thing: its training set folds 984 additional LLM-labeled CVEs (CIRCL/vulnerability-attack-techniques-llm-scaling, labeled by qwen3.5:122b at ≈0.39 agreement with the expert gold labels) into the 972 expert-labeled training rows.

The paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion (arXiv:2607.25572) uses this pair of checkpoints to answer the question "can LLM-assisted labeling extend a small expert gold set?" — and the answer is no, not at this agreement level: no reliable ranking improvement at any expansion size from 100 to 984 CVEs, and measurable degradation of rare-technique coverage at scale.

DOI: 10.57967/hf/9624

What this checkpoint shows

Five seeds, corrected protocol (checkpoint selection on the validation split), identical test split — gold-only vs. this configuration (gold + 984 LLM rows):

MetricGold-onlyGold + 984 LLM
Recall@50.673 ± 0.0190.651 ± 0.022
Recall@30.536 ± 0.0320.534 ± 0.012
F1 micro0.410 ± 0.0060.427 ± 0.028
F1 macro0.177 ± 0.0140.151 ± 0.014

The pattern: the noisy labels concentrate mass on frequent, "obvious" techniques (micro-F1 up a little) while deflating exactly the rare-technique coverage the expert labels paid for (macro-F1 down ≈3 SEM, no recall@5 gain). On CVE-2021-44077, for example, this checkpoint is more confident than the gold model about T1190 (Exploit Public-Facing Application) but drops the analyst-credited T1505 (Server Software Component) below the prediction threshold and pushes tail techniques such as T1136 (Create Account) from rank 18 to 32. Section 6 of the paper gives the full account, including why an earlier apparent gain turned out to be evaluation noise.

How to use

Same interface as the gold-only model:

import torch
from transformers import AutoModelForSequenceClassification, AutoTokenizer

model_id = "CIRCL/vulnerability-attack-technique-classification-roberta-base-llm-expanded"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForSequenceClassification.from_pretrained(model_id)
model.eval()

description = "..."  # free-text vulnerability description
inputs = tokenizer(description, truncation=True, max_length=512, return_tensors="pt")
with torch.no_grad():
    probs = torch.sigmoid(model(**inputs).logits)[0]

for i in probs.argsort(descending=True)[:5]:
    print(f"{model.config.id2label[int(i)]}  {probs[i]:.4f}")

Or side by side with the released model on a live CVE:

vulntrain-infer-attack-classification --cve CVE-2021-44077 \
    --model CIRCL/vulnerability-attack-technique-classification-roberta-base-llm-expanded

Intended uses & limitations

Intended: reproducing and extending the paper's expansion experiments — e.g. contrasting its per-technique behaviour with the gold-only checkpoint, or as a baseline for better silver-labeling strategies (higher-agreement labelers, agreement-weighted losses, human-in-the-loop curation).

Not intended: production use. It is strictly dominated by the gold-only model on ranking and rare-technique metrics, which is why Vulnerability-Lookup deploys the gold-only checkpoint. All limitations of the gold-only model (53-technique vocabulary, KEV-skewed data, English only, 512-token truncation, uncalibrated scores, unverified suggestions) apply here too.

Training and evaluation data

  • Expert rows: the 972-row train split of CIRCL/vulnerability-attack-techniques (MITRE CTID gold mappings).
  • LLM rows (train only): 984 CVEs from CIRCL/vulnerability-attack-techniques-llm-scaling, labeled by qwen3.5:122b (Ollama, assertive single-call prompt following the CTID methodology) — the best configuration of the paper's labeler benchmark, at ≈0.39 F1 agreement with held-out expert labels.
  • The label vocabulary stays frozen to the gold train split, and the validation (106) and test (118) splits contain only expert-labeled rows; checkpoint selection uses the validation split.

Training procedure

Binary cross-entropy over 53 sigmoid outputs with balanced per-label pos_weight, trained with vulntrain-train-attack-classification (VulnTrain), like the gold-only model — only the training set differs (1,956 rows instead of 972).

Training hyperparameters

The following hyperparameters were used during training:

  • learning_rate: 1e-05
  • train_batch_size: 32
  • eval_batch_size: 32
  • seed: 42
  • optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
  • lr_scheduler_type: linear
  • num_epochs: 40
  • max_length: 512
  • loss: BCEWithLogitsLoss, balanced pos_weight
  • checkpoint selection: best macro-F1 on the validation split

Training results

Training LossEpochStepValidation LossF1 MicroF1 MacroPrecision MicroRecall MicroRecall At 3Recall At 5
0.71951.0620.76520.25470.02780.18210.42320.28620.3870
0.64872.01240.73030.26280.04310.17790.50210.27170.3564
0.64423.01860.71330.29310.05280.20420.51870.37410.4821
0.60534.02480.69030.33530.07520.25970.47300.37300.5167
0.60375.03100.67150.33920.08860.26190.48130.41930.5561
0.55606.03720.65570.33560.09700.25210.50210.40020.5483
0.52047.04340.64960.32050.09690.23190.51870.37820.5023
0.50678.04960.63690.34700.10980.26280.51040.40920.5781
0.50609.05580.62560.36260.11950.27310.53940.45480.6115
0.442610.06200.62070.32120.10760.2380.49380.43040.5597
0.441411.06820.61740.38400.12130.30490.51870.47000.6059
0.445312.07440.61840.31630.14320.22170.55190.41560.5636
0.432813.08060.61220.33510.14030.24470.53110.44410.5816
0.421914.08680.61330.37730.15430.28660.55190.46420.6327
0.410915.09300.60750.37220.16070.27200.58920.46820.6197
0.390516.09920.60380.37780.16650.27710.59340.46420.6307
0.394817.010540.60250.37810.14480.28220.57260.46450.5977
0.378518.011160.60340.38450.15210.29390.55600.45290.6422
0.372319.011780.60380.38100.14670.28750.56430.49140.6543
0.358020.012400.60360.37900.15040.28420.56850.45240.6257
0.334321.013020.59930.38780.15220.29780.55600.52280.6688
0.338622.013640.60000.39940.15010.31030.56020.48190.6740
0.344423.014260.59770.39770.15860.30130.58510.49450.6787
0.330324.014880.60030.39880.15710.30720.56850.48620.6594
0.320625.015500.60440.40.15740.31240.55600.47920.6825
0.318026.016120.60800.40310.15150.31880.54770.50080.6744
0.310027.016740.60850.40370.15000.32110.54360.51970.6289
0.307528.017360.60610.40710.16220.31580.57260.49530.6656
0.304229.017980.61350.39820.15500.31550.53940.49610.6722
0.304430.018600.60970.40.15790.31780.53940.48740.6751
0.303231.019220.60280.38750.15880.29500.56430.47960.6509
0.286832.019840.60830.39940.15220.31570.54360.50630.6869
0.282133.020460.60930.40180.15350.31870.54360.48000.6727
0.291534.021080.60440.39820.15280.31150.55190.49720.6609
0.282935.021700.61120.39880.15450.31220.55190.49520.6869
0.291536.022320.61110.40620.15100.32270.54770.50790.6853
0.278137.022940.61530.40.15070.32080.53110.50200.6778
0.272438.023560.61150.40310.15090.32030.54360.49720.6778
0.279439.024180.61420.39750.14680.31760.53110.49840.6801
0.266140.024800.61230.40250.15160.31950.54360.49720.6825

Framework versions

  • Transformers 5.13.0
  • Pytorch 2.12.1+cu130
  • Datasets 4.8.5
  • Tokenizers 0.22.2

Citation

@misc{bonhomme2026mappingcvesmitreattck,
      title={Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion},
      author={Cédric Bonhomme and Alexandre Dulaunoy},
      year={2026},
      eprint={2607.25572},
      archivePrefix={arXiv},
      primaryClass={cs.CR},
      url={https://arxiv.org/abs/2607.25572},
}

Acknowledgements

Developed at CIRCL in the context of the AIPITCH project, co-funded by the European Union.

Contributors

CIRCL/vulnerability-attack-technique-classification-roberta-base-llm-expanded

Model

0

stars

4

commits

2

linked in READMEs

Jul 29, 2026

updated

cti
cve
endpoints_compatible
generated_from_trainer
mitre-attack
model-index
multi-label-classification
negative-result
roberta
safetensors
security
text-classification
text-embeddings-inference
transformers
vulnerability
Browse cluster: Transformer Text Classification & Embeddings

README

vulnerability-attack-technique-classification-roberta-base-llm-expanded

This is a negative-result comparison checkpoint, published for reproducibility. For applications, use CIRCL/vulnerability-attack-technique-classification-roberta-base.

A multi-label classifier that suggests MITRE ATT&CK (Enterprise) techniques from a free-text vulnerability description. It is identical to the released gold-only model — same base model (roberta-base), same 53-technique label vocabulary, same seed, same evaluation protocol — except for one thing: its training set folds 984 additional LLM-labeled CVEs (CIRCL/vulnerability-attack-techniques-llm-scaling, labeled by qwen3.5:122b at ≈0.39 agreement with the expert gold labels) into the 972 expert-labeled training rows.

The paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion (arXiv:2607.25572) uses this pair of checkpoints to answer the question "can LLM-assisted labeling extend a small expert gold set?" — and the answer is no, not at this agreement level: no reliable ranking improvement at any expansion size from 100 to 984 CVEs, and measurable degradation of rare-technique coverage at scale.

DOI: 10.57967/hf/9624

What this checkpoint shows

Five seeds, corrected protocol (checkpoint selection on the validation split), identical test split — gold-only vs. this configuration (gold + 984 LLM rows):

MetricGold-onlyGold + 984 LLM
Recall@50.673 ± 0.0190.651 ± 0.022
Recall@30.536 ± 0.0320.534 ± 0.012
F1 micro0.410 ± 0.0060.427 ± 0.028
F1 macro0.177 ± 0.0140.151 ± 0.014

The pattern: the noisy labels concentrate mass on frequent, "obvious" techniques (micro-F1 up a little) while deflating exactly the rare-technique coverage the expert labels paid for (macro-F1 down ≈3 SEM, no recall@5 gain). On CVE-2021-44077, for example, this checkpoint is more confident than the gold model about T1190 (Exploit Public-Facing Application) but drops the analyst-credited T1505 (Server Software Component) below the prediction threshold and pushes tail techniques such as T1136 (Create Account) from rank 18 to 32. Section 6 of the paper gives the full account, including why an earlier apparent gain turned out to be evaluation noise.

How to use

Same interface as the gold-only model:

import torch
from transformers import AutoModelForSequenceClassification, AutoTokenizer

model_id = "CIRCL/vulnerability-attack-technique-classification-roberta-base-llm-expanded"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForSequenceClassification.from_pretrained(model_id)
model.eval()

description = "..."  # free-text vulnerability description
inputs = tokenizer(description, truncation=True, max_length=512, return_tensors="pt")
with torch.no_grad():
    probs = torch.sigmoid(model(**inputs).logits)[0]

for i in probs.argsort(descending=True)[:5]:
    print(f"{model.config.id2label[int(i)]}  {probs[i]:.4f}")

Or side by side with the released model on a live CVE:

vulntrain-infer-attack-classification --cve CVE-2021-44077 \
    --model CIRCL/vulnerability-attack-technique-classification-roberta-base-llm-expanded

Intended uses & limitations

Intended: reproducing and extending the paper's expansion experiments — e.g. contrasting its per-technique behaviour with the gold-only checkpoint, or as a baseline for better silver-labeling strategies (higher-agreement labelers, agreement-weighted losses, human-in-the-loop curation).

Not intended: production use. It is strictly dominated by the gold-only model on ranking and rare-technique metrics, which is why Vulnerability-Lookup deploys the gold-only checkpoint. All limitations of the gold-only model (53-technique vocabulary, KEV-skewed data, English only, 512-token truncation, uncalibrated scores, unverified suggestions) apply here too.

Training and evaluation data

  • Expert rows: the 972-row train split of CIRCL/vulnerability-attack-techniques (MITRE CTID gold mappings).
  • LLM rows (train only): 984 CVEs from CIRCL/vulnerability-attack-techniques-llm-scaling, labeled by qwen3.5:122b (Ollama, assertive single-call prompt following the CTID methodology) — the best configuration of the paper's labeler benchmark, at ≈0.39 F1 agreement with held-out expert labels.
  • The label vocabulary stays frozen to the gold train split, and the validation (106) and test (118) splits contain only expert-labeled rows; checkpoint selection uses the validation split.

Training procedure

Binary cross-entropy over 53 sigmoid outputs with balanced per-label pos_weight, trained with vulntrain-train-attack-classification (VulnTrain), like the gold-only model — only the training set differs (1,956 rows instead of 972).

Training hyperparameters

The following hyperparameters were used during training:

  • learning_rate: 1e-05
  • train_batch_size: 32
  • eval_batch_size: 32
  • seed: 42
  • optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
  • lr_scheduler_type: linear
  • num_epochs: 40
  • max_length: 512
  • loss: BCEWithLogitsLoss, balanced pos_weight
  • checkpoint selection: best macro-F1 on the validation split

Training results

Training LossEpochStepValidation LossF1 MicroF1 MacroPrecision MicroRecall MicroRecall At 3Recall At 5
0.71951.0620.76520.25470.02780.18210.42320.28620.3870
0.64872.01240.73030.26280.04310.17790.50210.27170.3564
0.64423.01860.71330.29310.05280.20420.51870.37410.4821
0.60534.02480.69030.33530.07520.25970.47300.37300.5167
0.60375.03100.67150.33920.08860.26190.48130.41930.5561
0.55606.03720.65570.33560.09700.25210.50210.40020.5483
0.52047.04340.64960.32050.09690.23190.51870.37820.5023
0.50678.04960.63690.34700.10980.26280.51040.40920.5781
0.50609.05580.62560.36260.11950.27310.53940.45480.6115
0.442610.06200.62070.32120.10760.2380.49380.43040.5597
0.441411.06820.61740.38400.12130.30490.51870.47000.6059
0.445312.07440.61840.31630.14320.22170.55190.41560.5636
0.432813.08060.61220.33510.14030.24470.53110.44410.5816
0.421914.08680.61330.37730.15430.28660.55190.46420.6327
0.410915.09300.60750.37220.16070.27200.58920.46820.6197
0.390516.09920.60380.37780.16650.27710.59340.46420.6307
0.394817.010540.60250.37810.14480.28220.57260.46450.5977
0.378518.011160.60340.38450.15210.29390.55600.45290.6422
0.372319.011780.60380.38100.14670.28750.56430.49140.6543
0.358020.012400.60360.37900.15040.28420.56850.45240.6257
0.334321.013020.59930.38780.15220.29780.55600.52280.6688
0.338622.013640.60000.39940.15010.31030.56020.48190.6740
0.344423.014260.59770.39770.15860.30130.58510.49450.6787
0.330324.014880.60030.39880.15710.30720.56850.48620.6594
0.320625.015500.60440.40.15740.31240.55600.47920.6825
0.318026.016120.60800.40310.15150.31880.54770.50080.6744
0.310027.016740.60850.40370.15000.32110.54360.51970.6289
0.307528.017360.60610.40710.16220.31580.57260.49530.6656
0.304229.017980.61350.39820.15500.31550.53940.49610.6722
0.304430.018600.60970.40.15790.31780.53940.48740.6751
0.303231.019220.60280.38750.15880.29500.56430.47960.6509
0.286832.019840.60830.39940.15220.31570.54360.50630.6869
0.282133.020460.60930.40180.15350.31870.54360.48000.6727
0.291534.021080.60440.39820.15280.31150.55190.49720.6609
0.282935.021700.61120.39880.15450.31220.55190.49520.6869
0.291536.022320.61110.40620.15100.32270.54770.50790.6853
0.278137.022940.61530.40.15070.32080.53110.50200.6778
0.272438.023560.61150.40310.15090.32030.54360.49720.6778
0.279439.024180.61420.39750.14680.31760.53110.49840.6801
0.266140.024800.61230.40250.15160.31950.54360.49720.6825

Framework versions

  • Transformers 5.13.0
  • Pytorch 2.12.1+cu130
  • Datasets 4.8.5
  • Tokenizers 0.22.2

Citation

@misc{bonhomme2026mappingcvesmitreattck,
      title={Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion},
      author={Cédric Bonhomme and Alexandre Dulaunoy},
      year={2026},
      eprint={2607.25572},
      archivePrefix={arXiv},
      primaryClass={cs.CR},
      url={https://arxiv.org/abs/2607.25572},
}

Acknowledgements

Developed at CIRCL in the context of the AIPITCH project, co-funded by the European Union.

Contributors