arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2408.13985cs.CL
收藏

TF-Attack:针对大语言模型的可迁移且快速的对抗攻击

TF-Attack: Transferable and Fast Adversarial Attacks on Large Language Models

School of Computer Science and Technology, Harbin Institute of Technology, Shenzhen(哈尔滨工业大学(深圳)计算机科学与技术学院);Pengcheng Laboratory(鹏城实验室)

Zelin Li, Kehai Chen, Lemao Liu, Xuefeng Bai, Mingming Yang, Yang Xiang, Min Zhang

AI总结:

针对LLM对抗攻击可迁移性弱、串行效率低的问题,提出TF-Attack,利用外部LLM识别关键单元并按重要性等级并行替换,在6个基准上显著提升迁移攻击效果与速度。

摘要:

随着大语言模型(LLM)取得巨大进展,针对LLM的对抗攻击近来受到越来越多的关注。我们发现,既有对抗攻击方法表现出有限的可迁移性,并且效率明显偏低,尤其是在应用于LLM时。本文分析了以往主流对抗攻击方法的核心机制,揭示出:1)重要性分数的分布在不同受害模型之间存在显著差异,从而限制了可迁移性;2)顺序攻击过程会带来大量时间开销。基于上述两点洞察,我们提出一种名为TF-Attack的新方案,用于对LLM实施可迁移且快速的对抗攻击。TF-Attack采用一个外部LLM(而非受害模型)作为第三方监督者,以识别句子中的关键单元。此外,TF-Attack引入了重要性等级(Importance Level)概念,使攻击替换可以并行执行。我们在6个广泛采用的基准上开展了大量实验,通过自动指标和人工指标评估所提方法。结果表明,我们的方法在可迁移性方面持续优于以往方法,并带来显著的速度提升,最高可比早期攻击策略快20倍。

英文摘要:

With the great advancements in large language models (LLMs), adversarial attacks against LLMs have recently attracted increasing attention. We found that pre-existing adversarial attack methodologies exhibit limited transferability and are notably inefficient, particularly when applied to LLMs. In this paper, we analyze the core mechanisms of previous predominant adversarial attack methods, revealing that 1) the distributions of importance score differ markedly among victim models, restricting the transferability; 2) the sequential attack processes induces substantial time overheads. Based on the above two insights, we introduce a new scheme, named TF-Attack, for Transferable and Fast adversarial attacks on LLMs. TF-Attack employs an external LLM as a third-party overseer rather than the victim model to identify critical units within sentences. Moreover, TF-Attack introduces the concept of Importance Level, which allows for parallel substitutions of attacks. We conduct extensive experiments on 6 widely adopted benchmarks, evaluating the proposed method through both automatic and human metrics. Results show that our method consistently surpasses previous methods in transferability and delivers significant speed improvements, up to 20 times faster than earlier attack strategies.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑