Fine-tuning RoBERTa for CVE-to-CWE Classification: A 125M Parameter Model Competitive with LLMs
Nikita Mosievskiy · 2026
Read Fine-tuning RoBERTa for CVE-to-CWE Classification: A 125M Parameter Model Competitive with LLMs by Nikita Mosievskiy (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2603-14911.txt.
Description
Mosievskiy fine-tunes RoBERTa to map vulnerability descriptions to weakness classes, rivaling far larger models. The training set holds 234,770 CVE texts with AI-refined CWE labels. Agreement-filtered test sets check the model where human and AI labels concur. Top-1 accuracy hits 87.4% across 205 weakness classes. Macro F1 reaches 60.7%, a 15.5-point jump over a TF-IDF baseline. Rare classes drive much of that edge. On CTI-Bench, strict accuracy of 75.6% ties an 8B reasoning model. The small model uses 64 times fewer parameters.
Catalog record
| CREATOR | Nikita Mosievskiy |
|---|---|
| YEAR | 2026 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 18767 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2603.14911