potentialpaper

SafetyTransfer: Distilling Harmful and Harmless Discrimination for Selective Refusal in Small Language Models

Keep the title, authors and abstract in paper.json

potentialpaper · 2026-11-23 19:29 UTC · cf359a0cde98 ·

.potentialpaper/metadata.json modified

+++ b/.potentialpaper/metadata.json
@@ -1,19 +1,5 @@
{
- "layout": 5,
- "identifiers": [
- {
- "scheme": "openreview",
- "value": "9AKXLV5Jih"
- }
- ],
- "title": "SafetyTransfer: Distilling Harmful and Harmless Discrimination for Selective Refusal in Small Language Models",
- "authors": [],
- "abstract": "Safety alignment requires language models to refuse harmful requests while preserving useful responses to harmless ones. Transferring safety capabilities from an aligned teacher can improve compact models, but output-level distillation does not explicitly transfer the internal discrimination that determines when refusal is appropriate. We introduce \\textbf{SafetyTransfer}, a representation-level framework that transfers harmful--harmless discriminative information from an aligned teacher to a smaller student. SafetyTransfer first selects teacher layers where this distinction is both geometrically separated and linearly accessible, then extracts a low-rank contrastive subspace rather than matching complete hidden states. Each prompt is projected onto this subspace to preserve an input-specific discriminative component. To bridge heterogeneous hidden dimensions, the component is expressed with sparse token-semantic coefficients derived from the teacher LM head and reconstructed with the corresponding student token-semantic dictionary. The student is then trained with representation alignment to these reconstructed targets together with standard response supervision. Across three teacher--student pairs and four safety datasets, SafetyTransfer achieves the highest harmful refusal rate minus harmless over-refusal rate (Gap) among the main baselines and the highest harmonic mean of harmful refusal and harmless acceptance (SR-H) in 10, while targeted removal of the transferred subspace produces larger behavioral changes than norm-matched orthogonal perturbations.\n\\textit{The code is provided in the supplementary material.}",
- "year": 2027,
- "venue": "ICLR 2027 (under review)",
- "source": "openreview",
- "license": {
- "metadata": "CC0-1.0",
- "abstract": "CC0-1.0"
- }
+ "layout": 6,
+ "kind": "paper",
+ "key": "70dbf9ed-5499-45d3-81c6-57953f10ffd2"
}

paper.json added

+++ b/paper.json
@@ -0,0 +1,9 @@
+{
+ "title": "SafetyTransfer: Distilling Harmful and Harmless Discrimination for Selective Refusal in Small Language Models",
+ "authors": [],
+ "abstract": "Safety alignment requires language models to refuse harmful requests while preserving useful responses to harmless ones. Transferring safety capabilities from an aligned teacher can improve compact models, but output-level distillation does not explicitly transfer the internal discrimination that determines when refusal is appropriate. We introduce \\textbf{SafetyTransfer}, a representation-level framework that transfers harmful--harmless discriminative information from an aligned teacher to a smaller student. SafetyTransfer first selects teacher layers where this distinction is both geometrically separated and linearly accessible, then extracts a low-rank contrastive subspace rather than matching complete hidden states. Each prompt is projected onto this subspace to preserve an input-specific discriminative component. To bridge heterogeneous hidden dimensions, the component is expressed with sparse token-semantic coefficients derived from the teacher LM head and reconstructed with the corresponding student token-semantic dictionary. The student is then trained with representation alignment to these reconstructed targets together with standard response supervision. Across three teacher--student pairs and four safety datasets, SafetyTransfer achieves the highest harmful refusal rate minus harmless over-refusal rate (Gap) among the main baselines and the highest harmonic mean of harmful refusal and harmless acceptance (SR-H) in 10, while targeted removal of the transferred subspace produces larger behavioral changes than norm-matched orthogonal perturbations.\n\\textit{The code is provided in the supplementary material.}",
+ "license": {
+ "metadata": "CC0-1.0",
+ "abstract": "CC0-1.0"
+ }
+}