Ascend Ready

Huawei Ascend 910B Support

SMoE can be deployed on Huawei Ascend platforms via CANN. The core idea remains unchanged: keep hot experts in device memory, maximize reuse (hits + soft hits), and overlap compute with asynchronous transfers to minimize end-to-end latency.

This work was partially supported by Nanjing Kunpeng&Ascend Center of Cultivation
Ascend 910B (Da Vinci) High-throughput AI accelerator designed for large-scale training and inference.
HBM capacity & bandwidth Large HBM enables a bigger expert cache residency and fewer transfers.
CANN runtime Stream-based scheduling + async memcpy primitives to overlap compute and transfers.
Edge MoE inference · Substitution + Scheduling · CPU–GPU Pipeline

Accelerating MoE on the Edge
via Importance-Aware Expert Scheduling

On memory-constrained edge GPUs, we adopt an importance-aware policy to prioritize critical experts and substitute low-importance activated experts with functionally similar experts already cached in GPU memory, reducing PCIe transfers and CPU computation to significantly improve decoding latency (TPOT).

Motivation

Why edge MoE is hard: PCIe transfer dominates the latency.

The "Memory Wall" Bottleneck

On edge devices (e.g., NVIDIA A6000), fetching experts from CPU memory via PCIe is orders of magnitude slower than computing them on GPU. As shown in the figure, the PCIe transfer time (orange) often exceeds the actual GPU computation time (blue) by a large margin. To achieve real-time inference (low TPOT), optimizing compute is not enough—we must minimize these expensive transfers.

Bottleneck Analysis
The Bottleneck PCIe transfer vs. GPU compute time.

Method

SMoE: Importance-Aware Scheduling with Substitution.

1. Router

Expert-Cache Router

Distinguish critical vs. non-critical experts based on gating scores. Prioritize VRAM for critical ones.

2. Strategy

Similarity-based Substitution

If a non-critical expert is missing, don't fetch it. Substitute it with a functionally similar cached expert.

3. System

CPU–GPU Pipeline

Overlap the computation of cached experts with the prefetching of missing critical experts.

Framework Overview
Framework Overview Substitution-aware scheduler: replace low-score experts, prefetch top-score ones.
Execution Pipeline
Execution Pipeline Overlapping GPU compute, CPU offloading, and PCIe transfers.

Key Findings

How far can we reduce latency without hurting accuracy?

01. Does substitution significantly reduce decoding latency?

Yes, by nearly half. By substituting non-critical experts instead of loading them, SMoE avoids a massive amount of PCIe traffic. Compared to state-of-the-art offloading baselines, our method achieves up to a 48% reduction in TPOT (Time Per Output Token).

Main Result
Decoding Latency (TPOT) Comparison across 5 workloads showing consistent speedups over baselines like MoE-Infinity and ProMoE.

02. Why does the speedup happen?

Because PCIe overhead is cut drastically. As shown below, TPOT is strongly correlated with PCIe time. By maintaining a high cache hit rate (>60%) through substitution, we ensure that most activated experts are already on the GPU.

PCIe time directly translates to TPOT

In edge settings, expert offloading is dominated by PCIe transfer. This plot shows a strong correlation between PCIe time and TPOT, explaining why reducing transfers yields immediate decoding speedups.

PCIe vs TPOT
PCIe vs. TPOT Lower PCIe time consistently maps to lower TPOT.

High cache hit rate keeps execution on GPU

SMoE maximizes the reuse ratio of GPU-cached experts. With substitution, many low-importance activations become “soft hits”, so the GPU can execute most experts without waiting for CPU→GPU transfers.

Cache hit rate
Cache Hit Rate Sustained high reuse ratio across settings.

Substitution reduces the number of experts that must be loaded

The key is selectivity: only a few activated experts are truly critical (high-score). Low-score activated experts can be substituted by functionally similar experts already in VRAM, so fewer experts need fetching and prefetching becomes lighter.

Reduced load
Reduced Load Fewer experts need fetching from CPU memory.

03. Which component contributes the most?

Substitution is the key driver. The ablation study below shows that while the pipeline and prefetching help, the substitution mechanism (orange bar segments) provides the most significant reduction in latency.

Ablation Study
Component Ablation Breakdown of latency savings by component.

04. Is CPU compute a viable fallback at low batch?

Usually not. In low-batch edge serving, CPU compute can be significantly slower than GPU execution, and the system often becomes dominated by memory movement and CPU-side compute stalls. This motivates keeping as much execution on GPU as possible.

GPU vs. CPU under low-batch serving

This comparison highlights the gap between GPU (A6000) and CPU (8-core) at low batch. SMoE’s goal is to avoid CPU-side expert execution whenever possible by increasing GPU-resident “hits” (hard hits + soft hits).

GPU vs CPU at low batch
GPU vs. CPU at Low Batch CPU execution is often a poor fallback for interactive edge workloads.

05. Does SMoE help beyond decoding (prefill)?

Yes. While TPOT is the core metric for interactive decoding, prefill time also matters for end-to-end latency. We observe consistent prefill-time improvements under the same memory and offloading constraints.

Prefill time reduction

Prefill is typically more parallel than decoding, but it still suffers from expert movement and cache misses when VRAM is constrained. SMoE reduces the loading pressure so prefill can finish faster on average.

Prefill time
Prefill Time Average prefill time across baselines and SMoE.

06. Does prefetching compromise accuracy?

It can be controlled. We evaluate the quality impact of prefetching policies. Combined with importance-aware selection and substitution, the system is designed to keep quality near-lossless while accelerating inference.

Quality under prefetching

Prefetching reduces stalls but risks loading the “wrong” experts when routing changes. Measuring accuracy under prefetching helps validate that the scheduling policy stays aligned with the model’s true expert usage.

Prefetching accuracy
Prefetching Accuracy Accuracy impact of prefetching policies.