CySecBERT:一种用于网络安全领域的自适应语言模型
CySecBERT: A Domain-Adapted Language Model for the Cybersecurity Domain
摘要:
网络安全领域正在快速发展。专家们需要了解过去、当前以及(最好的情况下)即将到来的威胁,因为攻击变得越来越先进,目标越来越大,系统越来越复杂。由于这无法手动解决,网络安全专家需要依赖机器学习技术。在文本领域,像BERT这样的预先训练的语言模型已经证明是有帮助的,它为进一步的微调提供了一个很好的基线。然而,由于领域知识和网络安全中的许多技术术语,通用语言模型可能会错过文本信息的要点,因此弊大于利。出于这个原因,我们创建了一个高质量的数据集,并提出了一个专门针对网络安全领域的语言模型,它可以作为处理自然语言的网络安全系统的基本构建块。该模型进行了比较与其他模型的基础上15个不同的领域相关的外在和内在的任务,以及一般任务的SuperGLUE基准。一方面,内在任务的结果表明,我们的模型相比其他模型提高了词的内部表征空间。另一方面,外在的,领域相关的任务,包括序列标记和分类,表明该模型是最好的,在特定的应用场景中,相比之下,其他。此外,我们表明,我们的方法对灾难性遗忘工程,因为该模型能够检索先前训练的领域无关的知识。使用的数据集和训练的模型是公开的
英文摘要:
The field of cybersecurity is evolving fast. Experts need to be informed about past, current and - in the best case - upcoming threats, because attacks are becoming more advanced, targets bigger and systems more complex. As this cannot be addressed manually, cybersecurity experts need to rely on machine learning techniques. In the texutual domain, pre-trained language models like BERT have shown to be helpful, by providing a good baseline for further fine-tuning. However, due to the domain-knowledge and many technical terms in cybersecurity general language models might miss the gist of textual information, hence doing more harm than good. For this reason, we create a high-quality dataset and present a language model specifically tailored to the cybersecurity domain, which can serve as a basic building block for cybersecurity systems that deal with natural language. The model is compared with other models based on 15 different domain-dependent extrinsic and intrinsic tasks as well as general tasks from the SuperGLUE benchmark. On the one hand, the results of the intrinsic tasks show that our model improves the internal representation space of words compared to the other models. On the other hand, the extrinsic, domain-dependent tasks, consisting of sequence tagging and classification, show that the model is best in specific application scenarios, in contrast to the others. Furthermore, we show that our approach against catastrophic forgetting works, as the model is able to retrieve the previously trained domain-independent knowledge. The used dataset and trained model are made publicly available
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。