Journal of Computer Applications ›› 2026, Vol. 46 ›› Issue (7): 2064-2073.DOI: 10.11772/j.issn.1001-9081.2025070867

• Artificial intelligence • Previous Articles    

Cybersecurity named entity recognition method based on large language model linking

Didi HOU1,2, Shaodong HONG1,2, Yujie FU1,2, Yunhe CUI1,2, Guowei SHEN1,2()   

  1. 1.College of Computer Science and Technology,Guizhou University,Guiyang Guizhou 550025,China
    2.Guizhou Provincial Key Laboratory of Software Engineering and Information Security (Guizhou University),Guiyang Guizhou 550025,China
  • Received:2025-08-01 Revised:2025-08-19 Accepted:2025-08-29 Online:2025-11-05 Published:2026-07-10
  • Contact: Guowei SHEN
  • About author:HOU Didi, born in 2000, M. S. candidate. Her research interests include threat intelligence analysis, knowledge graph.
    HONG Shaodong, born in 1997, M. S. candidate. His research interests include model collaboration, code generation.
    FU Yujie, born in 1998, Ph. D. candidate. His research interests include automated network defense, reinforcement learning.
    CUI Yunhe, born in 1987, Ph. D., associate professor. His research interests include edge computing, software defined network, data center network.
  • Supported by:
    Science and Technology Program of Guizhou Province (Qiankehe Basic-ZK [2023] Key 011, Qiankehe Support [2023] General 447)

基于大语言模型链接的网络安全实体识别方法

侯迪迪1,2, 洪少东1,2, 付玉杰1,2, 崔允贺1,2, 申国伟1,2()   

  1. 1.贵州大学 计算机科学与技术学院,贵阳 550025
    2.贵州省软件工程与信息安全特色重点实验室(贵州大学),贵阳 550025
  • 通讯作者: 申国伟
  • 作者简介:侯迪迪(2000—),女,贵州毕节人,硕士研究生,CCF会员,主要研究方向:威胁情报分析、知识图谱
    洪少东(1997—),男,贵州毕节人,硕士研究生,CCF会员,主要研究方向:模型协同、代码生成
    付玉杰(1998—),男,贵州贵阳人,博士研究生,CCF会员,主要研究方向:自动化网络防御、强化学习
    崔允贺(1987—),男,山东济宁人,副教授,博士,CCF会员,主要研究方向:边缘计算、软件定义网络、数据中心网络
  • 基金资助:
    贵州省科技计划项目(黔科合基础-ZK[2023]重点011,黔科合支撑[2023]一般447)

Abstract:

Cybersecurity knowledge graph is an important means to conduct deep correlation analysis on unstructured Cyber Threat Intelligence (CTI) data. The Use of Large Language Model (LLM) can overcome the limitations of traditional cybersecurity named entity recognition methods, such as lack of understanding of text context, difficulty in capturing long-distance dependencies, and lack of robustness when facing noise and redundancy. However, the extraction of cybersecurity named entities by a single LLM will lead to poor adaptability of the model capability outside the domain boundary, insufficient generalization ability on Out-Of-Distribution (OOD) data, and cognitive limitations of a single model. To solve these problems, an LLM collaborative linking method that integrates fine-tuning was proposed. In the method, Low-Rank Adaptation (LoRA) fine-tuning of LLMs was performed on a base LLM using a CTI corpus, and the model's understanding of the cybersecurity field was enhanced through parameter optimization. At the same time, static voting and dynamic meta-learner linking were adopted by LLM collaboration. In the static mechanism, prediction results of multiple models were integrated through voting; and in the dynamic mechanism, the feature space adaptation function was designed to quantify the model capability boundary. Simultaneously, dynamic mapping from input data features to model performance was achieved through meta-learners such as random forests. Experimental results show that the F1-score of the proposed method reaches 91.1%, which is 6.8% higher than that of the semantic enhancement network method based on multiple features, providing an efficient and scalable solution for named entity recognition in cybersecurity.

Key words: cybersecurity, named entity recognition, Large Language Model (LLM), Low-Rank Adaptation (LoRA) fine-tuning, meta-learner, model collaboration

摘要:

网络安全知识图谱是对非结构化的网络威胁情报(CTI)数据进行深度关联分析的重要手段,使用大语言模型(LLM)能够克服传统的网络安全命名实体识别方法存在的缺乏对文本上下文的理解、难以捕捉长距离依赖以及面对噪声和冗余时缺乏鲁棒性的局限。然而,单一LLM在网络安全命名实体抽取中存在模型能力在边界外领域适应性差、分布外(OOD)数据上泛化能力不足以及单一模型认知局限的情况。为了解决以上问题,提出一种融合微调的LLM协同链接方法。该方法使用CTI语料对基础LLM进行低秩适应(LoRA)参数微调,通过参数优化增强模型对网络安全领域的理解。同时, LLM协同采用静态投票与动态元学习器的链接方式,其中,通过投票让静态机制综合多个模型的预测结果,而在动态机制中设计特征空间适配函数来量化模型的能力边界,并通过随机森林等元学习器实现输入数据特征与模型性能的动态映射。实验结果表明,所提方法的F1分数达到了91.1%,与基于多特征的语义增强网络方法相比提升了6.8%,为网络安全命名实体识别提供了高效可扩展的解决方案。

关键词: 网络安全, 命名实体识别, 大语言模型, 低秩适应微调, 元学习器, 模型协同

CLC Number: