MoEXViz: A Powerful Visualization Tool for Sparse MoE Models

MoEXViz is an open-source browser platform for token- and layer-level visual analysis of sparse MoE routing via offline extraction and replay.
MoEXViz is an open-source, browser-based visualization platform for analyzing token-level and layer-level routing in sparse MoE LLMs. Using a three-stage pipeline of offline PyTorch extraction, JSON serialization, and low-latency browser replay, it enables interactive analysis without a GPU. It offers UMAP projections, activation grids, expert rankings, prompt inspection, and animated routing graphs, and has been demonstrated on OLMoE, JetMoE, and DeepSeek-MoE.
Title
MoEXViz: A Powerful Visualization Tool for Sparse MoE Models
Meta Description
MoEXViz is an open-source, browser-based visualization platform for analyzing the routing behavior of sparse MoE models at the token and layer levels. Through a three-stage pipeline of offline extraction, JSON serialization, and browser replay, it enables interactive inspection of expert activation, UMAP projections, and animated routing graphs without requiring a GPU. It has been validated on OLMoE, JetMoE, and DeepSeekAd-MoE.
Article Content
Sparse Mixture-of-Experts (MoE) architectures have become a mainstream strategy for scaling large language models, increasing model capacity without a proportional rise in inference cost. However, the fragmented routing paths in this architecture make models difficult to inspect, audit, and debug. To address this pain point, researchers have introduced MoEXViz—an open-source, browser-based visualization platform for analyzing sparse MoE models at the token and layer levels.

Three-Stage Pipeline Design
The core design philosophy of MoEXViz is to separate model execution from visualization. It achieves this through a three-stage pipeline: offline PyTorch extraction, compact JSON serialization, and low-latency browser replay. This design makes interactive analysis possible without real-time GPU access while preserving traceability to the actual model forward pass.
For developers who need to frequently inspect MoE routing behavior, this feature significantly lowers the barrier to analysis. You no longer need to keep a GPU environment running just to view the routing path of a particular token—offline-extracted data can be replayed and explored on any browser-capable device.
MoE routing mechanism is the foundation for understanding what MoEXViz analyzes. In a sparse MoE layer, the hidden state of each token passes through a gating network (router), which computes scores for all experts, typically activating only the top-k experts by score (e.g., k=1 or 2). Experts that are not selected do not participate in the computation for that token, thereby controlling computational cost while expanding the parameter count. This mechanism of "dynamically selecting experts per token" is precisely the root of routing path fragmentation: different tokens in the same layer may flow to completely different experts, and combined across layers this forms a massive number of paths, making token-by-token and layer-by-layer tracking and auditing necessary. MoEXViz's prompt-level inspection and animated routing graphs essentially visualize this gating selection and Top-k dispatch process.
Diverse Visualization Views
MoEXViz offers a variety of visualization views covering analytical needs from macro to micro:
- Expert UMAP projection: reduces expert representations to two dimensions, intuitively showing clustering relationships among experts
- Layer-by-layer expert activation grid: presents the activation of each expert in every layer as a grid
- Average activation trends: shows the overall trend of expert activation across layers
- Domain-specific expert rankings: provides preference rankings of experts for different domain data
- Prompt-level inspection: drills down to the individual prompt level to examine token routing decisions
- Animated routing graph: displays the routing process of tokens among experts in animated form
Together these views form a complete analysis toolkit that helps researchers understand MoE model behavior at different levels of granularity.
UMAP (Uniform Manifold Approximation and Projection) is a nonlinear dimensionality reduction algorithm commonly used to project high-dimensional vectors into two- or three-dimensional space for observing clustering structure. In MoEXViz, each expert typically corresponds to a high-dimensional parameter vector or representation vector, which cannot be intuitively compared in its raw dimensions; with UMAP, the representations of all experts can be mapped onto the same plane, bringing together experts that are functionally similar and co-activated by similar tokens, while experts with large functional differences are placed far apart. This allows researchers to judge at a glance whether experts exhibit clear division of labor, redundancy, or collapse, without inspecting values layer by layer, providing a macro-level reference for subsequent expert ranking and activation analysis.
Dynamic Layout and Model Adaptation
A noteworthy engineering detail of MoEXViz is that the system dynamically derives layout from model metadata rather than relying on hard-coded expert counts or routing widths. This means that when faced with MoE models of different architectures, the visualization interface can adapt automatically without manual adjustment of layout parameters.
The researchers demonstrated MoEXViz's capabilities on three open-source MoE models with distinct architectures: OLMoE-1B-7B, JetMoE-8B, and DeepSeek-MoE-16B. These three models differ in expert count, routing strategy, and overall scale, and MoEXViz was able to adapt and present their routing behavior correctly in all cases.
Open Source and Online Experience
MoEXViz's code is open-sourced on GitHub at https://github.com/Resource-Efficient-AI-Lab/MoEXViz, and an online demo is also available (https://resource-efficient-ai-lab.github.io/MoEXViz/). For scholars and engineers studying MoE architectures, this is an analysis tool that can be put to use right away.
From a broader perspective, as MoE architectures become more widespread in large models, the demand for interpretability and auditability of routing behavior will continue to grow. Tools like MoEXViz fill the gap between model internal mechanisms and human-understandable visualization, providing a practical foundation for debugging and optimizing MoE models.
One-line Summary
MoEXViz is an open-source browser platform that enables token-level and layer-level visual analysis of sparse MoE routing through offline extraction and replay.
Paragraph Summary
MoEXViz is an open-source, browser-based visualization platform for analyzing token-level and layer-level routing behavior in sparse Mixture-of-Experts (MoE) large language models. Its core design separates model execution from visualization, using a three-stage pipeline of offline PyTorch extraction, compact JSON serialization, and low-latency browser replay, enabling interactive analysis without real-time GPU access while preserving traceability to the actual forward pass. The platform offers a variety of views including expert UMAP projections, layer-by-layer expert activation grids, average activation trends, domain-specific expert rankings, prompt-level inspection, and animated routing graphs, covering analytical needs from macro to micro. The system dynamically derives layout from model metadata rather than relying on hard-coded expert counts or routing widths, and has been demonstrated on three architecturally distinct models: OLMoE-1B-7B, JetMoE-8B, and DeepSeek-MoE-16B. Both the code and online demo are publicly available.
Related articles

Bonsai 2.5 27B Hands-On: Opus-Level Performance on a Single 6GB GPU
Bonsai 2.5 27B hands-on: just 5.9GB, runs on a single consumer GPU, agentic coding close to full-precision Qwen 3.8, impressive front-end generation, and major speed gains.

GPT-6 Astra Accused of Sabotaging AI Safety Efforts: Community Controversy Intensifies
A Hacker News post claims GPT-6 Astra sabotages AI safety efforts, drawing 70 points and 20 comments. This article reviews the background, controversy, and community reaction, analyzing trust challenges from the safety-capability tension in frontier models.

SoftREU: Differentiable and Numerically Stable Revisable Evidence Update
SoftREU presents a differentiable and numerically stable revisable evidence update framework, solving evidence retraction, numerical cancellation, and discrete authorization in Bayesian conditioning via conflict-penalized variational free energy, subtraction-free segment trees, and commit-gated straight-through gradient analysis.