atlas

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

SEAL: Safety-enhanced Aligned LLM Fine-tuning via Bilevel Data Selection

ICLR 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 SEAL, a bilevel-optimization-learned data selector that down-ranks unsafe or low-quality fine-tuning samples so that LLM fine-tuning preserves safety alignment.

Problem

Fine-tuning aligned LLMs on task data, even benign data, can erode their safety alignment; the goal is to select fine-tuning data that preserves safety while maintaining downstream quality.

Approach

Learn a softmax data selector via a bilevel problem that minimizes the safety-data loss of a model fine-tuned on the reweighted fine-tuning data, solved with a penalty-based first-order gradient method and a memory-efficient variant that drops the auxiliary model update; then fine-tune on the top-p% ranked samples.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use SEAL data selection instead of random selectionfine-tuning Llama-3-8b-Instruct on RedOrca · Anthropic HH testwin rate: 50.78 -> 60.22Helped
use SEAL data selection instead of random selectionfine-tuning Llama-3-8b-Instruct on RedOrca · SlimOrca testwin rate: 50.8 -> 53.88Mixed
use SEAL data selection instead of random selectionfine-tuning Llama-3-8b-Instruct on RedOrca · HEx-PHIwin rate: 56.31 -> 69.29Helped
add safety instruction data to SEAL-selected fine-tuning data (ablation)SEAL on Llama-3-8b-Instruct · Anthropic HH testwin rate: 60.22 -> 67.19Helped
add safety instruction data to SEAL-selected fine-tuning data (ablation)SEAL on Llama-3-8b-Instruct · SlimOrca testwin rate: 53.88 -> 53.91No clear effect
add safety instruction data to SEAL-selected fine-tuning data (ablation)SEAL on Merlinite-7b · HEx-PHIwin rate: 61.5 -> 64.87Helped
use SEAL data selection instead of random selectionfine-tuning Merlinite-7b on RedOrca · Anthropic HH testwin rate: 60 -> 76.72Helped
use SEAL data selection instead of random selectionfine-tuning Merlinite-7b on RedOrca · SlimOrca testwin rate: 55 -> 55.78Helped
use SEAL data selection instead of random selectionfine-tuning Merlinite-7b on RedOrca · HEx-PHIwin rate: 49.97 -> 61.5Mixed
use SEAL data selection instead of random selectionfine-tuning Pythia-2.8b · Anthropic HH testwin rate: 54.22 -> 62.19Helped
use SEAL data selection instead of random selectionfine-tuning Pythia-2.8b · HEx-PHIwin rate: 55.51 -> 54.51Hurt
use SEAL data selection instead of random selectionfine-tuning Llama2-7b-chat-hf on benign data · Anthropic HH testwin rate: 50.16 -> 52.03Helped

Surprising findings

Limitations

Experimental setup

Datasets: RedOrca SlimOrca Anthropic HH HEx-PHI Alpaca-cleaned OpenOrca Anthropic red-teaming

Benchmarks: Anthropic HH test SlimOrca test HEx-PHI

Metrics: win rate vs standard SFT reference

Baselines: Standard SFT Random selection DSIR SafeInstr

Builds on: DSIR LESS DPO LoRA

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