arXiv Open Access 2024

Programming Refusal with Conditional Activation Steering

Bruce W. Lee Inkit Padhi Karthikeyan Natesan Ramamurthy Erik Miehling Pierre Dognin +2 lainnya
Lihat Sumber

Abstrak

LLMs have shown remarkable capabilities, but precisely controlling their response behavior remains challenging. Existing activation steering methods alter LLM behavior indiscriminately, limiting their practical applicability in settings where selective responses are essential, such as content moderation or domain-specific assistants. In this paper, we propose Conditional Activation Steering (CAST), which analyzes LLM activation patterns during inference to selectively apply or withhold activation steering based on the input context. Our method is based on the observation that different categories of prompts activate distinct patterns in the model's hidden states. Using CAST, one can systematically control LLM behavior with rules like "if input is about hate speech or adult content, then refuse" or "if input is not about legal advice, then refuse." This allows for selective modification of responses to specific content while maintaining normal responses to other content, all without requiring weight optimization. We release an open-source implementation of our framework at github.com/IBM/activation-steering .

Topik & Kata Kunci

Penulis (7)

B

Bruce W. Lee

I

Inkit Padhi

K

Karthikeyan Natesan Ramamurthy

E

Erik Miehling

P

Pierre Dognin

M

Manish Nagireddy

A

Amit Dhurandhar

Format Sitasi

Lee, B.W., Padhi, I., Ramamurthy, K.N., Miehling, E., Dognin, P., Nagireddy, M. et al. (2024). Programming Refusal with Conditional Activation Steering. https://arxiv.org/abs/2409.05907

Akses Cepat

Lihat di Sumber
Informasi Jurnal
Tahun Terbit
2024
Bahasa
en
Sumber Database
arXiv
Akses
Open Access ✓