cs.CRFeb 22, 2026

Routing-Aware Explanations for Mixture of Experts Graph Models in Malware Detection

Authors: Hossein Shokouhinejad, Roozbeh Razavi-Far, Griffin Higgins, Ali. A Ghorbani

Organizations: 1*University of New Brunswick, Faculty of Computer Science, 3 Bailey Dr., Fredericton, E3B5A3, New Brunswick, Canada.

Abstract

Mixture-of-Experts (MoE) offers flexible graph reasoning by combining multiple views of a graph through a learned router. We investigate routing-aware explanations for MoE graph models in malware detection using control flow graphs (CFGs). Our architecture builds diversity at two levels. At the node level, each layer computes multiple neighborhood statistics and fuses them with an MLP, guided by a degree reweighting factor rho and a pooling choice lambda in {mean, std, max}, producing distinct node representations that capture complementary structural cues in CFGs. At the readout level, six experts, each tied to a specific (rho, lambda) view, output graph-level logits that the router weights into a final prediction. Post-hoc explanations are generated with edge-level attributions per expert and aggregated using the router gates so the rationale reflects both what each expert highlights and how strongly it is selected. Evaluated against single-expert GNN baselines such as GCN, GIN, and GAT on the same CFG dataset, the proposed MoE achieves strong detection accuracy while yielding stable, faithful attributions under sparsity-based perturbations. The results indicate that making the router explicit and combining multi-statistic node encoding with expert-level diversity can improve the transparency of MoE decisions for malware analysis.

Figures & tables

Explore similar work

CardsList
  1. Temporal Generalization and Explanation Stability of Control Flow Graph Neural Networks for Malware Detection

    Sep 21, 2026Md. Asif Sajeed, Md. Nazrul Islam Mondal, Md Ashraful Hossen AkashGraph Neural NetworksDistribution Shift

  2. RouterInterp: Understanding Superposed Specialisation in Mixture of Experts Routing

    Oct 8, 2026Ilya Lasy, Nora Yinuo Cai, Kola AyonrindeMixture of ExpertsExpert Routing

  3. Geometric Routing Enables Causal Expert Control in Mixture of Experts

    Apr 15, 2026Ivan Ternovtsii, Yurii BilakMixture of ExpertsMixture-of-Experts Models