Steering Language Models With Activation Engineering. Turner, A. M., Thiergart, L., Leech, G., Udell, D., Vazquez, J. J., Mini, U., & MacDiarmid, M. October, 2024. arXiv:2308.10248 [cs.CL]
Paper doi abstract bibtex Prompt engineering and finetuning aim to maximize language model performance on a given metric (like toxicity reduction). However, these methods do not fully elicit a model's capabilities. To reduce this gap, we introduce activation engineering: the inference-time modification of activations in order to control (or steer) model outputs. Specifically, we introduce the Activation Addition (ActAdd) technique, which contrasts the intermediate activations on prompt pairs (such as "Love" versus "Hate") to compute a steering vector (Subramani et al. 2022). By tactically adding in e.g. the "Love" - "Hate" steering vector during the forward pass, we achieve SOTA on negative-to-positive sentiment shift and detoxification using models including LLaMA-3 and OPT. ActAdd yields inference-time control over high-level output properties (like topic and sentiment) while preserving performance on off-target tasks. ActAdd is lightweight: it does not require any machine optimization and works with a single pair of data points, which enables rapid iteration over steering. ActAdd demonstrates the power of activation engineering.
@misc{turner_steering_2024,
title = {Steering {Language} {Models} {With} {Activation} {Engineering}},
url = {http://arxiv.org/abs/2308.10248},
doi = {10.48550/arXiv.2308.10248},
abstract = {Prompt engineering and finetuning aim to maximize language model performance on a given metric (like toxicity reduction). However, these methods do not fully elicit a model's capabilities. To reduce this gap, we introduce activation engineering: the inference-time modification of activations in order to control (or steer) model outputs. Specifically, we introduce the Activation Addition (ActAdd) technique, which contrasts the intermediate activations on prompt pairs (such as "Love" versus "Hate") to compute a steering vector (Subramani et al. 2022). By tactically adding in e.g. the "Love" - "Hate" steering vector during the forward pass, we achieve SOTA on negative-to-positive sentiment shift and detoxification using models including LLaMA-3 and OPT. ActAdd yields inference-time control over high-level output properties (like topic and sentiment) while preserving performance on off-target tasks. ActAdd is lightweight: it does not require any machine optimization and works with a single pair of data points, which enables rapid iteration over steering. ActAdd demonstrates the power of activation engineering.},
urldate = {2026-05-15},
publisher = {arXiv},
author = {Turner, Alexander Matt and Thiergart, Lisa and Leech, Gavin and Udell, David and Vazquez, Juan J. and Mini, Ulisse and MacDiarmid, Monte},
month = oct,
year = {2024},
note = {arXiv:2308.10248 [cs.CL]},
keywords = {Computer Science - Computation and Language, Computer Science - Machine Learning},
}
Downloads: 0
{"_id":"5eTh9cSrsGiw8AKRw","bibbaseid":"turner-thiergart-leech-udell-vazquez-mini-macdiarmid-steeringlanguagemodelswithactivationengineering-2024","author_short":["Turner, A. M.","Thiergart, L.","Leech, G.","Udell, D.","Vazquez, J. J.","Mini, U.","MacDiarmid, M."],"bibdata":{"bibtype":"misc","type":"misc","title":"Steering Language Models With Activation Engineering","url":"http://arxiv.org/abs/2308.10248","doi":"10.48550/arXiv.2308.10248","abstract":"Prompt engineering and finetuning aim to maximize language model performance on a given metric (like toxicity reduction). However, these methods do not fully elicit a model's capabilities. To reduce this gap, we introduce activation engineering: the inference-time modification of activations in order to control (or steer) model outputs. Specifically, we introduce the Activation Addition (ActAdd) technique, which contrasts the intermediate activations on prompt pairs (such as \"Love\" versus \"Hate\") to compute a steering vector (Subramani et al. 2022). By tactically adding in e.g. the \"Love\" - \"Hate\" steering vector during the forward pass, we achieve SOTA on negative-to-positive sentiment shift and detoxification using models including LLaMA-3 and OPT. ActAdd yields inference-time control over high-level output properties (like topic and sentiment) while preserving performance on off-target tasks. ActAdd is lightweight: it does not require any machine optimization and works with a single pair of data points, which enables rapid iteration over steering. ActAdd demonstrates the power of activation engineering.","urldate":"2026-05-15","publisher":"arXiv","author":[{"propositions":[],"lastnames":["Turner"],"firstnames":["Alexander","Matt"],"suffixes":[]},{"propositions":[],"lastnames":["Thiergart"],"firstnames":["Lisa"],"suffixes":[]},{"propositions":[],"lastnames":["Leech"],"firstnames":["Gavin"],"suffixes":[]},{"propositions":[],"lastnames":["Udell"],"firstnames":["David"],"suffixes":[]},{"propositions":[],"lastnames":["Vazquez"],"firstnames":["Juan","J."],"suffixes":[]},{"propositions":[],"lastnames":["Mini"],"firstnames":["Ulisse"],"suffixes":[]},{"propositions":[],"lastnames":["MacDiarmid"],"firstnames":["Monte"],"suffixes":[]}],"month":"October","year":"2024","note":"arXiv:2308.10248 [cs.CL]","keywords":"Computer Science - Computation and Language, Computer Science - Machine Learning","bibtex":"@misc{turner_steering_2024,\n\ttitle = {Steering {Language} {Models} {With} {Activation} {Engineering}},\n\turl = {http://arxiv.org/abs/2308.10248},\n\tdoi = {10.48550/arXiv.2308.10248},\n\tabstract = {Prompt engineering and finetuning aim to maximize language model performance on a given metric (like toxicity reduction). However, these methods do not fully elicit a model's capabilities. To reduce this gap, we introduce activation engineering: the inference-time modification of activations in order to control (or steer) model outputs. Specifically, we introduce the Activation Addition (ActAdd) technique, which contrasts the intermediate activations on prompt pairs (such as \"Love\" versus \"Hate\") to compute a steering vector (Subramani et al. 2022). By tactically adding in e.g. the \"Love\" - \"Hate\" steering vector during the forward pass, we achieve SOTA on negative-to-positive sentiment shift and detoxification using models including LLaMA-3 and OPT. ActAdd yields inference-time control over high-level output properties (like topic and sentiment) while preserving performance on off-target tasks. ActAdd is lightweight: it does not require any machine optimization and works with a single pair of data points, which enables rapid iteration over steering. ActAdd demonstrates the power of activation engineering.},\n\turldate = {2026-05-15},\n\tpublisher = {arXiv},\n\tauthor = {Turner, Alexander Matt and Thiergart, Lisa and Leech, Gavin and Udell, David and Vazquez, Juan J. and Mini, Ulisse and MacDiarmid, Monte},\n\tmonth = oct,\n\tyear = {2024},\n\tnote = {arXiv:2308.10248 [cs.CL]},\n\tkeywords = {Computer Science - Computation and Language, Computer Science - Machine Learning},\n}\n\n\n\n\n\n\n\n","author_short":["Turner, A. M.","Thiergart, L.","Leech, G.","Udell, D.","Vazquez, J. J.","Mini, U.","MacDiarmid, M."],"key":"turner_steering_2024","id":"turner_steering_2024","bibbaseid":"turner-thiergart-leech-udell-vazquez-mini-macdiarmid-steeringlanguagemodelswithactivationengineering-2024","role":"author","urls":{"Paper":"http://arxiv.org/abs/2308.10248"},"keyword":["Computer Science - Computation and Language","Computer Science - Machine Learning"],"metadata":{"authorlinks":{}},"downloads":0},"bibtype":"misc","biburl":"https://bibbase.org/zotero-group/dcambrid/5266609","dataSources":["e4qi3jRmPhPzc7C9a"],"keywords":["computer science - computation and language","computer science - machine learning"],"search_terms":["steering","language","models","activation","engineering","turner","thiergart","leech","udell","vazquez","mini","macdiarmid"],"title":"Steering Language Models With Activation Engineering","year":2024}