NeurIPS 2026QuestionsPapersAreasAboutMarkdown

Dialectics of Alignment: Harnessing Unsafe Knowledge for Dynamic Safety Routing

Maryam Hashemzadeh, Jerry Huang, Minseon Kim, Marc-Alexandre Côté, Sarath Chandar

NeurIPS page · Open on the map

Category: AI Safety, Security & Alignment › LLM Safety Alignment · Type: new method · Keywords: LLM alignment, safety, Mixture-of-Experts, low-rank adapters, routing, zero-shot generalization

Areas: Safety & Security › Safe Alignment › Safety Alignment Methods

Summary

SafeMoE is a Mixture-of-Experts framework that isolates unsafe knowledge into domain-specific Low-Rank Adapter experts and uses a lightweight router trained on a small set of safe responses to dynamically combine them, yielding safer and more informative LLM outputs.

Explained to a 5-year-old

We want computers to answer tricky questions safely. Instead of just saying "I can't help," they can learn from bad examples but keep them under control. Bad examples are split into tiny helpers, each knowing a little about a specific topic. A small boss decides which helpers to ask, letting them share information only if it is safe. The computer then puts the safe answers together to give a helpful reply.

Explained to a 5-year-old, longer

Imagine a chatbot that tries to answer questions about sensitive topics like health or safety. Usually, people tell the chatbot to ignore any bad or dangerous information, so it just says "I can't help." This makes the chatbot very safe but also not very helpful. The researchers think that even bad information can contain useful knowledge, like a secret recipe that is also a bit dangerous. They want to keep that knowledge but use it carefully. They split the bad knowledge into small pieces, each piece stored in its own tiny helper. Each helper knows a little about a specific topic, like medical advice or legal questions. They also create a small boss that looks at the question and decides which helpers to ask. The boss only lets the helpers share information if it is safe. When the chatbot gets a question, it asks the right helpers and puts their answers together, making a safe and informative reply. This way, the chatbot can give useful answers while staying safe. The system works even on new topics it hasn't seen before, because the boss can pick the right helpers automatically. This new idea changes how we think about making AI safe: instead of hiding bad knowledge, we can control it and use it wisely.

For a technical reader

SafeMoE uses a mixture-of-experts architecture where unsafe knowledge is stored in domain-specific low-rank adapters. A lightweight gating network, trained on a small curated set of safe responses, selects which adapters to activate during inference. The router dynamically combines the adapter outputs, ensuring safety while preserving informative content. This design enables zero-shot generalization to new domains without additional supervision.

Problem

Current LLM alignment discards unsafe data, causing models to be overly cautious and refuse even benign sensitive queries, which limits their ability to provide informative answers while staying safe.

Method

The approach isolates unsafe knowledge into domain-specific low-rank adapters trained on harmful corpora, trains a lightweight gating network on a minimal curated set of safe responses, and uses this router to dynamically combine the adapters during inference to produce safe yet informative outputs.

Results

The approach achieves over a 20% relative improvement in safe response rate (more than a 15% absolute gain) and yields more informative responses on safety benchmarks, with strong zero-shot generalization to unseen domains.

Contributions

It introduces a dialectical alignment paradigm that retains unsafe knowledge in specialized adapters, a lightweight router for safe synthesis, and demonstrates significant safety and informativeness gains with zero-shot generalization.

Practical relevance

This enables safer and more informative AI assistants for sensitive domains while maintaining strict safety constraints.

Research questions this paper is counted under

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction