Creating Steering Vectors via Input Optimisation
Abstract
Activation steering influences a language model's behaviour by adding a steering vector to its residual stream during generation, but it requires white-box access to modify the hidden states at every generation step. We introduce ActGCG, a modification of Greedy Coordinate Gradient which optimises a suffix to match the target activations obtained by adding a steering vector to the residual stream. We further introduce universal suffixes trained across many prompts at once, a model-translation step that rewrites the suffix into human-readable text midway through optimisation, and a soft-suffix variant to remove the discrete token space constraint. We study two behaviours: steering a model to answer in German, and anti-refusal steering for jailbreaking. For German, a discrete suffix reproduces the steering vector's behaviour almost perfectly and transfers well across prompts and models. For anti-refusal, the equivalence is weaker, succeeding under a phrase-avoidance metric but only partially under the stricter HarmBench classifier. Our results show that a steering vector's behaviour is reachable from the input, with no access to model internals at generation time, up to a loss that depends on the concept being steered.
Create a lesson
Metadata
- Categories
- cs.CL, cs.LG
- Comments
- Bachelor's Thesis, ETH Zurich
Related papers
What Roles Do System Prompts Really Assign? Validating and Steering Occupational Role Vectors in LLMs
Shared title terminologycs.CLJose L. Sampedro Mazon, Ilmi Yoon, Nadim Saad
Faithful Persona Steering under Incongruity via Dual-Stream Refinement
Shared title terminologycs.CLYu-An Chu, Jen-Ren Pong, Chia-Yao Yeh et al.
Single-Coordinate Activation Steering for Controllable Social Stance in Language Models
Shared title terminologycs.CLNaman Chawla, Chhavi Dhiman
Do Probing and Steering Favor the Same Directions Within and Across Language Models?
Shared title terminologycs.CLAfshin Sadeghi, Daniel Becker
Activation Steering the Nan-Shan in Typhoon
Shared title terminologycs.CLMegan Wei, Damon Pham, John Cayley et al.
Where in the Input Does a One-Pass Decision Encoder Look?
Shared title terminologycs.CLMohammed Nayeem Khan, Allan Kevin T