Refusal in Language Models Is Mediated by a Single Direction. Arditi, A., Obeso, O., Syed, A., Paleka, D., Panickssery, N., Gurnee, W., & Nanda, N. In Globerson, A., Mackey, L., Belgrave, D., Fan, A., Paquet, U., Tomczak, J., & Zhang, C., editors, Advances in Neural Information Processing Systems, volume 37, pages 136037–136083, 2024. Curran Associates, Inc..
Paper abstract bibtex Conversational large language models are fine-tuned for both instruction-following and safety, resulting in models that obey benign requests but refuse harmful ones. While this refusal behavior is widespread across chat models, its underlying mechanisms remain poorly understood. In this work, we show that refusal is mediated by a one-dimensional subspace, across 13 popular open-source chat models up to 72B parameters in size. Specifically, for each model, we find a single direction such that erasing this direction from the model's residual stream activations prevents it from refusing harmful instructions, while adding this direction elicits refusal on even harmless instructions. Leveraging this insight, we propose a novel white-box jailbreak method that surgically disables a model's ability to refuse, with minimal effect on other capabilities. This interpretable rank-one weight edit results in an effective jailbreak technique that is simpler and more efficient than fine-tuning. Finally, we mechanistically analyze how adversarial suffixes suppress propagation of the refusal-mediating direction. Our findings underscore the brittleness of current safety fine-tuning methods. More broadly, our work showcases how an understanding of model internals can be leveraged to develop practical methods for controlling model behavior.
@inproceedings{arditi_refusal_2024,
title = {Refusal in {Language} {Models} {Is} {Mediated} by a {Single} {Direction}},
volume = {37},
url = {https://proceedings.neurips.cc/paper_files/paper/2024/file/f545448535dfde4f9786555403ab7c49-Paper-Conference.pdf},
abstract = {Conversational large language models are fine-tuned for both instruction-following and safety, resulting in models that obey benign requests but refuse harmful ones. While this refusal behavior is widespread across chat models, its underlying mechanisms remain poorly understood. In this work, we show that refusal is mediated by a one-dimensional subspace, across 13 popular open-source chat models up to 72B parameters in size. Specifically, for each model, we find a single direction such that erasing this direction from the model's residual stream activations prevents it from refusing harmful instructions, while adding this direction elicits refusal on even harmless instructions. Leveraging this insight, we propose a novel white-box jailbreak method that surgically disables a model's ability to refuse, with minimal effect on other capabilities. This interpretable rank-one weight edit results in an effective jailbreak technique that is simpler and more efficient than fine-tuning. Finally, we mechanistically analyze how adversarial suffixes suppress propagation of the refusal-mediating direction. Our findings underscore the brittleness of current safety fine-tuning methods. More broadly, our work showcases how an understanding of model internals can be leveraged to develop practical methods for controlling model behavior.},
booktitle = {Advances in {Neural} {Information} {Processing} {Systems}},
publisher = {Curran Associates, Inc.},
author = {Arditi, Andy and Obeso, Oscar and Syed, Aaquib and Paleka, Daniel and Panickssery, Nina and Gurnee, Wes and Nanda, Neel},
editor = {Globerson, A. and Mackey, L. and Belgrave, D. and Fan, A. and Paquet, U. and Tomczak, J. and Zhang, C.},
year = {2024},
keywords = {must-reads, ⛔ No DOI found},
pages = {136037--136083},
}
Downloads: 0
{"_id":"v38Y59gABEMfZKcFh","bibbaseid":"arditi-obeso-syed-paleka-panickssery-gurnee-nanda-refusalinlanguagemodelsismediatedbyasingledirection-2024","author_short":["Arditi, A.","Obeso, O.","Syed, A.","Paleka, D.","Panickssery, N.","Gurnee, W.","Nanda, N."],"bibdata":{"bibtype":"inproceedings","type":"inproceedings","title":"Refusal in Language Models Is Mediated by a Single Direction","volume":"37","url":"https://proceedings.neurips.cc/paper_files/paper/2024/file/f545448535dfde4f9786555403ab7c49-Paper-Conference.pdf","abstract":"Conversational large language models are fine-tuned for both instruction-following and safety, resulting in models that obey benign requests but refuse harmful ones. While this refusal behavior is widespread across chat models, its underlying mechanisms remain poorly understood. In this work, we show that refusal is mediated by a one-dimensional subspace, across 13 popular open-source chat models up to 72B parameters in size. Specifically, for each model, we find a single direction such that erasing this direction from the model's residual stream activations prevents it from refusing harmful instructions, while adding this direction elicits refusal on even harmless instructions. Leveraging this insight, we propose a novel white-box jailbreak method that surgically disables a model's ability to refuse, with minimal effect on other capabilities. This interpretable rank-one weight edit results in an effective jailbreak technique that is simpler and more efficient than fine-tuning. Finally, we mechanistically analyze how adversarial suffixes suppress propagation of the refusal-mediating direction. Our findings underscore the brittleness of current safety fine-tuning methods. More broadly, our work showcases how an understanding of model internals can be leveraged to develop practical methods for controlling model behavior.","booktitle":"Advances in Neural Information Processing Systems","publisher":"Curran Associates, Inc.","author":[{"propositions":[],"lastnames":["Arditi"],"firstnames":["Andy"],"suffixes":[]},{"propositions":[],"lastnames":["Obeso"],"firstnames":["Oscar"],"suffixes":[]},{"propositions":[],"lastnames":["Syed"],"firstnames":["Aaquib"],"suffixes":[]},{"propositions":[],"lastnames":["Paleka"],"firstnames":["Daniel"],"suffixes":[]},{"propositions":[],"lastnames":["Panickssery"],"firstnames":["Nina"],"suffixes":[]},{"propositions":[],"lastnames":["Gurnee"],"firstnames":["Wes"],"suffixes":[]},{"propositions":[],"lastnames":["Nanda"],"firstnames":["Neel"],"suffixes":[]}],"editor":[{"propositions":[],"lastnames":["Globerson"],"firstnames":["A."],"suffixes":[]},{"propositions":[],"lastnames":["Mackey"],"firstnames":["L."],"suffixes":[]},{"propositions":[],"lastnames":["Belgrave"],"firstnames":["D."],"suffixes":[]},{"propositions":[],"lastnames":["Fan"],"firstnames":["A."],"suffixes":[]},{"propositions":[],"lastnames":["Paquet"],"firstnames":["U."],"suffixes":[]},{"propositions":[],"lastnames":["Tomczak"],"firstnames":["J."],"suffixes":[]},{"propositions":[],"lastnames":["Zhang"],"firstnames":["C."],"suffixes":[]}],"year":"2024","keywords":"must-reads, ⛔ No DOI found","pages":"136037–136083","bibtex":"@inproceedings{arditi_refusal_2024,\n\ttitle = {Refusal in {Language} {Models} {Is} {Mediated} by a {Single} {Direction}},\n\tvolume = {37},\n\turl = {https://proceedings.neurips.cc/paper_files/paper/2024/file/f545448535dfde4f9786555403ab7c49-Paper-Conference.pdf},\n\tabstract = {Conversational large language models are fine-tuned for both instruction-following and safety, resulting in models that obey benign requests but refuse harmful ones. While this refusal behavior is widespread across chat models, its underlying mechanisms remain poorly understood. In this work, we show that refusal is mediated by a one-dimensional subspace, across 13 popular open-source chat models up to 72B parameters in size. Specifically, for each model, we find a single direction such that erasing this direction from the model's residual stream activations prevents it from refusing harmful instructions, while adding this direction elicits refusal on even harmless instructions. Leveraging this insight, we propose a novel white-box jailbreak method that surgically disables a model's ability to refuse, with minimal effect on other capabilities. This interpretable rank-one weight edit results in an effective jailbreak technique that is simpler and more efficient than fine-tuning. Finally, we mechanistically analyze how adversarial suffixes suppress propagation of the refusal-mediating direction. Our findings underscore the brittleness of current safety fine-tuning methods. More broadly, our work showcases how an understanding of model internals can be leveraged to develop practical methods for controlling model behavior.},\n\tbooktitle = {Advances in {Neural} {Information} {Processing} {Systems}},\n\tpublisher = {Curran Associates, Inc.},\n\tauthor = {Arditi, Andy and Obeso, Oscar and Syed, Aaquib and Paleka, Daniel and Panickssery, Nina and Gurnee, Wes and Nanda, Neel},\n\teditor = {Globerson, A. and Mackey, L. and Belgrave, D. and Fan, A. and Paquet, U. and Tomczak, J. and Zhang, C.},\n\tyear = {2024},\n\tkeywords = {must-reads, ⛔ No DOI found},\n\tpages = {136037--136083},\n}\n\n\n\n\n\n\n\n","author_short":["Arditi, A.","Obeso, O.","Syed, A.","Paleka, D.","Panickssery, N.","Gurnee, W.","Nanda, N."],"editor_short":["Globerson, A.","Mackey, L.","Belgrave, D.","Fan, A.","Paquet, U.","Tomczak, J.","Zhang, C."],"key":"arditi_refusal_2024","id":"arditi_refusal_2024","bibbaseid":"arditi-obeso-syed-paleka-panickssery-gurnee-nanda-refusalinlanguagemodelsismediatedbyasingledirection-2024","role":"author","urls":{"Paper":"https://proceedings.neurips.cc/paper_files/paper/2024/file/f545448535dfde4f9786555403ab7c49-Paper-Conference.pdf"},"keyword":["must-reads","⛔ No DOI found"],"metadata":{"authorlinks":{}}},"bibtype":"inproceedings","biburl":"https://bibbase.org/zotero-group/dcambrid/5266609","dataSources":["HQzSNhug84wo985ng","e4qi3jRmPhPzc7C9a"],"keywords":["must-reads","⛔ no doi found"],"search_terms":["refusal","language","models","mediated","single","direction","arditi","obeso","syed","paleka","panickssery","gurnee","nanda"],"title":"Refusal in Language Models Is Mediated by a Single Direction","year":2024}