arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2312.09494cs.CRcs.CL
收藏

No-Skim:面向基于跳读的语言模型的效率鲁棒性评估

No-Skim: Towards Efficiency Robustness Evaluation on Skimming-based Language Models

Fudan University(复旦大学)

Shengyao Zhang, Mi Zhang, Xudong Pan, Min Yang

AI总结:

该研究首次发现基于跳读的大语言模型加速机制易遭DoS攻击,提出No-Skim评估框架,通过生成字符级与token级微小扰动的对抗输入测试鲁棒性,实验显示该扰动最多可使模型运行成本平均提升超145%,且框架支持多场景不同知识层级的评估。

摘要:

为降低大语言模型(LLM)的计算成本与能耗,基于跳读的加速技术会沿LLM的各层动态逐步丢弃输入序列中不重要的token,同时保留具有语义重要性的token。然而,本研究首次揭示这类加速机制可能易受拒绝服务(DoS)攻击。本文提出No-Skim,这一通用框架可帮助基于跳读的LLM所有者理解并衡量其加速方案的鲁棒性。具体而言,该框架在字符级和token级搜索最小且不易察觉的扰动,生成能大幅提升剩余token比例的对抗输入,进而增加计算成本与能耗。我们在GLUE基准上,针对BERT、RoBERTa等多种LLM架构的跳读加速脆弱性进行了系统性评估。最坏情况下,No-Skim找到的扰动可使LLM的运行成本平均提升超145%。此外,No-Skim将评估框架拓展至多场景,支持在不同知识层级下开展评估。

英文摘要:

To reduce the computation cost and the energy consumption in large language models (LLM), skimming-based acceleration dynamically drops unimportant tokens of the input sequence progressively along layers of the LLM while preserving the tokens of semantic importance. However, our work for the first time reveals the acceleration may be vulnerable to Denial-of-Service (DoS) attacks. In this paper, we propose No-Skim, a general framework to help the owners of skimming-based LLM to understand and measure the robustness of their acceleration scheme. Specifically, our framework searches minimal and unnoticeable perturbations at character-level and token-level to generate adversarial inputs that sufficiently increase the remaining token ratio, thus increasing the computation cost and energy consumption. We systematically evaluate the vulnerability of the skimming acceleration in various LLM architectures including BERT and RoBERTa on the GLUE benchmark. In the worst case, the perturbation found by No-Skim substantially increases the running cost of LLM by over 145% on average. Moreover, No-Skim extends the evaluation framework to various scenarios, making the evaluation conductible with different level of knowledge.

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

↑