atlas

Research map / Large language models / Language, safety and interpretability

Controllable Safety Alignment: Inference-Time Adaptation to Diverse Safety Requirements

ICLR 2025 · Large language models › Language, safety and interpretability · approach: Safety alignment of LLMs · 2 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 Controllable Safety Alignment (CSA), where LLMs follow natural-language safety configs in the system prompt, and CoSAlign, a data-centric SFT+DPO method, plus a CoSA-Score evaluation metric for controllability.

Problem

Safety alignment of LLMs is one-size-fits-all and static, ignoring cultural variation and users' differing safety needs, and re-aligning per user is prohibitively expensive.

Approach

Align the model to follow free-form natural-language safety configs placed in the system prompt, so safety behavior can be adjusted at inference time without retraining. Training data is built from harm-category-based synthetic configs, prompts from BeaverTails, and chosen/rejected responses from vanilla and refusal-removed GPT-4, then trained with SFT and DPO.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Apply CoSAlign instead of the strongest baseline, Llama3.1-8B-norfs+ICA+URLlama3.1-8B-Instruct · Seen configsCoSA-Score: 0.42 -> 0.55Helped
Apply CoSAlign instead of the strongest baseline, Llama3.1-8B-norfs+ICA+URLlama3.1-8B-Instruct · Unseen configsCoSA-Score: 0.34 -> 0.47Helped
Add DPO after SFT (ablation)CoSAlign · Seen configsCoSA-Score: 0.24 -> 0.55Helped
Add DPO after SFT (ablation)CoSAlign · Unseen configsCoSA-Score: 0.18 -> 0.47Helped
Apply CoSAlign rather than the untuned base modelLlama3.1-8B-Instruct · Default safety configsafe responses: 98.3 -> 99.0No clear effect
Fine-tune with CoSAlignLlama3.1-8B-Instruct · MMLUscore: 67.8 -> 67.7No clear effect
Use instruction hierarchy through in-context alignmentGPT-4o-mini · Seen configsCoSA-ScoreNo clear effect

Surprising findings

Limitations

Experimental setup

Datasets: BeaverTails MMLU

Benchmarks: CoSA-Score test set (50 seen configs, 2000 prompts; 30 unseen configs, 1200 prompts) BeaverTails default-config safety (400 prompts) MMLU

Metrics: CoSA-Score helpful+safe rate helpful+unsafe rate percent safe

Baselines: in-context alignment (ICA) with Llama3.1-8B-Instruct Llama3-SFT + ICA refusal-removed Llama3.1-8B + ICA unsafe replacement (UR) GPT-4o-mini + ICA CoSAlign SFT-only

Builds on: direct preference optimization instruction hierarchy in-context alignment

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