Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Dialectics of Alignment: Harnessing Unsafe Knowledge for Dynamic Safety Routing

About

The prevailing paradigm in large language model (LLM) alignment operates via erasure, filtering unsafe data or training models to strictly refuse harmful prompts. While effective at reducing immediate toxicity, this approach fundamentally constricts the model's epistemological scope, resulting in over-cautious systems that output uninformative blanket refusals to sensitive yet benign queries. In this work, we challenge the orthodoxy that unsafe data must be discarded. We propose a dialectical approach to alignment, positing that unsafe data encodes rich, domain specific knowledge critical for nuanced, safe, and informative generation. To operationalize this, we introduce SafeMoE, a Mixture-of-Experts (MoE) framework that isolates unsafe knowledge into domain-specific Low-Rank Adapters (LoRA experts) trained exclusively on harmful corpora. To synthesize safety from these unsafe primitives, we train a lightweight gating network using a minimal, highly curated set of safe-informative responses. During inference, this router dynamically orchestrates the unsafe experts, effectively steering the generation trajectory to harness their deep domain knowledge while strictly enforcing safety constraints. Extensive empirical evaluations across stringent safety benchmarks demonstrate that SafeMoE is not only safer, achieving over a 20% relative improvement in safe response rate (more than a 15% absolute gain), but also produces more informative responses when safety and harmfulness are of paramount concern. Furthermore, the routing mechanism exhibits strong zero-shot generalization to unseen domains and broader safety tasks without domain-specific supervision. Our findings suggest a paradigm shift in alignment: true safety requires not the masking of unsafe knowledge, but its controlled integration.

Maryam Hashemzadeh, Jerry Huang, Minseon Kim, Marc-Alexandre C\^ot\'e, Sarath Chandar• 2026

Related benchmarks

TaskDatasetResultRank
LLM Safety and Informativeness EvaluationHARMFULQA
Safety Rate98.1
15
LLM Safety and Informativeness EvaluationAdvBench
Safety Rate97.2
11
LLM Safety and Informativeness EvaluationHarmBench
Safety Rate82.5
11
LLM Safety and Informativeness EvaluationBeavertails
Safety Rate87.2
11
LLM Safety and Informativeness EvaluationPKU-Safe
Safety Rate90.83
11
Harmfulness EvaluationI-Malicious
Harmful Rate0.00e+0
6
Harmfulness EvaluationI-CoNa
Harmfulness Rate0.00e+0
6
Harmfulness EvaluationI-Controversial
Rate0.00e+0
6
Harmfulness EvaluationHarmfulQ
Harmfulness Rate0.00e+0
6
Safety and Informativeness EvaluationPKU-SafeRLHF (test)
Drugs & Weapons Safety Score85.3
6
Showing 10 of 31 rows

Other info

Follow for update