基于大语言模型弱标注的网络安全推文分类:师生框架
LLM-Based Weak Annotation for Cybersecurity Tweet Classification: A Teacher-Student Framework
AI总结:
针对网络安全推文标注数据不足的瓶颈,提出师生弱监督框架,用LLM作为教师生成弱标签训练网络安全专用PLM,其F1分数超0.92,与全人工监督模型差距不超3个百分点,为标注资源有限时的训练数据构建提供实用方案。
摘要:
网络威胁情报(CTI)依赖于及时识别新兴威胁,使组织和安全分析师能够支持态势感知与决策。X(前称Twitter)等社交媒体平台已成为有价值的CTI来源,因为漏洞和攻击活动往往在正式报告发布前就已在这些平台上被讨论。然而,社交媒体上网络安全讨论的快速增长产生了远超领域专家实际审查和标注能力的内容,使得标注数据成为开发监督学习方法的主要瓶颈。尽管大语言模型(LLM)在其他领域已展现出作为弱标注器的潜力,但其在网络安全推文分类及下游领域特定预训练语言模型(PLM)训练中的有效性仍未得到充分探索。为应对这一挑战,我们提出一种师生弱监督框架,其中选定的LLM作为教师为未标注的网络安全推文生成弱标签,无需大规模人工标注即可训练网络安全专用PLM。实验结果显示,仅基于LLM生成的标签训练的PLM,在所有评估架构中F1分数均保持在0.92以上,与完全人工监督模型的差距不超过3个百分点。这些发现表明,当专家标注资源有限时,基于LLM的弱标注为构建网络安全专用训练数据提供了一种实用替代方案。
英文摘要:
Cyber threat intelligence (CTI) relies on the timely identification of emerging threats, enabling organizations and security analysts to support situational awareness and decision-making. Social media platforms such as X (formerly Twitter) have become valuable CTI sources because vulnerabilities and attack activities are often discussed there before appearing in formal reports. However, the rapid growth of cybersecurity discussions on social media has created more content than domain experts can realistically review and annotate, making labeled data a major bottleneck for developing supervised learning approaches. While large language models (LLMs) have shown promise as weak annotators in other domains, their effectiveness for cybersecurity tweet classification and downstream training of domain-specific pre-trained language models (PLMs) remains underexplored. To address this challenge, we propose a Teacher-Student weak supervision framework in which a selected LLM serves as a Teacher to generate weak labels for unlabeled cybersecurity tweets, enabling the training of cybersecurity-specific PLMs without large-scale manual annotation. Experimental results show that PLMs trained solely on LLM-generated labels consistently achieve F1 scores above 0.92, remaining within 3 percentage points of fully human-supervised models across all evaluated architectures. These findings suggest that LLM-based weak annotation offers a practical alternative for constructing cybersecurity-specific training data when expert annotation resources are limited.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。