Ian Rudd, PhD

Papers Research paper AI safety Version 2.0

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.

Read the paper

The paper is the PDF. This viewer shows the original file, unaltered. Text can be selected, searched and copied.

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

1 The idea

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.

  1. 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
  2. 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
  3. 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

2 The controls

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.

SymbolMeaningTypical startTuning guidance
τgPre-route risk cutoff0.15Lower if unsafe routing persists
τdDecode-time cutoff0.20Lower to switch earlier on long answers
τFinal risk cap0.10Align with legal/compliance budget
ηGate confidence0.80Raise 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

3 Reader’s guide

What is on each page

Each row opens the viewer above at that page.

  1. 1, 2Introduction and backgroundpages 1 to 2Why filters after generation leave a gap, where refusal training and prompt hardening fall short, and where the design is meant to be used.
  2. 3Problem formulationpages 2 to 4Utility 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. 4Safety-MoE architecturepages 5 to 6The architecture figure, the router and its risk features, projection onto the safety subset, the switching policy with hysteresis, and the final calibrated gate.
  4. 5Trainingpages 7 to 10Three losses with PyTorch code: the joint objective, the safety-aware routing loss, and the auditor calibration loss.
  5. 6Theorypages 11 to 12Why 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, 8Implementation blueprint and evaluationpage 12Component choices for the gate, the safety experts and the auditor, then the test suites, metrics and ablations to run.
  7. 9Fact tablespages 12 to 13Safety expert roles, failure modes and mitigations, operational overhead, thresholds, suggested dataset composition and example hyperparameters.
  8. 10 to 12Governance, discussion and limitationspages 13 to 14Routing cards as an audit trail, what the control knobs allow without retraining, and what can still go wrong.
  9. 19, AReferences and notationpages 14 to 16Twenty-one references and a one-page recap of every symbol.

4 Scope

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.

5 In brief

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.

6 Citation

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}
}
VersionDateChange
2.030 October 2025Current version. Added to drrudd.com on 24 November 2026.
Ian Rudd

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.

Keep going

The rest of drrudd.com, one click away

Credits

The viewer renders the PDF with PDF.js by Mozilla (Apache License 2.0), served from this site. Icons are from Lucide (ISC licence). The cover image is made from pages of the paper.