InferAligner: Inference-Time Alignment for Harmlessness through Cross-Model SteeringInferAligner: Inference-Time Alignment for Harmlessness through Cross-Model Guidance
The researchers propose InferAligner, an inference-time alignment method that achieves harmlessness through cross-model steering, addressing the complexity and cumbersomeness of training-time alignment methods such as supervised fine-tuning (SFT) and RLHF. The method extracts safety steering vectors from safety-aligned models and, when the target model responds to harmful inputs, modifies its activations to guide the model to give harmless answers. Experiments show that the method can be effectively applied to specialized models in finance, healthcare, and mathematics, as well as multimodal large language models (MLLMs) such as LLaVA, significantly reducing the attack success rate (ASR) of harmful instructions and jailbreak attacks with almost no change in downstream task performance.