Skip to content

InferAligner: Inference-Time Alignment for Harmlessness through Cross-Model SteeringInferAligner: Inference-Time Alignment for Harmlessness through Cross-Model Guidance

arXiv· arXiv:2401.11206· EMNLP 2024· Pengyu Wang, Dong Zhang, Linyang Li, Chenkun Tan, Xinghao Wang, Ke Ren, Botian Jiang, Xipeng Qiu·Indexed by this site · 24 days ago· Originally publishedDefenses
AI summary

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.

Read originalEMNLP 2024