atlas

Research map / Large language models / Instruction and fine-tuning

Look Before You Leap: Enhance Attention and Vigilance Regarding Harmful Content with GuidelineLLM

AAAI 2025 · Large language models › Instruction and fine-tuning · approach: Safety alignment after fine-tuning · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes GuidelineLLM, a fine-tuned guideline generator that analyzes a query's risks and feeds safety guidelines to a frozen responding LLM to reduce jailbreak attack success without safety-tuning the responder.

Problem

LLMs remain vulnerable to evolving jailbreak attacks, and existing defenses (RLHF, red-teaming, retraining) are costly in training data and compute and can degrade existing safety alignment; a generalizable, parameter-free defense is needed.

Approach

A separate fine-tuned model (GuidelineLLM) identifies risks in a query before the responding LLM answers, summarizes them into guideline suggestions that are prepended to the query, so only the guideline model is trained while the responder's weights remain unchanged. A semi-automatic loop (JailbreakLLM + GuidelineLLM + filtering by the responder) expands the T-Jailbreak and guideline datasets.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add GuidelineLLM guidelines at inference instead of using IAVicuna-7B · Jailbreak datasets (average)ASR (%): 16.6 -> 8.96Helped
Add GuidelineLLM guidelines at inference instead of using IALlama2-7B-Chat · Jailbreak datasets (average)ASR (%): 0.04 -> 1.53Hurt
Add GuidelineLLM guidelines at inference instead of using IAVicuna-13B · Jailbreak datasets (average)ASR (%): 10.62 -> 11.63Hurt
Add GuidelineLLM guidelines at inference instead of using IAVicuna-7B · AutoDANASR (%): 49.42 -> 17.69Helped
Add GuidelineLLM guidelines at inference instead of using IALlama2-7B-Chat · AutoDANASR (%): 0.19 -> 0.00Helped
Remove benign guidelines from GuidelineLLM fine-tuning data (ablation)GuidelineLLM · Jailbreak datasets (average)ASR (%): 1.92 -> 0.02; 6.77 -> 6.47; 9.16 -> 4.96Helped
Remove benign guidelines from GuidelineLLM fine-tuning data (ablation)GuidelineLLM · Benign queriesHelpfulness score: 3.33 -> 3.14; 3.50 -> 3.43; 3.70 -> 3.67Hurt
Remove benign guidelines from GuidelineLLM fine-tuning data (ablation)GuidelineLLM · Benign queriesFalse refusal rate (FRR): 7.31 -> 7.43; 4.01 -> 5.96; 1.83 -> 2.85Hurt
Use Qwen2.5-1.5B instead of Llama2-7B-Chat as the GuidelineLLM base model (ablation)GuidelineLLM · Jailbreak datasets (average)ASR (%): 1.92 -> 1.74; 6.77 -> 10.47; 9.16 -> 14.63Mixed
Increase maximum guidelines from n=3 to n=7 (ablation)GuidelineLLM with Llama2-7B-Chat responder · Jailbreak datasets (average)ASR (%): 1.92 -> 1.52Helped
Increase maximum guidelines from n=3 to n=7 (ablation)GuidelineLLM with Vicuna-7B responder · Jailbreak datasets (average)ASR (%): 6.77 -> 7.93Hurt
Increase maximum guidelines from n=3 to n=7 (ablation)GuidelineLLM with Vicuna-13B responder · Jailbreak datasets (average)ASR (%): 9.16 -> 11.08Hurt

Surprising findings

Experimental setup

Datasets: Alpaca GPTTeacher DAN SAP200 JailbreakChatGPT AutoDAN

Benchmarks: DAN SAP200 JailbreakChatGPT AutoDAN T-Jailbreak Alpaca GPTTeacher

Metrics: attack success rate harmfulness score (0-4) helpfulness score false refusal rate

Baselines: No defense Self-Reminder IA Llama3-Guard

Builds on: Self-Reminder Llama-Guard LoRA AutoDAN

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy