大型生成模型能力的不断增强及其日益广泛的部署,引发了人们对其可靠性、安全性和潜在滥用的担忧。为解决这些问题,近期工作提出通过引导模型激活来控制模型生成,从而有效地诱导或阻止生成输出中概念或行为的出现。本文提出Activation Transport (AcT),这是一个以最优传输理论为指导的通用激活引导框架,推广了许多先前的激活引导工作。AcT与模态无关,能够以可忽略的计算开销对模型行为进行细粒度控制,同时对模型能力的影响极小。我们通过解决大型语言模型(LLMs)和文本到图像扩散模型(T2Is)中的关键挑战,实验证明了该方法的有效性和通用性。对于LLMs,我们表明AcT可以有效减轻毒性、诱导任意概念并提高其真实性。在T2Is中,我们展示了AcT如何实现细粒度风格控制和概念否定。
英文摘要:
The increasing capabilities of large generative models and their ever more widespread deployment have raised concerns about their reliability, safety, and potential misuse. To address these issues, recent works have proposed to control model generation by steering model activations in order to effectively induce or prevent the emergence of concepts or behaviors in the generated output. In this paper we introduce Activation Transport (AcT), a general framework to steer activations guided by optimal transport theory that generalizes many previous activation-steering works. AcT is modality-agnostic and provides fine-grained control over the model behavior with negligible computational overhead, while minimally impacting model abilities. We experimentally show the effectiveness and versatility of our approach by addressing key challenges in large language models (LLMs) and text-to-image diffusion models (T2Is). For LLMs, we show that AcT can effectively mitigate toxicity, induce arbitrary concepts, and increase their truthfulness. In T2Is, we show how AcT enables fine-grained style control and concept negation.
Controlling Large Language Models Through Concept Activation Vectors
Key Lab of Intelligent Information Processing of Chinese Academy of Sciences(中国科学院智能信息处理重点实验室);Key Lab of AI Safety of Chinese Academy of Sciences(中国科学院人工智能安全重点实验室);University of Chinese Academy of Sciences(中国科学院大学);Gaoling School of Artificial Intelligence, Renmin University of China(中国人民大学高瓴人工智能学院)
Minimizing Collateral Damage in Activation Steering
Department of Electrical \& Computer Engineering, Rice University, Houston, USA;Department of Computational;Applied Mathematics, Rice University, Houston, USA;Department of Electrical \& Computer Engineering, The University of Texas at Austin, Austin, USA
WASD: Locating Critical Neurons as Sufficient Conditions for Explaining and Controlling LLM Behavior
Key Lab of High Confidence Software Technologies (Peking University), Ministry of Education(高可信软件技术教育部重点实验室(北京大学));School of Computer Science, Peking University(北京大学计算机学院)
AWARe: Mitigating Catastrophic Forgetting via Activation-Weighted Adaptive REtention
School of Software Technology, Zhejiang University(浙江大学软件学院);College of Intelligent Robotics and Advanced Manufacturing, Fudan University(复旦大学智能机器人与先进制造学院);School of Artificial Intelligence, Sun Yat-Sen University(中山大学人工智能学院);Graduate School of Information Science, Hokkaido University(北海道大学信息科学研究院)
Are language models aware of the road not taken? Token-level uncertainty and hidden state dynamics
Department of Linguistics, Stanford University(斯坦福大学语言学系);Department of Psychology, Harvard University(哈佛大学心理学系);Center for Brain Science, Harvard University(哈佛大学脑科学中心);Physics of Intelligence Group, NTT Research(NTT研究物理智能小组)
Reflection Steering: Disentangling Reflection from Reasoning in Activation Space for Token-Efficient Inference
School of Computing and Data Science, The University of Hong Kong(香港大学计算与数据科学学院);Department of Computing, The Hong Kong Polytechnic University(香港理工大学计算学院);School of Data Science, Lingnan University(岭南大学数据科学学院);Centre for Learning, Teaching and Technology, The Education University of Hong Kong(香港教育大学学习、教学与技术中心)
VIS Lab, University of Amsterdam(阿姆斯特丹大学VIS实验室);FunAI Lab, University of Technology Nuremberg(纽伦堡技术大学FunAI实验室);CSAIL, Massachusetts Institute of Technology(麻省理工学院计算机科学与人工智能实验室)
Activation-Space Personality Steering: Hybrid Layer Selection for Stable Trait Control in LLMs
Network Analysis and Social Influence Modelling (NASIM) Lab(网络分析与社会影响建模实验室);School of Physics Maths and Computing, The University of Western Australia(西澳大学物理数学与计算学院);School of Psychological Science, The University of Western Australia(西澳大学心理学科学学院);School of Computing, Macquarie University(麦考瑞大学计算机学院)
Steering at the Source: Style Modulation Heads for Robust Persona Control
The University of Tokyo, Tokyo, Japan(东京大学);National Institute of Informatics Research(信息处理研究所);Development Center for Large Language Models, Japan(大型语言模型发展中心)
Language Model Activations Inhabit Privileged Error-Correcting Basins
Goodfire;University of Southern California(南加州大学);Massachusetts Institute of Technology(麻省理工学院);Northeastern University(东北大学);Stanford University(斯坦福大学);Harvard University(哈佛大学)