paper-with-me

Papers

Programming Refusal with Conditional Activation Steering

2024-09-06 · Bruce W. Lee, Inkit Padhi, Karthikeyan Natesan Ramamurthy, Erik Miehling, Pierre Dognin, Manish Nagireddy, Amit Dhurandhar

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.

📄 PDF Abstract BibTeX arXiv:2409.05907

Code (1)

ibm/activation-steering 공식 구현 pytorch

Similar Papers 제목 키워드 기반

AlphaSteer: Learning Refusal Steering with Principled Null-Space Constraint

2025-06-08 · Leheng Sheng, Changshuo Shen, Weixiang Zhao, Junfeng Fang 외

As LLMs are increasingly deployed in real-world applications, ensuring their ability to refuse malicious prompts, especially jailbreak attacks, is essential for safe and reliable use. Recently, activation steering has em…

Beyond a Single Direction: Chain-of-Thought Disrupts Simple Steering of Refusal

2026-05-26 · Kia-Jüng Yang, Dominik Meier, Jiachen Zhao, Terry Ruas 외 arxiv

Large reasoning models (LRMs) generate chain-of-thought (CoT) traces before producing final outputs, introducing a dynamic internal state that may complicate control mechanisms such as refusal. Unlike instruction-tuned L…

OPIUM: Mitigating Steering Externalities and Over-Refusal via Dual Objective Latent Optimization

2026-07-22 · Kavin Aravindan, Arihant Rastogi, Aadi Prasad, Krishak Aneja 외 arxiv

Activation steering provides a lightweight mechanism for controlling large language models at inference time, but steering vectors can have unintended externalities: utility vectors may weaken safety behavior, while refu…

There Is More to Refusal in Large Language Models than a Single Direction

2026-02-02 · Faaiz Joad, Majd Hawasly, Sabri Boughorbel, Nadir Durrani 외 arxiv

Prior work argues that refusal in large language models is mediated by a single direction, enabling steering and abliteration. We show that this account is incomplete: across diverse refusal and non-compliance categories…

$C$-$ΔΘ$: Circuit-Restricted Weight Arithmetic for Selective Refusal

2026-02-04 · Aditya Kasliwal, Pratinav Seth, Vinay Kumar Sankarapu arxiv

Modern deployments require LLMs to enforce safety policies at scale, yet many controls rely on inference-time interventions that add recurring compute cost and serving complexity. Activation steering is widely used, but …