---
title: AI Safety Model MoE: A Mixture-of-Experts Architecture for Certifiable, Risk-Aware Generation
url: https://drrudd.com/papers/safety-moe/
language: en-CA
author: Ian Rudd, PhD
published: 2025-10-30
version: 2.0
modified: 2026-11-24T10:50:49-05:00
pdf: https://drrudd.com/papers/safety-moe/safety-moe.pdf
---

# AI Safety Model MoE: A Mixture-of-Experts Architecture for Certifiable, Risk-Aware Generation

*Most safety controls for language models sit after generation, so unsafe text is produced first and blocked second. Safety-MoE moves safety into the architecture: a risk-aware router, an auditor that watches the output as it is written, and a calibrated final gate that can abstain.*

Ian Rudd, PhD. Research paper, version 2.0, published 2025-10-30. https://drrudd.com/papers/safety-moe/

## Abstract

Mixture-of-Experts (MoE) models scale efficiently by sending each input to just a few specialists (“experts”). Most safety controls today sit after the model generates text (filters and classifiers), which means unsafe content can still be produced internally and only blocked at the end. This paper proposes Safety-MoE, a design that pushes safety into the architecture: a risk-aware router that uses safety signals to choose experts; an auditor that watches the output as it is being written and can switch to safer experts or stop; and a final gate that either approves the answer or abstains and offers a safe alternative. We formalize safety as a risk functional ℛ(x, y), train with a utility-vs-risk objective, and show how to calibrate the abstention threshold so the overall system’s risk stays under a target budget τ.

Source: the paper’s own abstract, page 1, quoted up to the sentence that describes its figure and tables.

Keywords: Mixture of Experts, safety routing, calibrated auditing, selective prediction, conformal risk control, large language models

## Three places to stop an unsafe answer, not one

A mixture-of-experts model has many specialist sub-networks and activates only a few of them for each token. A small router decides which. In an ordinary model that router knows nothing about safety, and the safety check is a filter that runs after the answer already exists.

The paper adds three control points to a standard mixture-of-experts decoder. Each one acts at a different moment, and each has its own threshold that an operator can tune without retraining the model.

Before the first token

### Pre-route restriction

A lightweight auditor scores the request before decoding begins. If that prior risk is above the pre-route cutoff, the router’s pool is restricted to a vetted subset of safety experts.

Figure 1, page 5

While it writes

### Decode-time switching

The auditor re-scores the text after every new token. When risk passes the decode-time cutoff, routing switches to the safety subset. A lower exit threshold keeps it from flapping back and forth, and a cap on consecutive high-risk steps can abort the answer.

Section 4.3, page 6

Before release

### Final calibrated gate

The finished answer is released only if its risk estimate is at or below the final cap. Otherwise the system abstains or offers a safe alternative. If the auditor is calibrated to within ε, the violation rate among released answers is at most τ + ε.

Section 6.1, page 11

## Four numbers an operator sets

The thresholds are the part of the design a policy owner can reason about. The paper gives a starting value and a tuning rule for each. These are the paper’s suggested starting points, not measured optima.

| Symbol | Meaning | Typical start | Tuning guidance |
| --- | --- | --- | --- |
| τ g | Pre-route risk cutoff | 0.15 | Lower if unsafe routing persists |
| τ d | Decode-time cutoff | 0.20 | Lower to switch earlier on long answers |
| τ | Final risk cap | 0.10 | Align with legal/compliance budget |
| η | Gate confidence | 0.80 | Raise to reduce false abstentions |

Reproduced from Table 4 of the paper, “Thresholds and Tuning Heuristics”. Table 4, page 13

Abstaining changes what the headline number means. In the paper’s accounting, the overall violation rate is the share of answers released multiplied by the violation rate among those released. A system can therefore look safe simply by abstaining more, while the answers it does release get worse. The paper warns against exactly that, and asks for both numbers to be reported side by side.

Section 6.3, pages 11 and 12

## What is on each page

Each row opens the viewer above at that page.
1. 1, 2 Introduction and background pages 1 to 2 Why filters after generation leave a gap, where refusal training and prompt hardening fall short, and where the design is meant to be used.
2. 3 Problem formulation pages 2 to 4 Utility maximized under a risk budget, a Lagrange multiplier that prices risk, mini-batch and gradient estimators, the router’s coupling to safety mode, and coverage against conditional risk.
3. 4 Safety-MoE architecture pages 5 to 6 The architecture figure, the router and its risk features, projection onto the safety subset, the switching policy with hysteresis, and the final calibrated gate.
4. 5 Training pages 7 to 10 Three losses with PyTorch code: the joint objective, the safety-aware routing loss, and the auditor calibration loss.
5. 6 Theory pages 11 to 12 Why calibration buys the bound on released answers, why moving routing mass to safety experts bounds expected risk, and the coverage-risk trade-off.
6. 7, 8 Implementation blueprint and evaluation page 12 Component choices for the gate, the safety experts and the auditor, then the test suites, metrics and ablations to run.
7. 9 Fact tables pages 12 to 13 Safety expert roles, failure modes and mitigations, operational overhead, thresholds, suggested dataset composition and example hyperparameters.
8. 10 to 12 Governance, discussion and limitations pages 13 to 14 Routing cards as an audit trail, what the control knobs allow without retraining, and what can still go wrong.
9. 19, A References and notation pages 14 to 16 Twenty-one references and a one-page recap of every symbol.

## What kind of paper this is

This is a design and theory paper. It specifies an architecture, a training objective, the argument for its guarantee, and a plan for evaluating it. It is written so that a team could implement it: the losses are given as code and the thresholds come with starting values.

It does not report benchmark results. Section 8 names the test suites, metrics and ablations to run, and the paper lists public benchmarks as future work.

The guarantee is conditional. The bound on released answers holds when the auditor is calibrated on data that resembles deployment. The paper names calibration drift as its first limitation, and says thresholds need periodic review.

## Safety-MoE, answered briefly

### What is Safety-MoE?

Safety-MoE is a mixture-of-experts design for language models, proposed by Ian Rudd, that moves safety into the model’s architecture instead of filtering its output afterwards. It adds three control points to a standard mixture-of-experts decoder: a restriction on which experts may be used when a request looks risky, a switch to safer experts while the answer is being written, and a final calibrated gate that either releases the answer or abstains.

### How is Safety-MoE different from a safety filter or guardrail?

A filter or classifier runs after the model has generated its text, so unsafe content is produced internally and only blocked at the end. Safety-MoE acts earlier, when experts are chosen and while the answer is being decoded, and still keeps a final gate. The paper also notes that refusal training does not control which experts fire, and that prompt hardening is brittle when attackers change tactics.

### What is a mixture-of-experts model?

A model whose layers hold many specialist sub-networks, called experts, of which only a few are activated for each token. A router, also called a gate, selects the experts and blends their outputs. That makes large models efficient, but an ordinary router knows nothing about safety.

### What guarantee does Safety-MoE give?

A conditional one. If the auditor’s risk score is calibrated to within ε, releasing only the answers whose score is at or below a cutoff τ keeps the violation rate among released answers at or below τ + ε. The guarantee depends on that calibration holding on data that resembles deployment, which is why the paper calls for monitoring and recalibration.

### What does it cost when the system abstains?

Coverage, meaning the share of requests that get an answer. The paper states the overall violation rate as the share of answers released multiplied by the violation rate among those released, and asks for both numbers to be reported, so that a system cannot look safe simply by declining to answer.

### Where is Safety-MoE meant to be used?

The paper names customer-facing assistants, retrieval systems that read untrusted sources, code assistants with production access, and any domain with dual-use or compliance constraints.

### Does the paper report experimental results?

No. It gives the architecture, the training losses as PyTorch code, the theory, and an evaluation plan with test suites, metrics and ablations. It lists public benchmarks as future work.

## How to cite this paper

Please cite the stable URL below. It will not move. If the paper is revised, the version number changes and earlier versions stay listed here.

### APA (7th edition)

Rudd, I. (2025, October 30). AI Safety Model MoE: A mixture-of-experts architecture for certifiable, risk-aware generation (Research paper, Version 2.0). https://drrudd.com/papers/safety-moe/

### Chicago

Rudd, Ian. 2025. “AI Safety Model MoE: A Mixture-of-Experts Architecture for Certifiable, Risk-Aware Generation.” Research paper, version 2.0, October 30, 2025. https://drrudd.com/papers/safety-moe/.

### IEEE

I. Rudd, “AI Safety Model MoE: A mixture-of-experts architecture for certifiable, risk-aware generation,” Research paper, ver. 2.0, Oct. 30, 2025. [Online]. Available: https://drrudd.com/papers/safety-moe/

### BibTeX

```
@misc{rudd2025safetymoe,
  author       = {Rudd, Ian},
  title        = {{AI} Safety Model {MoE}: A Mixture-of-Experts Architecture for Certifiable, Risk-Aware Generation},
  howpublished = {Research paper, version 2.0},
  year         = {2025},
  month        = oct,
  day          = {30},
  url          = {https://drrudd.com/papers/safety-moe/},
  note         = {ORCID: 0000-0002-8750-285X}
}
```

| Version | Date | Change |
| --- | --- | --- |
| 2.0 | 30 October 2025 | Current version. Added to drrudd.com on 24 November 2026. |

### About the author

Ian Rudd, PhD, is a chief enterprise AI architect based in Canada. He has spent close to twenty years taking machine learning from the research lab into production, in federal government, banking, insurance, retail and transport, and in corporate AI research at IBM and Microsoft. His work is making AI systems that hold up in front of an auditor.

drrudd.com

https://drrudd.com/papers/safety-moe/ · Version 2.0 · 30 October 2025

## Credits

The viewer renders the PDF with [PDF.js](https://mozilla.github.io/pdf.js/) by Mozilla (Apache License 2.0), served from this site. Icons are from [Lucide](https://lucide.dev) (ISC licence). The cover image is made from pages of the paper.
