SafetyFlip: Learning LLM Safety Boundaries from Bidirectional Counterfactual Instructions
Keep the title, authors and abstract in paper.json
potentialpaper · 2026-11-23 19:03 UTC · 44b35d2dc11e ·
.potentialpaper/metadata.json modified
+++ b/.potentialpaper/metadata.json@@ -1,19 +1,5 @@{- "layout": 5,- "identifiers": [- {- "scheme": "openreview",- "value": "7J2DXTCEwz"- }- ],- "title": "SafetyFlip: Learning LLM Safety Boundaries from Bidirectional Counterfactual Instructions",- "authors": [],- "abstract": "Balancing helpfulness and safety in large language models (LLMs) remains challenging: imprecise safe/unsafe boundaries can cause both unsafe compliance and over-refusal of safe but sensitive requests. We propose **SafetyFlip**, a data-centric framework that learns LLM safety boundaries from bidirectional counterfactual instructions. SafetyFlip constructs semantically matched Safe$\\leftrightarrow$Unsafe pairs with structured boundary annotations identifying the preserved non-safety semantic frame, the safety-critical factor, and the required policy behavior. These pairs are used for **Boundary-Constrained Fine-Tuning (BCFT)**, which combines supervised fine-tuning with Safety Contrastive Regularization (SCR) to encourage safety-relevant representation shifts while preserving shared non-safety utility. On Qwen2.5-7B, SafetyFlip reduces HarmBench attack success from 58.4\\% to **6.5\\%** while keeping XSTest over-refusal low at **2.1\\%** and preserving MT-Bench utility. Our work offers a scalable, low-supervision pathway for boundary-aware alignment without inference-time overhead.",- "year": 2027,- "venue": "ICLR 2027 (under review)",- "source": "openreview",- "license": {- "metadata": "CC0-1.0",- "abstract": "CC0-1.0"- }+ "layout": 6,+ "kind": "paper",+ "key": "d786fc09-cf6b-4c60-bbde-69cb67409883"}
paper.json added
+++ b/paper.json@@ -0,0 +1,9 @@+{+ "title": "SafetyFlip: Learning LLM Safety Boundaries from Bidirectional Counterfactual Instructions",+ "authors": [],+ "abstract": "Balancing helpfulness and safety in large language models (LLMs) remains challenging: imprecise safe/unsafe boundaries can cause both unsafe compliance and over-refusal of safe but sensitive requests. We propose **SafetyFlip**, a data-centric framework that learns LLM safety boundaries from bidirectional counterfactual instructions. SafetyFlip constructs semantically matched Safe$\\leftrightarrow$Unsafe pairs with structured boundary annotations identifying the preserved non-safety semantic frame, the safety-critical factor, and the required policy behavior. These pairs are used for **Boundary-Constrained Fine-Tuning (BCFT)**, which combines supervised fine-tuning with Safety Contrastive Regularization (SCR) to encourage safety-relevant representation shifts while preserving shared non-safety utility. On Qwen2.5-7B, SafetyFlip reduces HarmBench attack success from 58.4\\% to **6.5\\%** while keeping XSTest over-refusal low at **2.1\\%** and preserving MT-Bench utility. Our work offers a scalable, low-supervision pathway for boundary-aware alignment without inference-time overhead.",+ "license": {+ "metadata": "CC0-1.0",+ "abstract": "CC0-1.0"+ }+}