PDF (1825K)
摘要
随着密码安全需求的增长,网络安全领域的命名实体识别(Named Entity Recognition, NER)受到广泛关注,其中密码实体的识别成为关键难点.由于密码领域数据的专业性和实体复杂性,导致现有NER方法的识别能力受限,此外,密码领域的标注数据稀缺也使得训练NER模型变得困难.针对这些问题,提出了一种基于数据增强和低秩微调的密码实体识别方法 CRYPT-DALoRA.首先,以业务数据等为数据源构建初始数据集,并采用基于思维链提示微调的数据增强方法构建上下文语义一致的密码领域NER数据集.其次,基于思维链方法分别设计了针对业务实体、密码实体和嵌套密码实体的3类密码领域NER提示词模板,结合基于权重分解和差异学习率的低秩适应微调方法对大模型进行微调.最后在构建的密码领域NER数据集上进行了实验.本方法取得76.87%的F1-score,相比BERT-BiLSTM-CRF有10.96个百分点的提升.
Abstract
With the growth of password security requirements, the named entity identification (Named Entity Recognition, NER) in the field of network security has been widely concerned, among which the identification of password entity has become a key difficulty. Due to the expertise and physical complexity of cryptographic data, the recognition ability of existing NER methods is limited. In addition, the scarcity of annotated data in cryptographic field makes it difficult to train NER models. To address these problems, a CRYPT-DALoRA is proposed. First, the initial dataset is built with business data as data sources, and the data augmentation method is used to construct the NER data set based on thinking chain prompt fine-tuning. Secondly, based on the thinking chain method, NER prompt word templates are designed for business entities, cryptographic entities and nested cryptographic entities respectively, which fine-tune the large model by combining the low rank adaptation fine-tuning method based on weight decomposition and differential learning rate. Finally, experiments were performed on the constructed cryptodomain NER dataset. This method achieved 76.87% F1-score, a 10.96 percentage points improvement compared to BERT-BiLSTM-CRF.
关键词
Key words
[Author(id=1333573626054574918, tenantId=1045748351789510663, journalId=1327663034936098855, articleId=1333573625186353953, orderNo=0, firstName=null, middleName=null, lastName=null, nameCn=null, orcid=null, stid=null, country=null, authorPic=null, dead=0, email=null, emailSecond=null, emailThird=null, correspondingAuthor=0, authorType=1, ext={EN=AuthorExt(id=1333573626117489481, tenantId=1045748351789510663, journalId=1327663034936098855, articleId=1333573625186353953, authorId=1333573626054574918, language=EN, stringName=Leer Bao, firstName=Leer, middleName=null, lastName=Bao, prefix=null, suffix=null, authorComment=null, nameInitials=null, affiliation=null, department=null, xref=null, address=Beijing Information Science and Technology University, Beijing, 102206, China, bio=null, bioImg=null, bioContent=null, aboutCorrespAuthor=null), CN=AuthorExt(id=1333573626163626827, tenantId=1045748351789510663, journalId=1327663034936098855, articleId=1333573625186353953, authorId=1333573626054574918, language=CN, stringName=包乐尔, firstName=null, middleName=null, lastName=null, prefix=null, suffix=null, authorComment=null, nameInitials=null, affiliation=null, department=null, xref=null, address=北京信息科技大学 , 中国· 北京 102206, bio={"content":"包乐尔(1998-),男,蒙古族,中国内蒙古通辽人,硕士,从事计算机技术研究.
"}, bioImg=null, bioContent=包乐尔(1998-),男,蒙古族,中国内蒙古通辽人,硕士,从事计算机技术研究.
, aboutCorrespAuthor=null)}, companyList=[AuthorCompany(id=1333573625974883136, tenantId=1045748351789510663, journalId=1327663034936098855, articleId=1333573625186353953, xref=null, ext=[AuthorCompanyExt(id=1333573625991660352, tenantId=1045748351789510663, journalId=1327663034936098855, articleId=1333573625186353953, companyId=1333573625974883136, language=EN, country=null, province=null, city=null, postcode=null, companyName=null, departmentName=null, remark=Beijing Information Science and Technology University, Beijing, 102206, China), AuthorCompanyExt(id=1333573626004243266, tenantId=1045748351789510663, journalId=1327663034936098855, articleId=1333573625186353953, companyId=1333573625974883136, language=CN, country=null, province=null, city=null, postcode=null, companyName=null, departmentName=null, remark=北京信息科技大学 , 中国· 北京 102206)])]), Author(id=1333573626209764174, tenantId=1045748351789510663, journalId=1327663034936098855, articleId=1333573625186353953, orderNo=1, firstName=null, middleName=null, lastName=null, nameCn=null, orcid=null, stid=null, country=null, authorPic=null, dead=0, email=null, emailSecond=null, emailThird=null, correspondingAuthor=0, authorType=1, ext={EN=AuthorExt(id=1333573626272678737, tenantId=1045748351789510663, journalId=1327663034936098855, articleId=1333573625186353953, authorId=1333573626209764174, language=EN, stringName=Wei Zhang, firstName=Wei, middleName=null, lastName=Zhang, prefix=null, suffix=null, authorComment=null, nameInitials=null, affiliation=null, department=null, xref=null, address=Beijing Information Science and Technology University, Beijing, 102206, China, bio=null, bioImg=null, bioContent=null, aboutCorrespAuthor=null), CN=AuthorExt(id=1333573626318816083, tenantId=1045748351789510663, journalId=1327663034936098855, articleId=1333573625186353953, authorId=1333573626209764174, language=CN, stringName=张伟, firstName=null, middleName=null, lastName=null, prefix=null, suffix=null, authorComment=null, nameInitials=null, affiliation=null, department=null, xref=null, address=北京信息科技大学 , 中国· 北京 102206, bio=null, bioImg=null, bioContent=null, aboutCorrespAuthor=null)}, companyList=[AuthorCompany(id=1333573625974883136, tenantId=1045748351789510663, journalId=1327663034936098855, articleId=1333573625186353953, xref=null, ext=[AuthorCompanyExt(id=1333573625991660352, tenantId=1045748351789510663, journalId=1327663034936098855, articleId=1333573625186353953, companyId=1333573625974883136, language=EN, country=null, province=null, city=null, postcode=null, companyName=null, departmentName=null, remark=Beijing Information Science and Technology University, Beijing, 102206, China), AuthorCompanyExt(id=1333573626004243266, tenantId=1045748351789510663, journalId=1327663034936098855, articleId=1333573625186353953, companyId=1333573625974883136, language=CN, country=null, province=null, city=null, postcode=null, companyName=null, departmentName=null, remark=北京信息科技大学 , 中国· 北京 102206)])])]
包乐尔,张伟.
基于数据增强和低秩微调的密码领域命名实体识别技术[J].
信息科学与工程研究, 2025, 6(5): 5-10 DOI:10.12349/iser.v6i5.5665
| [1] |
Floridi L, Chiriatti M . GPT-3: Its nature, scope, limits, and consequences[J]. Minds and Machines, 2020, 30: 681-694.
|
| [2] |
Hu E J, Shen Y, Wallis P, et al. Lora: Low-rank adaptation of large language models[J]. arXiv preprint arXiv:2106.09685, 2021.
|
| [3] |
Wei J, Wang X, Schuurmans D, et al. Chain-of-thought prompting elicits reasoning in large language models[J]. Advances in neural information processing systems, 2022, 35: 24824-24837.
|
| [4] |
Liu S Y, Wang C Y, Yin H, et al. Dora: Weight-decomposed low-rank adaptation[J]. arXiv preprint arXiv:2402.09353, 2024.
|
| [5] |
Hayou S, Ghosh N, Yu B . Lora+: Efficient low rank adaptation of large models[J]. arXiv preprint arXiv:2402.12354, 2024.
|