Genshin:基于大型语言模型自然语言处理的通用盾牌
Genshin: General Shield for Natural Language Processing with Large Language Models
AI总结:
针对LLMs不透明性限制高风险应用的问题,提出级联框架Genshin,利用LLM作为防御插件将文本恢复至原始状态,结合泛化、判别与可解释性,有效提升防御效率与鲁棒性。
摘要:
像ChatGPT、Gemini或LLaMA这样的大型语言模型(LLMs)最近成为趋势,在无数领域展现出显著的进步和泛化能力。然而,LLMs制造了一个更大的黑盒,加剧了不透明性,其可解释性仅限于少数方法。LLMs本质中固有的不确定性和不透明性限制了它们在金融欺诈、网络钓鱼等高风险领域的应用。当前的方法主要依赖传统文本分类与后验可解释算法,容易受到攻击者创建多样化对抗样本以破坏系统防御的影响,迫使用户在效率和鲁棒性之间进行权衡。为了解决这个问题,我们提出了一种名为Genshin(基于大型语言模型自然语言处理的通用盾牌)的新型级联框架,利用LLMs作为防御性一次性插件。与大多数试图将文本转换为新的或结构化形式的LLMs应用不同,Genshin使用LLMs将文本恢复到其原始状态。Genshin旨在结合LLM的泛化能力、中间模型的判别能力和简单模型的可解释性。我们在情感分析和垃圾邮件检测任务上的实验揭示了当前中间模型的致命缺陷,并在LLMs的恢复能力上取得了令人振奋的结果,证明Genshin既有效又高效。在我们的消融研究中,我们发现了几个有趣的观察结果。利用源自第4范式的LLM防御器,我们在NLP的第3范式中复现了BERT 15%的最优掩码率结果。此外,当将LLM作为潜在的对抗工具时,攻击者能够执行几乎在语义上无损的有效攻击。
英文摘要:
Large language models (LLMs) like ChatGPT, Gemini, or LLaMA have been trending recently, demonstrating considerable advancement and generalizability power in countless domains. However, LLMs create an even bigger black box exacerbating opacity, with interpretability limited to few approaches. The uncertainty and opacity embedded in LLMs' nature restrict their application in high-stakes domains like financial fraud, phishing, etc. Current approaches mainly rely on traditional textual classification with posterior interpretable algorithms, suffering from attackers who may create versatile adversarial samples to break the system's defense, forcing users to make trade-offs between efficiency and robustness. To address this issue, we propose a novel cascading framework called Genshin (General Shield for Natural Language Processing with Large Language Models), utilizing LLMs as defensive one-time plug-ins. Unlike most applications of LLMs that try to transform text into something new or structural, Genshin uses LLMs to recover text to its original state. Genshin aims to combine the generalizability of the LLM, the discrimination of the median model, and the interpretability of the simple model. Our experiments on the task of sentimental analysis and spam detection have shown fatal flaws of the current median models and exhilarating results on LLMs' recovery ability, demonstrating that Genshin is both effective and efficient. In our ablation study, we unearth several intriguing observations. Utilizing the LLM defender, a tool derived from the 4th paradigm, we have reproduced BERT's 15% optimal mask rate results in the 3rd paradigm of NLP. Additionally, when employing the LLM as a potential adversarial tool, attackers are capable of executing effective attacks that are nearly semantically lossless.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。