Steering MoE LLMs via Expert (De)Activation

Mohsen Fayyaz, Ali Modarressi, Hanieh Deilamsalehy, Franck Dernoncourt, Ryan Rossi +3 more
9/11/2025
cs.CLcs.LG

Official code: adobe-research/SteerMoE (39 stars, last commit 2025-09-12).

Abstract

Mixture-of-Experts (MoE) in Large Language Models (LLMs) routes each token through a subset of specialized Feed-Forward Networks (FFN), known as experts. We present SteerMoE, a framework for steering MoE models by detecting and controlling behavior-linked experts. Our detection method identifies experts with distinct activation patterns across paired inputs exhibiting contrasting behaviors. By selectively (de)activating such experts during inference, we control behaviors like faithfulness and safety without retraining or modifying weights. Across 11 benchmarks and 6 LLMs, our steering raises safety by up to +20% and faithfulness by +27%. In adversarial attack mode, it drops safety by -41% alone, and -100% when combined with existing jailbreak methods, bypassing all safety guardrails and exposing a new dimension of alignment faking hidden within experts.

View on arXivView PDF

Code Implementations(1)

A framework for steering MoE models by detecting and controlling behavior-linked experts.

397Python, Jupyter NotebookSep 5, 20251 years agoNOASSERTION

Cite this paper

@article{fayyaz2025steering,
  title  = {Steering MoE LLMs via Expert (De)Activation},
  author = {Mohsen Fayyaz and Ali Modarressi and Hanieh Deilamsalehy and Franck Dernoncourt and Ryan Rossi and Trung Bui and Hinrich Schütze and Nanyun Peng},
  year   = {2025},
  eprint = {2509.09660},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2509.09660v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2509.09660.svg)](https://codeofpaper.com/paper/2509.09660)

Discussion