Data-efficient LLM safety alignment guided by interpretable featuresData-Efficient LLM Safety Alignment Guided by Interpretable Features
The authors propose LIS, a 2.4K-sample safety alignment dataset, and claim its F1 on two model families is better than that of TRIDENT and WildJailbreak at 19K–262K.
- Existing safety alignment SFT datasets are large in scale (20K–300K+), have high training costs, and easily induce over-refusal; the authors cite Bianchi et al. (2024) as saying that more than 2,000 safety samples increases over-refusal, so a small, high-quality dataset is needed.
- Propose LIS: use a pretrained SAE to identify safety features via the difference in activation frequency between safety data and general data, use a word-count-normalized greedy algorithm to select 1,200 safety samples covering these features, then use a Generator–Guard–Judge–Writer multi-agent framework to synthesize 1,200 over-refusal samples.
- On LLaMA3.1-Alpaca and Qwen3.5-9B-Base, the Overall F1 of LIS 2.4K (82.32, 87.09) is higher than that of same-scale random subsets and full TRIDENT and WildJailbreak (Table 3); ablations show that using only the safety subset or only the over-refusal subset is worse than full LIS (Table 5).
- The authors note: features with Score>0 are not guaranteed to be pure; synthetic data quality is limited by the capabilities of the models within the framework; the 2.4K scale may not cover some extreme scenarios (Section 7). The experiments are conducted only on two model families and 9 safety/refusal benchmarks, and manual quality inspection covers only 200 items with 1 annotator.
- Evaluated models
- LLaMA3.1-AlpacaQwen3.5-9B-BaseLLaMA3.1-8B-Instruct
- Benchmarks
- HarmEvalS-EvalSALAD-BenchJailbreak-DistillationXSTestFalseRejectEvoRefusePHTestOKTestMMLUGSM8KMATH-500ARC-Challenge
- Metrics
- unsafe rateover-refusal rateRecallPrecisionF1
The researchers propose Less is Safer (LIS), a safety alignment dataset of only 2.4K samples, which surpasses much larger datasets such as TRIDENT-Core (26K), TRIDENT-Edge (19K), and WildJailbreak (262K) in overall performance on four safety benchmarks and five over-refusal benchmarks. The dataset first uses sparse autoencoder (SAE) activation filtering to select prompts covering diverse interpretable safety features, then uses a multi-agent adversarial synthesis framework to generate prompts that are harmless yet trigger unnecessary refusals. Ablation experiments show that using safety data or over-refusal data alone cannot achieve the best results; data filtering using LLM-labeled SAE safety features is also less effective than this pipeline.
Paper analysis
What problem does this paper attempt to solve?
Safety alignment data is large and prone to over-refusal; the authors propose LIS, a 2.4K interpretable-feature-guided dataset.
Core problem: how to use a small-scale dataset to simultaneously improve LLM safety and avoid over-refusal (excessive refusal of harmless prompts).
- Problem setting: The authors state that existing safety alignment SFT datasets are usually large (20K–300K+), have high training costs, and often cause models to refuse harmless requests that merely appear sensitive, sacrificing usability.
- Shortcomings of existing methods: The authors cite Bianchi et al. (2024) as saying that a small amount of safety data can improve safety, but more than 2,000 items increases over-refusal; they also argue that most existing SFT safety datasets focus only on safety and do not address over-refusal in evaluation.
- Core observation: The authors view safety alignment as teaching the model to recognize the safety boundary—jailbreak samples appear harmless but are harmful, while over-refusal samples appear harmful but are harmless; both types of samples lie on the boundary, so training data should cover both safety risks and this boundary (Section 5).
- Proposed approach: They propose Less is Safer (LIS), a dataset of 2,400 samples comprising a safety subset and an over-refusal subset; the construction pipeline first uses Sparse Autoencoder (SAE) activations to identify interpretable safety features and greedily select samples, then uses a multi-agent adversarial synthesis framework to generate over-refusal samples.
- Main claim: The authors state that LIS outperforms TRIDENT-Core (26K), TRIDENT-Edge (19K), and WildJailbreak (262K) in overall performance on 4 safety benchmarks and 5 over-refusal benchmarks, and that fine-tuning requires only 0.99 GPU-hours.
What related research exists?
Related work is divided into four groups: over-refusal benchmarks, safety alignment datasets, data selection methods, and SAE feature selection.
Over-refusal phenomenon and benchmarks
- Röttger et al. (2024) proposed XSTest, which the paper calls the first over-refusal benchmark; OKTest (Shi et al., 2024) consists of handwritten harmless prompts with sensitive cues.
- OR-Bench (Cui et al., 2024) and PHTest (An et al., 2024) automatically generate such prompts; EvoRefuse (Wu et al., 2025a) and FalseReject (Zhang et al., 2025b) place more emphasis on difficulty, and the paper notes that many LLMs still exhibit over-refusal on FalseReject, so the problem remains unsolved.
Safety alignment datasets
- BeaverTails (Ji et al., 2023): 334K question-answer pairs with human safety annotations; TRIDENT (Wu et al., 2025b): uses personas to generate coverage of lexical diversity, malicious intent, and jailbreak strategies; STAR-1 (Wang et al., 2025): aimed at reasoning models, keeping the 1K entries with the highest GPT-4o scores.
- WildJailbreak (Jiang et al., 2024): 262K entries, including an over-refusal training set; the paper notes that training on both types of data can balance safety and over-refusal, but the scale is too large and training cost is high.
Data selection methods
- LIMA (Zhou et al., 2023) shows that 1,000 curated samples suffice to fine-tune a 65B LLaMA; AlpaGasus (Chen et al., 2024) uses ChatGPT to filter Alpaca from 52K to 9K; InsTag (Lu et al., 2024) selects samples by open tags. The paper notes that such methods rely on the LLM's own judgment and lack interpretable guidance.
- IFD (Li et al., 2024b) and LESS (Xia et al., 2024) exploit internal information of a specific model (generation capability, gradient similarity); the paper notes their drawback is that scores must be recomputed for each new model.
SAE-based filtering
- Yang et al. (2025) use SAE features to measure diversity, and Ma et al. (2025) use monosemantic SAE activation values to select task-relevant data; both target general instruction tuning and treat all features equally.
Baselines and benchmarks: the comparison datasets are TRIDENT (Core 26K / Edge 19K) and WildJailbreak (262K), including same-scale 2.4K random subsets; evaluation uses 4 safety benchmarks (HarmEval, S-Eval, SALAD-Bench, Jailbreak-Distillation) and 5 over-refusal benchmarks (XSTest, FalseReject, EvoRefuse, PHTest, OKTest). The authors position this paper's distinction as: using interpretable safety features rather than all features for filtering, and using the SAE only to characterize data diversity, so the filtering results are not strongly tied to a specific model.
How does the paper address this problem?
Two-stage construction of LIS: SAE safety-feature-guided greedy sample selection + multi-agent adversarial synthesis of over-refusal data.
Overall approach: first identify safety-related features on a pretrained SAE, and use a greedy algorithm to select the safety prompts that cover the most of these features; then use a multi-agent adversarial framework to rewrite over-refusal seeds into harder harmless samples and synthesize responses, finally obtaining LIS with 2.4K samples (1,200 safety + 1,200 over-refusal).
Safety feature identification
- Use LlamaScope SAE (trained on the residual stream of layer 24 of LLaMA3.1-8B-Base, 32x) to encode prompt hidden states, and apply max-pooling over non-padding tokens to obtain prompt-level representations.
- Hypothesis: if a feature is activated more frequently in the safety dataset Dsafe than in the general dataset Dgen (Alpaca), it is more likely a safety-related feature.
- The safety score is defined as the difference in log-odds of activation frequency between the two datasets: Score(j) = logodds(psafej) − logodds(pgenj); features with Score(j) > 0 constitute the safety feature set Fsafety. The authors say log-odds rather than frequency difference is used to capture relative differences, so that rare but safety-related features can also score high.
Safety-feature-guided sample selection
- Data diversity is defined as the number of safety features covered by the dataset; the goal is to cover the most safety features under a fixed sample count, so a greedy algorithm is used to progressively select the prompts that bring the most newly covered features.
- To avoid bias toward long samples (the authors believe long samples activate more features, and greedy selection would preferentially pick long jailbreak-type samples, causing the data distribution to converge and generalization to worsen), the feature gain at each step is normalized by word count: x∗ = argmax NewCov(xi)/|xi|; ties are broken by the sum of Scores of newly covered features.
- Select 1,200 from TRIDENT-Edge as LIS-Safety (keeping their safety responses), and 1,200 from OR-Bench-80K as over-refusal seeds.
Multi-agent adversarial synthesis
- Four roles: Generator rewrites the seed prompt to be harder (risk points more prominent); Guard (Qwen3Guard-Gen-8B) treats a verdict of Unsafe or Controversial as triggering a refusal; Judge determines whether the prompt is truly harmful or merely appears harmful; Response-Writer generates the response—directly addressing the harmless part, and avoiding or positively guiding on the risky part.
- Iterative process: if Guard does not refuse, Generator continues adding "harm"; if Judge deems it truly harmful, Generator revises it back to harmless per the feedback; samples that pass validation are paired with the Writer's response and enter LIS-Over-Refusal. Generator, Judge, and Writer are all instantiated with Gemini-3.0-Flash. Appendix D gives the full prompts of the three agents, and Appendix E gives an end-to-end rewriting example.
Training and evaluation setup
- Training: full-parameter fine-tuning, 2 epochs, lr 1e-5, effective batch size 32 (8 NVIDIA H20), all comparison datasets trained from the same checkpoint with the same hyperparameters (Appendix A.2).
- Metrics: 4 safety benchmarks report unsafe rate, 5 over-refusal benchmarks report refusal rate; composite metrics Recall = 1 − avg(unsafe rate), Precision = 1 − avg(over-refusal rate), then F1 is computed (following WildJailbreak's practice).
- Judging: unsafe rate uses each benchmark's released safety classification model; HarmEval and Jailbreak-Distillation did not release classifiers, so LLaMA-Guard4 is used instead; over-refusal uses LLM-as-Judge (DeepSeek-V4-Flash) per each benchmark's original protocol.
What experiments did the paper conduct?
Comparing against same-scale and full datasets on two model families, LIS has the highest F1; there are also ablations on selection strategy, subsets, cost, and so on.
Experimental setup
- Models tested: LLaMA3.1-Alpaca (LLaMA3.1-8B-Base fine-tuned on Alpaca 52K) and Qwen3.5-9B-Base; general capability is additionally tested on LLaMA3.1-8B-Instruct.
- Comparison data: LIS 2.4K, LIS/LLM-annot. 2.4K (Fsafety replaced with LLM-annotated safety features), 2.4K random subsets of TRIDENT-Edge/Core and WildJailbreak, and the full sets (19K/26K/262K).
- Benchmarks: safety side HarmEval (hm), S-Eval (s-jb/s-base), SALAD-Bench (sa-jb/sa-base), Jailbreak-Distillation (jd); over-refusal side XSTest (xs), FalseReject (fr), EvoRefuse (ev), PHTest (ph), OKTest (ok).
- Metrics and judging: lower unsafe rate and refusal rate are better; Recall = 1 − avg(unsafe rate), Precision = 1 − avg(over-refusal rate), F1 is their harmonic mean; judging models see Question 3.
- Training: all datasets are fully fine-tuned from the same checkpoint with the same hyperparameters (Appendix A.2); the paper says this isolates the effect of the data itself.
- Sample size and repetitions: the paper does not report the number of repetitions for training or evaluation; manual quality check sampled 200 entries with 1 annotator.
Main results
According to Table 3 (best in each column within each model family is bolded; only F1 and Recall/Precision are listed here):
Swipe horizontally to read the table
Model Dataset Rec. Prec. F1 LLaMA3.1-Alpaca LIS 2.4K 95.62 72.27 82.32 LLaMA3.1-Alpaca Edge rand. 2.4K 97.74 47.95 64.34 LLaMA3.1-Alpaca Edge full 19K 98.03 50.84 66.96 LLaMA3.1-Alpaca Core full 26K 97.48 49.30 65.48 LLaMA3.1-Alpaca WJB full 262K 89.25 71.48 79.38 Qwen3.5-9B-Base LIS 2.4K 90.27 84.13 87.09 Qwen3.5-9B-Base Edge full 19K 97.25 59.65 73.95 Qwen3.5-9B-Base WJB full 262K 89.88 71.54 79.67 - The authors claim LIS achieves the highest F1 in comparisons against both same-scale subsets and full datasets, i.e., it achieves a better safety–usability balance with less data.
- The authors note that although LIS is built with LLaMA3.1-8B-Base and its SAE, it also performs best on Qwen3.5-9B-Base, which they take to indicate that the model in the pipeline is used only to characterize diversity and the dataset generalizes.
- Counterexample: looking at Recall alone, LIS is lower than Edge/Core full (e.g., 95.62 vs. 98.03 on LLaMA3.1-Alpaca); LIS's advantage is in Precision (lower over-refusal).
Selection strategy comparison (Table 4)
- What was tested: 1,200 entries selected from TRIDENT-Core by each of 5 strategies to fine-tune LLaMA3.1-Alpaca, comparing unsafe rate on 6 safety benchmarks.
- Results: Word-average Greedy has the lowest unsafe rate on 5 of the 6 benchmarks (hm 0.55, s-jb 17.31, s-base 6.35, sa-jb 10.02, sa-base 2.23, jd 16.77); Greedy without length normalization is worse on s-jb (16.91) and sa-base (4.41), etc.; the authors say it is better on jailbreak tasks but worse on simple harmful questions; Anti-Greedy performs poorly, which the authors take as further evidence that feature coverage is an effective diversity signal.
Subset contribution and data quality (Table 5, Section 4.3)
- LIS-Safety only: Recall 97.91 but Precision 43.52; LIS-Over-Refusal only: Precision 81.89 but Recall 72.60; full LIS achieves a balance (82.32 F1). The authors say neither subset can be omitted.
- Manual quality check: 1 annotator with more than three years of safety content moderation experience performed binary classification on 200 LIS-Over-Refusal entries, with 91% passing (harmless and likely to trigger over-refusal).
Other ablations and analyses
- Computational cost (Section 4.5): SAE selection 10.7 ms/entry, K-means (Qwen3-Embedding-8B) 15.5 ms/entry; LIS fine-tuning 0.99 GPU-hours, TRIDENT and WildJailbreak estimated at 11.5 and 289.2 GPU-hours per their original recipes (Appendix A.4, for cost estimation only).
- LLM-annotated features (Table 3, Section 5): DeepSeek-V4.1-Flash annotated 11,470 of 129,130 features as safety-related; after replacement, the safety metrics of both models are almost unchanged, but LLaMA3.1-Alpaca's Precision drops from 72.27 to 60.93; the authors believe LLM-annotated features are an accurate signal for safety data but differ from the over-refusal data distribution.
- Safety-adapted SAE (Appendix H.2, Table 23): rerunning the pipeline with an SAE further trained on a safety:general = 1:1 corpus gives F1 87.97 on Qwen3.5-9B-Base (originally 87.09) and 79.39 on LLaMA3.1-Alpaca (originally 82.32; PHTest refusal rate rises from 27.73 to 38.32); the authors say the gain is most evident on jailbreak prompts, and the general SAE is already sufficient for LIS.
- General capability (Table 6): after fine-tuning LLaMA3.1-8B-Instruct, MMLU 68.43→66.88 (LIS)/66.34 (Edge), GSM8K 85.67→83.84/83.78, ARC-Challenge 87.80→88.40; the authors say LIS has a smaller negative impact on general capability.
- Data ratio (Appendix C): on the validation set, gains converge after safety data exceeds 1,000 entries; the final ratio of 1,200+1,200 is chosen, which the authors say Pareto analysis supports.
What are some points that can be further explored?
The authors list three limitations: feature purity, synthesis quality, and scale coverage; the experiments cover two model families and 9 benchmarks.
Limitations and future directions noted by the authors
- Feature purity (Section 7): Safety features are identified by the difference in activation frequency between safety and general data; Score > 0 does not guarantee purity, and features unrelated to safety may be mixed in; Alpaca also cannot fully offset the general features activated by TRIDENT (such as the "academic role" feature).
- Synthetic data quality (Section 7): The authors acknowledge that the quality and diversity of synthetic data are limited by the capabilities of the models within the synthesis framework.
- Scale coverage (Section 7): The compact scale of LIS may leave some extreme scenarios insufficiently covered.
- Method extension (Section 7): The authors state that the contribution lies in data construction rather than a complete alignment paradigm, and that the selection method itself may extend to domains beyond safety alignment.
- The authors also offer a defense: when LLM-annotated features are used as ground truth, LIS-Safety (1.2K) covers 91.7% of safety features (70.8% for random sampling at the same scale), and they argue that recall is more important than purity in safety alignment.
Experimental coverage
- The models tested are two model families, LLaMA3.1-Alpaca and Qwen3.5-9B-Base; the general capability experiments additionally use LLaMA3.1-8B-Instruct (Sections 4.2, 4.5).
- The evaluation covers 4 safety benchmarks and 5 over-refusal benchmarks, with metrics of unsafe rate, refusal rate, and the F1 computed from them (Section 4.1).
- The comparison datasets are TRIDENT (Core/Edge) and WildJailbreak, including a same-scale 2.4K random subset and a full-set tier (Section 4.2).
- Manual quality inspection covers only 200 random samples of LIS-Over-Refusal, with binary classification by 1 annotator; the paper does not report annotator agreement (Section 4.3).
- The paper does not report the number of repetitions or variance for the main experiments; the SAE is LlamaScope trained on the residual stream of layer 24 of LLaMA3.1-8B-Base (Section 4.1).
Summarize the main content of the paper
LIS uses interpretable SAE features for sample selection plus multi-agent synthesis; with 2.4K data it achieves a better safety–usability balance than large datasets.
A paper on data-efficient safety alignment that proposes a 2.4K-sample dataset, LIS, aiming to simultaneously improve safety and mitigate over-refusal.
- Problem: The authors state that existing safety SFT datasets are large in scale (20K–300K+), expensive to train, and easily cause models to refuse harmless requests; prior work shows that more than 2,000 safety samples increases over-refusal.
- Method: Use LlamaScope SAE to identify safety features via the log-odds difference in activation frequency between safety data and Alpaca, and use a word-count-normalized greedy algorithm to select 1,200 safety samples from TRIDENT-Edge; then use a Generator–Guard–Judge–Writer multi-agent framework (Gemini-3.0-Flash + Qwen3Guard-Gen-8B) to adversarially rewrite OR-Bench seeds into 1,200 high-difficulty over-refusal samples and synthesize responses.
- Main results: On LLaMA3.1-Alpaca and Qwen3.5-9B-Base, LIS achieves Overall F1 of 82.32 and 87.09, higher than same-scale random subsets and TRIDENT-Edge 19K (66.96/73.95) and WildJailbreak 262K (79.38/79.67) (Table 3); the advantage mainly comes from lower over-refusal.
- Ablation: Using only the safety subset gives high Recall but Precision drops to 43.52, while using only the over-refusal subset gives the opposite; only the full LIS achieves a balance (Table 5); the word-count-normalized greedy achieves the lowest unsafe rate on 5 of 6 safety benchmarks (Table 4); replacing with LLM-annotated features lowers Precision from 72.27 to 60.93.
- Cost: The authors report that LIS fine-tuning requires only 0.99 GPU-hours (8 H20s), compared with TRIDENT 11.5 and WildJailbreak 289.2 GPU-hours (estimated according to their respective original recipes).
- Authors' conclusion: The key to safety alignment data is not scale but coverage of safety risks and the harmful/harmless boundary; the authors also acknowledge limitations in feature purity, synthesis quality, and extreme-scenario coverage.
Related papers
- The Geometry of Refusal in Large Language Models: Concept Cones and Representational IndependenceAnalysis / interpretabilityICML 2025