无形之手:一种无需梯度、数据和权重的灰盒位翻转攻击用于操控大语言模型
Invisible Hands: Gray-Box Bit Flip Attack for Steering LLMs Without Knowledge of Gradients, Data, and Weights
AI总结:
本文提出一种新的灰盒位翻转攻击框架,无需梯度、数据或权重信息,通过模型架构估计权重脆弱性,有效降低内存开销并提升任务扩展性。
摘要:
近年来,大语言模型(LLMs)在多个领域实现了显著进展,并被越来越多地应用于关键应用。然而,其安全性和鲁棒性受到关注。本文研究了位翻转攻击(BFAs)对LLMs的影响,利用硬件故障破坏模型参数,威胁模型完整性和性能。现有BFAs研究主要假设白盒设置,需要精确的模型权重和部分数据集,并依赖梯度基位搜索策略识别脆弱位。然而,LLMs的梯度计算成本高且内存消耗大。此外,由于日益严格的隐私法规,假设访问精确的受害者模型权重和数据集变得困难。为了解决这些挑战,我们提出了首个针对LLMs的灰盒BFAs框架,Invisible Hands,旨在高效和实际部署。我们的方法,Gradient-Data-Free-BFA,无需了解模型权重、梯度或样本数据,通过引入新的脆弱性指数度量,仅基于模型架构(灰盒)估计权重的脆弱性。通过消除数据访问和梯度计算,我们的方法显著降低了内存开销,并在任务扩展时具有恒定的复杂度。在六个开源LLMs上的实验表明,通过最小的权重扰动可以实现对抗目标,突显了Invisible Hands的有效性和实用性。
英文摘要:
In recent years, large language models (LLMs) have achieved remarkable advances and are increasingly deployed in critical applications across diverse domains. This growing adoption raises urgent concerns about their security and robustness. In this work, we investigate the impact of Bit Flip Attacks (BFAs) on LLMs, which exploit hardware faults to corrupt model parameters, thereby threatening model integrity and performance. Existing BFA studies primarily assume a white-box setting with access to exact model weights and part of the dataset, and rely on progressive gradient-based bit-search strategies to identify vulnerable bits in model weights. However, gradient computation for LLMs is computationally expensive and memory intensive. In addition, assuming access to exact victim model weights and datasets is challenging due to increasingly strict user privacy regulations. To address these challenges, we propose the first gray-box BFA framework for LLMs, Invisible Hands, designed for efficient and practical deployment. Our method, Gradient-Data-Free-BFA, identifies vulnerable weight bits without requiring knowledge of model weights, gradients, or sample data. It introduces novel vulnerability index metrics that estimate the weights of susceptibility based solely on model architecture (Grey-Box). By eliminating data access and gradient computation, our approach significantly reduces memory overhead and scales efficiently across tasks with constant complexity. Experiments on six open-source LLMs demonstrate that adversarial objectives can be achieved with minimal weight perturbations, highlighting the effectiveness and practicality of Invisible Hands.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。