LGAICLSep 6, 2024

Programming Refusal with Conditional Activation Steering

IBM
arXiv:2409.05907v3143 citationsh-index: 33Has Code
AI Analysis

This addresses the problem of selective response control in LLMs for applications like content moderation or domain-specific assistants, representing a novel method for a known bottleneck.

The paper tackles the challenge of precisely controlling LLM response behavior by proposing Conditional Activation Steering (CAST), which selectively applies activation steering based on input context to enable rules like refusing hate speech while maintaining normal responses to other content, all without weight optimization.

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 .

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes