TokenBreak:通过 Token 操纵绕过文本分类模型
TokenBreak: Bypassing Text Classification Models Through Token Manipulation
AI总结:
本文提出 TokenBreak 攻击,利用文本分类模型的分词差异操纵输入以绕过安全防护,并给出一种无需重训的防御层。
摘要:
自然语言处理(NLP)模型被用于分类和生成等与文本相关的任务。为完成这些任务,输入数据首先会被分词(tokenized),从人类可读的文本转换为模型能够理解的格式,从而使其能够进行推理并理解上下文。文本分类模型可被部署用于防范各类威胁,例如针对大语言模型(LLM)的提示词注入攻击、有毒输入,以及垃圾邮件等网络安全风险。本文提出 TokenBreak:一种新型攻击,它利用这些防护模型所采用的分词策略来绕过它们。该攻击技术通过操纵输入文本,使某些模型给出错误的分类结果。重要的是,最终目标(LLM 或电子邮件收件人)仍能理解被操纵的文本并对其作出响应,因此仍会暴露于防护模型原本旨在阻止的攻击之下。分词器与模型架构绑定,这意味着可以根据模型族预测某个模型是否易受攻击。我们还提出了一种防御策略,作为额外的保护层,并且无需重新训练防御模型即可实施。
英文摘要:
Natural Language Processing (NLP) models are used for text-related tasks such as classification and generation. To complete these tasks, input data is first tokenized from human-readable text into a format the model can understand, enabling it to make inferences and understand context. Text classification models can be implemented to guard against threats such as prompt injection attacks against Large Language Models (LLMs), toxic input and cybersecurity risks such as spam emails. In this paper, we introduce TokenBreak: a novel attack that can bypass these protection models by taking advantage of the tokenization strategy they use. This attack technique manipulates input text in such a way that certain models give an incorrect classification. Importantly, the end target (LLM or email recipient) can still understand and respond to the manipulated text and therefore be vulnerable to the very attack the protection model was put in place to prevent. The tokenizer is tied to model architecture, meaning it is possible to predict whether or not a model is vulnerable to attack based on family. We also present a defensive strategy as an added layer of protection that can be implemented without having to retrain the defensive model.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。