DALI: A Workload-Aware Offloading Framework for Efficient MoE Inference on Local PCs

Zeyu Zhu, Gang Li, Peisong Wang, Zitao Mo, Minnan Pei, Zhuoran Song, Xiaoyao Liang, Jian ChengarXiv 2026

TL;DR

DALI is a workload-aware offloading framework designed to run massive Mixture of Experts (MoE) large language models efficiently on consumer-grade local PCs. By dynamically balancing computation between the CPU and GPU, predicting expert activation via inter-layer residuals, and managing GPU cache based on token workload history, DALI achieves up to a 7.6× speedup in the prefill phase and a 4× speedup in decoding over state-of-the-art offloading frameworks.

What Problem Does This Paper Address?

Mixture of Experts (MoE) architectures allow Large Language Models (LLMs) to scale their capacity to hundreds of billions of parameters without a proportional increase in compute cost, as only a small subset of "experts" are activated for any given token. However, their massive total parameter footprint makes it impossible to fit them entirely into the Video RAM (VRAM) of consumer GPUs (like the NVIDIA RTX 3090 or 4090).

To run these models locally, developers rely on offloading—storing the expert weights in cheaper system RAM (DRAM) and fetching them to the GPU via PCIe lanes when needed, or executing some experts directly on the CPU.

Figure 3. The memory hierarchy and the data assignment in hybrid MoE offloading frameworks.

Existing hybrid CPU-GPU frameworks suffer from three major inefficiencies:

  1. Severe Load Imbalance: Statically assigning experts or layers to either the CPU or GPU ignores the highly dynamic nature of token workloads, causing one device to sit idle while the other bottlenecks the system.
  2. Costly Prefetch Stalls: Limited PCIe bandwidth makes on-the-fly expert transfers slow. Current prefetching techniques fail to accurately predict which experts will handle the heaviest workloads, leading to frequent pipeline stalls.
  3. Inefficient Caching: Standard GPU cache replacement policies (like Least Recently Used) ignore workload volume, resulting in poor cache hit rates.

Methods

DALI introduces a holistic redesign of scheduling, prefetching, and caching strategies tailored to the hardware constraints of local PCs:

  • Greedy Assignment Strategy: DALI models the CPU-GPU expert scheduling problem as a 0-1 integer optimization problem aimed at minimizing the maximum execution time between the two devices. To bypass the high computational overhead of solving this precisely at runtime, the authors introduce a fast heuristic greedy algorithm that achieves near-optimal load balancing with negligible overhead.
  • Residual-Based Prefetching: To hide PCIe transfer latency, DALI predicts which experts will be needed in the subsequent MoE layer. Instead of relying purely on raw features from the current layer, it leverages the mathematical residual connections between adjacent layers to refine feature predictions, drastically improving prefetch accuracy for high-workload experts.
  • Workload-Aware Cache Replacement: The authors observed a strong temporal correlation in expert activations: if an expert is heavily utilized for token $i$, it is highly likely to remain heavily utilized for token $i+1$. DALI tracks this workload history across a sliding window of tokens to dynamically update the GPU expert cache, prioritizing experts with sustained high workloads.
Figure 1. Different MoE offloading frameworks. 𝑡𝑖denotes the 𝑖-th token. DALI dynamically schedules the experts based on the workloads, thus achieving better CPU and GPU balance.

Datasets

The framework was evaluated using the following standard datasets and configurations:

  • Wikitext: A subset of 1,000 sequences was used as a calibration dataset to pre-compute the layer-specific residual vectors offline.
  • C4 (Colossal Clean Crawled Corpus): Used for speed benchmarking across both the prefill and decoding phases.
  • Downstream Tasks: Prefetch accuracy was validated across several downstream benchmarks from the EleutherAI Language Model Evaluation Harness, including Arc-e, Arc-c, OBQA, and RTE.

Key Insights and Ideas

  • Dynamic Over Static: Static thresholds for splitting low- and high-workload experts fail because workloads shift drastically based on batch size and input prompts. Dynamic runtime assignment is essential to maximize heterogeneous hardware parallelism.
  • Residuals as Feature Correctors: Because transformer layers use residual paths, adjacent layers share deep semantic similarities. Exploiting the average residual vector allows the framework to accurately "look ahead" into the next layer's gating decisions without expensive look-ahead computations.
  • Workload Volume Matters More Than Recency: Traditional cache policies track when an expert was last used. DALI demonstrates that tracking how much data an expert processes over a window of tokens yields significantly higher cache hit rates due to the temporal locality of token semantics.

Key Results

DALI was evaluated against four state-of-the-art MoE offloading frameworks (llama.cpp, KTransformers, MoE-Lightning, and HybriMoE) across three prominent open-source models: DeepSeek-V2-Lite, Qwen3-30B-A3B, and Mixtral-8x7B.

  • Prefill Phase Speedups: DALI achieved average speedups of 7.62× over llama.cpp, 3.80× over KTransformers, 2.45× over MoE-Lightning, and 2.00× over HybriMoE.
  • Decoding Phase Speedups: DALI delivered average speedups of 3.97× over llama.cpp, 2.16× over KTransformers, 1.48× over MoE-Lightning, and 1.32× over HybriMoE.
  • Cache Efficiency: On Mixtral-8x7B, DALI's workload-aware cache strategy significantly outperformed standard LRU and score-based approaches, with cache hit rates progressively climbing up to 100% during extended token generation.

Limitations and Future Work

  • Single-Node Focus: DALI is explicitly designed and optimized for edge environments featuring a single CPU and limited GPU setups.
  • Future Directions: The authors note that extending these workload-aware scheduling and caching principles to distributed edge environments and high-bandwidth server architectures (such as NVIDIA's GH200) represents a vital next step for scaling local MoE inference.

Summary updated

BibTeX
@misc{zhu2026dali,
  author = {Zeyu Zhu and Gang Li and Peisong Wang and Zitao Mo and Minnan Pei and Zhuoran Song and Xiaoyao Liang and Jian Cheng},
  title = {{DALI: A Workload-Aware Offloading Framework for Efficient MoE Inference on Local PCs}},
  year = {2026},
  eprint = {2602.03495},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.03495},
}
Figure