We propose affine concept editing (ACE) as an approach for steering language models' behavior by intervening directly in activations. We begin with an affine decomposition of model activation vectors and show that prior methods for steering model behavior correspond to subsets of terms of this decomposition. We then provide a derivation of ACE and use it to control refusal behavior on ten different models, including Llama 3 70B. ACE combines affine subspace projection and activation addition to reliably control the model's refusal responses across prompt types. We evaluate the results using LLM-based scoring on a collection of harmful and harmless prompts. Our experiments demonstrate that ACE consistently achieves more precise control over model behavior than existing methods and generalizes to models where directional ablation via affine subspace projection alone produces incoherent outputs. Code for reproducing our results is available at https://github.com/EleutherAI/steering-llama3 .
Cannot or Should Not? Automatic Analysis of Refusal Composition in IFT/RLHF Datasets and Refusal Behavior of Black-Box LLMs
Technical University of Munich(慕尼黑工业大学);University of Cambridge(剑桥大学);ETH Zurich(苏黎世联邦理工学院);Stanford University(斯坦福大学);TÜV Nord Mobility(北德集团移动事业部);Massachusetts Institute of Technology (MIT)(麻省理工学院)
Can LLMs Refuse Questions They Do Not Know? Measuring Knowledge-Aware Refusal in Factual Tasks
Department of Computer Science, City University of Hong Kong(香港城市大学计算机科学系);Harbin Institute of Technology(哈尔滨工业大学);College of Computing and Data Science, Nanyang Technological University(南洋理工大学计算机与数据科学学院);School of Computer Science and Engineering, Central South University(中南大学计算机科学与工程学院)
Decomposing Refusal Steering in Mixture-of-Experts Models
Department of Interdisciplinary Studies(交叉学科研究部);University of Montana(蒙大拿大学);Department of Pharmacy Practice & Science(药学与科学系);University of Arizona(亚利桑那大学);European Bioinformatics Institute(欧洲生物信息研究所);European Molecular Biology Laboratory(欧洲分子生物学实验室);Wellcome Genome Campus(沃氏基因组校园)
How Post-Training Reshapes LLMs: A Mechanistic View on Knowledge, Truthfulness, Refusal, and Confidence
University of California, Los Angeles(加州大学洛杉矶分校);University of Alberta(阿尔伯塔大学);University of Illinois at Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);Harvard University(哈佛大学)
Refuse Whenever You Feel Unsafe: Improving Safety in LLMs via Decoupled Refusal Training
School of Data Science, The Chinese University of Hong Kong, Shenzhen, China(数据科学学院,香港中文大学(深圳));Tencent AI Lab(腾讯人工智能实验室);The Chinese University of Hong Kong(香港中文大学);Shenzhen Research Institute of Big Data, China(深圳大数据研究院)
Please refuse to answer me! Mitigating Over-Refusal in Large Language Models via Adaptive Contrastive Decoding
School of Cyber Science and Technology, Shenzhen Campus of Sun Yat-sen University(中山大学信息科学与技术学院深圳校区);School of Information, Central University of Finance and Economics(中央财经大学信息学院);School of Artificial Intelligence, Beijing Normal University(北京师范大学人工智能学院);School of Computing Technologies, RMIT University(皇家墨尔本理工大学计算技术学院)
Are LLMs Good Safety Agents or a Propaganda Engine?
SMU;University of Trieste(特里este大学);AREA Science Park(AREA科学园);CMU(卡内基梅隆大学);University of Toronto(多伦多大学);Vector Institute(向量研究所);MPI for Intelligent Systems(智能系统研究所);University of Michigan(密歇根大学)
Understanding Refusal in Language Models with Sparse Autoencoders
Nanyang Technological University(南洋理工大学);Singapore University of Technology and Design(新加坡科技设计大学);Digital Trust Centre(数字信任中心);Institute of High Performance Computing (IHPC)(高性能计算研究所)
Utilize the Flow before Stepping into the Same River Twice: Certainty Represented Knowledge Flow for Refusal-Aware Instruction Tuning
Shanghai Artificial Intelligence Laboratory(上海人工智能实验室);Peking University(北京大学);Southwest Jiaotong University(西南交通大学);Hangzhou Institute for Advanced Study, University of Chinese Academy of Sciences(中国科学院大学杭州高等研究院)
DualEdit: Mitigating Safety Fallback in LLM Backdoor Editing via Affirmation-Refusal Regulation
University of Science and Technology of China(中国科学技术大学);National University of Singapore(新加坡国立大学);Singapore Management University(新加坡管理大学);MoE Key Lab of BIPC, University of Science and Technology of China(中国科学技术大学信息与通信技术国家重点实验室)
TAF-MED: Multi-Turn Safety Refusal Collapse in LLMs Under Declared Self-Treatment Intent
Independent Researcher(独立研究者);School of Computation, Information and Technology, Technical University of Munich(慕尼黑工业大学计算、信息与技术学院);Institute of General Practice, Faculty of Medicine and Medical Center, University of Freiburg(弗莱堡大学医学中心医学院普通实践研究所)
HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusal
University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);Center for AI Safety(人工智能安全中心);Carnegie Mellon University(卡内基梅隆大学);UC Berkeley(加州大学伯克利分校);Microsoft(微软)
A Granular Study of Safety Pretraining under Model Abliteration
Data and Web Science Group, University of Mannheim(曼海姆大学数据与网络科学组);Vision and AI Lab, Indian Institute of Science(印度科学院视觉与人工智能实验室);Carnegie Mellon University(卡内基梅隆大学);Max-Planck-Institute for Informatics, Saarland Informatics Campus(马克斯·普朗克信息研究所,萨尔兰信息校园)