We explore a class of adversarial attacks targeting the activations of language models. By manipulating a relatively small subset of model activations, $a$, we demonstrate the ability to control the exact prediction of a significant number (in some cases up to 1000) of subsequent tokens $t$. We empirically verify a scaling law where the maximum number of target tokens $t_\mathrm{max}$ predicted depends linearly on the number of tokens $a$ whose activations the attacker controls as $t_\mathrm{max} = κa$. We find that the number of bits of control in the input space needed to control a single bit in the output space (what we call attack resistance $χ$) is remarkably constant between $\approx 16$ and $\approx 25$ over 2 orders of magnitude of model sizes for different language models. Compared to attacks on tokens, attacks on activations are predictably much stronger, however, we identify a surprising regularity where one bit of input steered either via activations or via tokens is able to exert control over a similar amount of output bits. This gives support for the hypothesis that adversarial attacks are a consequence of dimensionality mismatch between the input and output spaces. A practical implication of the ease of attacking language model activations instead of tokens is for multi-modal and selected retrieval models, where additional data sources are added as activations directly, sidestepping the tokenized input. This opens up a new, broad attack surface. By using language models as a controllable test-bed to study adversarial attacks, we were able to experiment with input-output dimensions that are inaccessible in computer vision, especially where the output dimension dominates.
Improving Adversarial Robustness via Channel-wise Activation Suppressing
Tsinghua Berkeley Shenzhen Institute, Tsinghua University(清华大学清华伯克利深圳学院);Tsinghua Shenzhen International Graduate School, Tsinghua University(清华大学深圳国际研究生院);Key Lab. of Machine Perception (MoE), School of EECS, Peking University(北京大学信息科学技术学院机器感知与智能教育部重点实验室);School of Information Technology, Deakin University(迪肯大学信息技术学院);PCL Research Center of Networks and Communications, Peng Cheng Laboratory(鹏城实验室网络通信研究中心)
Steering Beyond the Support: Adversarial Training on Unsupervised Jailbroken Activation Simulation
University of Technology Sydney, Sydney, Australia(技术悉尼大学);School of Cyber Science and Engineering, Southeast University, Nanjing, China(东南大学计算机科学与工程学院);Xi'an Jiaotong University, Xi'an, China(西安交通大学)
Concept activation vectors: a unifying view and adversarial attacks
Department of Computer Science, Aalto University, Espoo, Finland(艾尔沃斯大学计算机科学系);Department of Artificial Intelligence, Fraunhofer Heinrich Hertz Institute, Berlin, Germany(弗劳恩霍夫 Heinrich Hertz 研究所人工智能系);Huawei Noah’s Ark Lab, Huawei Technologies, Paris, France(华为诺亚实验室);Department of Electrical Engineering and Computer Science, Technical University Berlin, Germany(柏林技术大学电气工程与计算机科学系)
A No-Defense Defense Against Gradient-Based Adversarial Attacks on ML-NIDS: Is Less More?
Carleton University(卡尔顿大学);Computer Engineering Carleton University Ottawa, Canada(计算机工程系卡尔顿大学渥太华加拿大);School of Information Technology Carleton University Ottawa, Canada(信息科技学院卡尔顿大学渥太华加拿大)
A Theoretical Explanation of Activation Sparsity through Flat Minima and Adversarial Robustness
State Key Laboratory for Novel Software Technology(计算机软件新技术全国重点实验室);Nanjing University(南京大学);School of Computer Science and Engineering(计算机科学与工程学院);Southeast University(东南大学)
A non-cooperative meta-modeling game for automated third-party calibrating, validating, and falsifying constitutive laws with parallelized adversarial attacks
Los Alamos National Laboratory(洛斯阿拉莫斯国家实验室);Columbia University(哥伦比亚大学)
Over-parameterized Adversarial Training: An Analysis Overcoming the Curse of Dimensionality
Princeton University(普林斯顿大学);Institute for Advanced Study(高等研究院)
对抗性训练是一种流行的方法,使神经网络对对抗性扰动具有鲁棒性。在实践中,对抗训练导致低鲁棒训练损失。然而,对于为什么在自然条件下会发生这种情况,仍然缺乏严格的解释。最近,标准(非对抗性)监督训练的收敛理论由{ \em very overparametrized}网的各种团体开发。目前还不清楚如何将这些结果扩展到对抗训练,因为最小-最大目标。最近,Gao等人使用在线学习的工具朝着这个方向迈出了第一步,但是他们要求网络的宽度在输入维度$d$上为\emph{exponential},并且具有不自然的激活函数。我们的工作证明了在自然假设和ReLU激活下,对于\emph{polynomial}宽度而不是指数宽度,收敛到低鲁棒训练损失。我们证明的关键要素是表明初始化附近的ReLU网络可以近似阶跃函数,这可能是独立的兴趣。
NoiseCAM: Explainable AI for the Boundary Between Noise and Adversarial Attacks
University of Maryland, Baltimore County(马里兰大学巴尔的摩县分校);Embry-Riddle Aeronautical University(安柏瑞德航空大学);University of Colorado Boulder(科罗拉多大学博尔德分校);University of Tennessee at Martin(田纳西大学马丁分校);Bowling Green State University(博林格林州立大学);Old Dominion University(奥多明尼昂大学)
University of Washington(华盛顿大学);UCSB(加州大学圣巴巴拉分校);Adobe Research(奥多比研究院);Yale University(耶鲁大学)
对抗性训练是一种广泛使用的策略,用于使神经网络抵抗对抗性扰动。对于宽度为$m$的神经网络,$n$输入的训练数据是$d$维的,每次训练迭代的前向和后向计算都需要花费$Ω(mnd)$时间。在本文中,我们分析了具有移位ReLU激活的双层神经网络上对抗训练过程的收敛保证,并表明每次迭代的每个输入数据仅激活$o(m)$神经元。此外,我们开发了一个算法的对抗训练的时间成本$o(m n d)$,每次迭代通过应用半空间报告数据结构。
Dept. of Comp. Sci. and Tech.(计算机科学与技术系);Institute for AI(人工智能研究院);Tsinghua-Bosch Joint ML Center(清华大学-博世联合机器学习中心);THBI Lab(THBI实验室);BNRist Center(BNRist中心);Tsinghua University(清华大学);IIIS;RealAI
Towards Reliable Evaluation of Adversarial Robustness for Spiking Neural Networks
Brain-inspired Cognitive AI Lab, Institute of Automation, Chinese Academy of Sciences(脑启发认知人工智能实验室,自动化研究所,中国科学院);School of Artificial Intelligence, University of Chinese Academy of Sciences(人工智能学院,中国科学院大学);Beijing Institute of AI Safety and Governance(北京人工智能安全与治理研究院);Beijing Key Laboratory of Safe Al and Superalignment(北京安全人工智能与超对齐重点实验室);Center for Long-term AI(长期人工智能中心)
Comment on "Biologically inspired protection of deep networks from adversarial attacks"
University of Tübingen(图宾根大学);Bernstein Center for Computational Neuroscience(伯恩斯坦计算神经科学中心);Max Planck Institute for Biological Cybernetics(马克斯·普朗克生物控制论研究所)