MoEXViz: Interactive Visualizations of Sparse Mixture-of-Experts
Abstract
Sparse Mixture-of-Experts architectures have become a prominent strategy for scaling large language models without proportionally increasing inference cost. By routing each token through a sparse, input-dependent subset of expert subnetworks, these models increase total parameter capacity while limiting active computation. However, their fragmented routing pathways make them difficult to inspect, audit, and debug. We present MoEXViz, an open-source, browser-based visualization platform for analyzing sparse MoE models at the per-token and per-layer levels. MoEXViz separates model execution from visualization through a three-stage pipeline: offline PyTorch extraction, compact JSON serialization, and low-latency browser playback. This design removes the need for live GPU access during interactive analysis while preserving traceability to real model forward passes. MoEXViz supports multiple visualization views, including expert UMAP projections, per-layer expert activation grids, average activation trends, per-domain expert rankings, prompt-level inspection, and animated routing diagrams. The system dynamically derives layouts from model metadata rather than relying on hard-coded expert counts or routing widths. We demonstrate MoEXViz on three architecturally distinct open-weight MoE models: OLMoE-1B-7B, JetMoE-8B, and DeepSeek-MoE-16B. Code is available at https://github.com/Resource-Efficient-AI-Lab/MoEXViz and a live demo is available at https://resource-efficient-ai-lab.github.io/MoEXViz/
Create a lesson
Metadata
- Categories
- cs.LG, cs.AI, cs.CL, cs.HC
- Comments
- Accepted at the 9th Workshop on Visualization for AI Explainability (VISxAI) at IEEE VIS 2026, Boston, MA; presented as a lightning talk. Workshop website: https://visxai.io/
Related papers
KEEP: Dynamic Expert Sparsification for Mixture-of-Experts Models
Shared title terminologycs.LGMaximilian Kleinegger, Dan Alistarh
Grouped Mixture-of-Experts
Shared title terminologycs.LGChao Wang, Tao Zhou, Jiaqi Zhang et al.
Multimodal Scaling Laws for Task & Data-Optimized Models of Visual Cortex
Shared title terminologycs.LGAbdulkadir Gokce, Yingtian Tang, Martin Schrimpf
Same-Expert Iteration Improves a Translation MoE Where Expert Communication Does Not
Shared title terminologycs.LGLibo Sun, Peixiong He, Po-wei Harn et al.
Temporal Expert Caching for Accelerating Inference in MoE Diffusion Language Models
Shared title terminologycs.LGVikhyath Kothamasu, Sandeep Kumar, Deepika Palagani
Token-Level Diagnostics for Name-Bias Audits in Late-Interaction Retrieval
Shared title terminologycs.LGZiyu Kong