CyBERT: Cybersecurity Claim Classification by Fine-Tuning the BERT Language Model

  • Kimia Ameri
  • , Michael Hempel
  • , Hamid Sharif
  • , Juan Lopez
  • , Kalyan Perumalla

Research output: Contribution to journalArticlepeer-review

72 Scopus citations

Abstract

We introduce CyBERT, a cybersecurity feature claims classifier based on bidirectional encoder representations from transformers and a key component in our semi-automated cybersecurity vetting for industrial control systems (ICS). To train CyBERT, we created a corpus of labeled sequences from ICS device documentation collected across a wide range of vendors and devices. This corpus provides the foundation for fine-tuning BERT’s language model, including a prediction-guided relabeling process. We propose an approach to obtain optimal hyperparameters, including the learning rate, the number of dense layers, and their configuration, to increase the accuracy of our classifier. Fine-tuning all hyperparameters of the resulting model led to an increase in classification accuracy from 76% obtained with BertForSequenceClassification’s original architecture to 94.4% obtained with CyBERT. Furthermore, we evaluated CyBERT for the impact of randomness in the initialization, training, and data-sampling phases. CyBERT demonstrated a standard deviation of ±0.6% during validation across 100 random seed values. Finally, we also compared the performance of CyBERT to other well-established language models including GPT2, ULMFiT, and ELMo, as well as neural network models such as CNN, LSTM, and BiLSTM. The results showed that CyBERT outperforms these models on the validation accuracy and the F1 score, validating CyBERT’s robustness and accuracy as a cybersecurity feature claims classifier.

Original languageEnglish
Pages (from-to)615-637
Number of pages23
JournalJournal of Cybersecurity and Privacy
Volume1
Issue number4
DOIs
StatePublished - Dec 2021

Funding

This research was funded by the US. Department of Energy through a subcontract from Oak Ridge National Laboratory, project No. 4000175929 (project CYVET).

Keywords

  • BERT
  • classification
  • cybersecurity
  • CYVET
  • natural language processing
  • transfer learning

Fingerprint

Dive into the research topics of 'CyBERT: Cybersecurity Claim Classification by Fine-Tuning the BERT Language Model'. Together they form a unique fingerprint.

Cite this