SafeSwitch: Regulating Unsafe Behavior in LLMs Using Internal Activation SignalsSafeSwitch: Steering Unsafe LLM Behavior via Internal Activation Signals
AI summary
Researchers propose SafeSwitch, a dynamic framework that detects harmful intent through probe-based internal state monitoring and activates safety heads only when necessary, reducing harmful outputs on harmful queries by about 80%. The method also maintains strong model utility, achieves Pareto optimality among several methods, and can provide more informative, context-aware refusals, while fine-tuning less than 6% of the original parameters; the code is open-sourced on GitHub.