Think Before You Act: GuidelineLLM Enhances Large Language Models' Attention and Vigilance to Harmful ContentLook Before You Leap: Enhancing Attention and Vigilance Regarding Harmful Content with GuidelineLLM
AI summary
Before a large language model (LLM) answers, GuidelineLLM first identifies the query's potential risks and summarizes them as guideline suggestions, then feeds these suggestions into the answering model to enhance its vigilance against harmful content and jailbreak attacks. Experiments show that this method reduces the attack success rate (ASR) by 34.17% on average while maintaining the LLM's usability for benign queries; and it requires no additional safety fine-tuning of the LLM itself, only fine-tuning of GuidelineLLM.