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(中国人民大学高瓴人工智能学院)
Hanyu Zhang, Xiting Wang, Chengao Li, Xiang Ao, Qing He
随着大型语言模型(LLM)在各个领域得到广泛部署,控制其生成输出的能力变得愈发关键。这种控制包括使LLM输出与人类价值观和伦理原则保持一致,或为个体用户在特定主题或风格上定制LLM。现有的受控生成方法要么需要大量计算资源和广泛的试错,要么只能提供粗粒度控制。本文提出Generation with Concept Activation Vector(GCAV,基于概念激活向量的生成),这是一个轻量级模型控制框架,无需耗费大量资源的微调即可确保精确控制。具体而言,GCAV首先针对毒性等待控制的指定概念训练一个概念激活向量。在推理过程中,GCAV引导LLM中的概念向量,例如从激活层中移除毒性概念向量。从毒性降低、情感控制、语言风格和主题控制等不同角度开展的控制实验表明,该框架以细粒度控制取得了最先进性能,允许针对单个样本对引导层和引导幅度进行精细调整。
英文摘要:
As large language models (LLMs) are widely deployed across various domains, the ability to control their generated outputs has become more critical. This control involves aligning LLMs outputs with human values and ethical principles or customizing LLMs on specific topics or styles for individual users. Existing controlled generation methods either require significant computational resources and extensive trial-and-error or provide coarse-grained control. In this paper, we propose Generation with Concept Activation Vector (GCAV), a lightweight model control framework that ensures accurate control without requiring resource-extensive fine-tuning. Specifically, GCAV first trains a concept activation vector for specified concepts to be controlled, such as toxicity. During inference, GCAV steers the concept vector in LLMs, for example, by removing the toxicity concept vector from the activation layers. Control experiments from different perspectives, including toxicity reduction, sentiment control, linguistic style, and topic control, demonstrate that our framework achieves state-of-the-art performance with granular control, allowing for fine-grained adjustments of both the steering layers and the steering magnitudes for individual samples.
A Multi-granularity Concept Sparse Activation and Hierarchical Knowledge Graph Fusion Framework for Rare Disease Diagnosis
School of Software, Yunnan University(云南大学软件学院);Yunnan Key Laboratory of Software Engineering(云南软件工程重点实验室);Yunnan Provincial Hospital of Traditional Chinese Medicine(云南中医药省人民医院)
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(北海道大学信息科学研究院)
MiA-Signature: Approximating Global Activation for Long-Context Understanding
Institute of Information Engineering, Chinese Academy of Sciences(中国科学院信息工程研究所);School of Cyber Security, University of Chinese Academy of Sciences(中国科学院大学网络安全学院);Pattern Recognition Center, WeChat AI, Tencent(微信AI模式识别中心);Hunyuan Team, Tencent(腾讯文心一言团队)
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(北京大学计算机学院)
NeuronScope: A Multi-Agent Framework for Explaining Polysemantic Neurons in Language Models
Wuhan University(武汉大学);Hong Kong Baptist University(香港 Baptist大学);New Jersey Institute of Technology(新泽西理工学院);The Chinese University of Hong Kong, Shenzhen(香港中文大学(深圳))
From Directions to Regions: Decomposing Activations in Language Models via Local Geometry
Blavatnik School of Computer Science(Blavatnik计算机科学学院);AI, Tel Aviv University, Israel(人工智能,特拉维夫大学,以色列);New York University, New York, NY, USA(纽约大学,纽约,纽约州,美国)
Language Model Activations Inhabit Privileged Error-Correcting Basins
Goodfire;University of Southern California(南加州大学);Massachusetts Institute of Technology(麻省理工学院);Northeastern University(东北大学);Stanford University(斯坦福大学);Harvard University(哈佛大学)