识别大模型知识编辑类型,防范恶意内容生成风险
Identifying Knowledge Editing Types in Large Language Models
- 提出KETI任务与KETIBench数据集,分类五类有害编辑
- 八种基线模型在92次实验中均表现良好,准确识别恶意编辑
- 跨领域通用性强,适合安全检测与模型审计场景
知识编辑已成为高效更新大语言模型(LLM)知识的主流技术,但其可能被恶意滥用,导致模型生成有毒内容或误导用户。为此,本文提出新任务——知识编辑类型识别(KETI),旨在及时发现非法编辑。构建了KETIBench基准,涵盖五类常见有害编辑及一类良性事实编辑。设计五种经典分类模型与三种BERT-based模型,用于识别开源与闭源模型中的编辑类型。在4个模型、3种编辑方法下的92次实验中,所有8个基线模型均表现出色,证明恶意编辑可被有效识别。进一步分析显示,识别性能不受编辑方法可靠性影响,具备跨领域泛化能力,可检测未知来源的编辑。所有数据与代码已公开于https://github.com/xpq-tech/KETI。
原文摘要 · Abstract (English)
Knowledge editing has emerged as an efficient technique for updating the knowledge of large language models (LLMs), attracting increasing attention in recent years. However, there is a lack of effective measures to prevent the malicious misuse of this technique, which could lead to harmful edits in LLMs. These malicious modifications could cause LLMs to generate toxic content, misleading users into inappropriate actions. In front of this risk, we introduce a new task, $\textbf{K}$nowledge $\textbf{E}$diting $\textbf{T}$ype $\textbf{I}$dentification (KETI), aimed at identifying different types of edits in LLMs, thereby providing timely alerts to users when encountering illicit edits. As part of this task, we propose KETIBench, which includes five types of harmful edits covering the most popular toxic types, as well as one benign factual edit. We develop five classical classification models and three BERT-based models as baseline identifiers for both open-source and closed-source LLMs. Our experimental results, across 92 trials involving four models and three knowledge editing methods, demonstrate that all eight baseline identifiers achieve decent identification performance, highlighting the feasibility of identifying malicious edits in LLMs. Additional analyses reveal that the performance of the identifiers is independent of the reliability of the knowledge editing methods and exhibits cross-domain generalization, enabling the identification of edits from unknown sources. All data and code are available in https://github.com/xpq-tech/KETI.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。