Workload-Adaptive Dynamic Expert Caching for Hybrid GPU-CPU On-Device Execution
Replace static math-profiled expert placement with an online cache manager that dynamically swaps active experts between GPU and CPU across changing agentic tasks.
Time
Compute level
Resources
What the paper used
Prerequisites
Scope
The Gap
In Section 4.2, Clover is deployed on a 16 GB RTX 5070 Ti with 96 experts per layer on GPU and 160 on CPU via SGLang and KTransformers. Expert placement is statically fixed offline using routing statistics gathered from mathematical tasks, and Table 4 reports INT4 accuracy and decode speed (97.52 tokens/s) exclusively on MATH-500, while Table 3 notes that Clover's agentic and general benchmark scores are not asserted to come from INT4 deployment.
“We use routing statistics from mathematical tasks to place frequently used experts on the GPU and less frequently used experts on the CPU, reducing CPU computation without changing the number of experts resident on either device.”
Limitation
Static math-profiled expert placement degrades when workloads shift to repository-level coding, shell execution, or tool calling—Clover's primary strengths—causing frequent misses to slow CPU AVX-512 execution, while INT4 quantization accuracy on agentic tasks remains unmeasured.
Proposed Solution
Implement a dynamic GPU-CPU expert cache in KTransformers that tracks exponentially weighted expert activation frequencies and block-level dMoE coreset membership at runtime, asynchronously prefetching hot experts over PCIe during preceding BD-GDN/attention layers and evicting cold experts. Additionally, run an evaluation suite for the INT4 g32 configuration across Terminal-Bench 2.1, BFCL-v4, and SWE-bench Verified to measure quantization sensitivity on multi-step agent trajectories.
The paper’s authors list this direction as future work, so they may already be pursuing it.
Why This Matters
Dynamic workload-aware caching is expected to sustain near-100 tokens/s on-device decode throughput across diverse agentic and conversational sessions rather than only math benchmarks, while establishing verified quality guarantees for 16 GB consumer deployment.
How to Get Started
How to test it: Hypothesis: Online LRU/coreset-guided expert caching will achieve >=90% of oracle workload-specific static placement throughput on mixed coding/tool/math traces while keeping INT4 agentic accuracy within 2 percentage points of BF16. Baseline: Math-profiled static 96/160 placement from Table 4. Metric: CPU expert execution rate, Decode TPS, and benchmark accuracy on MATH-500 and BFCL-v4; stop if PCIe swap latency exceeds CPU expert compute savings.
- Set up the released INT4 g32 Clover checkpoint in SGLang with KTransformers on a 16 GB GPU + 64 GB RAM machine and reproduce the 97.52 tokens/s MATH-500 result from Table 4.
- Log layer-wise expert routing frequencies on Terminal-Bench 2.1 and BFCL-v4 traces to measure cache-hit drop-off under the static math-profiled 96/160 placement.
- Evaluate INT4 g32 accuracy on BFCL-v4 and Terminal-Bench 2.1 under static placement to establish the quantized agentic baseline.
- Implement asynchronous PCIe expert swapping driven by sliding-window expert frequency and block coreset scores, then benchmark throughput and accuracy across mixed math-and-agentic request streams.
Suggested by AI. Adapt it to your setup.
Has This Been Done?
Works such as HybriMoE and APEX discuss asynchronous CPU-GPU scheduling and expert offloading for MoE models, which overlaps significantly with the goal of heterogeneous expert management. The specific proposal to track block-level coreset membership and validate quantization sensitivity via the mentioned benchmarks remains an open extension to these frameworks.
- HybriMoE: Hybrid CPU-GPU Scheduling and Cache Management for Efficient MoE Inference · 2025 · 49 citations
- APEX: Asynchronous Parallel CPU-GPU Execution for Online LLM Inference on Constrained GPUs · 2026 · 11 citations
- DALI: A Workload-Aware Offloading Framework for Efficient MoE Inference on Local PCs · 2026
We searched OpenAlex and arXiv for “dynamic expert offloading hybrid CPU GPU MoE inference” and “Workload-Adaptive Dynamic Expert Caching for Hybrid GPU-CPU On-Device Execution” and an AI compared the idea with the top 10 results. A small search can miss relevant work.
Source Paper
Clover-35B-A3B-Preview Technical ReportDiffuSpace Technical Team · 2026
Clover-35B-A3B-Preview is a 35B-total, 3B-activated mixture-of-experts diffusion language model adapted from Qwen3.6-35B-A3B for agentic coding, tool use, and fast inference. It combines recurrent historical memory with block-local bidirectional attention, entropy-based self-speculative decoding, consumer-GPU quantized hybrid execution, and a joint multi-question decision variant.
Related Ideas
- Online Bandwidth Telemetry for Contention-Adaptive CPU-GPU Expert SplittingFreeToken: Efficient Edge-Native MoE Serving with Bandwidth-Adaptive Execution🟡Fairly easy
- Frequency- and Batch-Aware Expert Cache Replacement Beyond Global LRUFreeToken: Efficient Edge-Native MoE Serving with Bandwidth-Adaptive Execution🟡Fairly easy
- Marginal-Latency Controller and Contention Benchmark for Elastic KV-Expert RebalancingFreeToken: Efficient Edge-Native MoE Serving with Bandwidth-Adaptive Execution🟠Medium
- Execution-Time and Hardware-Cost-Aware Scoring Beyond Token Budgets in Agentic Kernel OptimizationAscendGYM: A Cost-Aware Kernel Optimization Benchmark for Real-World Workloads on Ascend NPUs🟡Fairly easy
- Dynamic Network-Compute Latency ArbitratorLMCache: An Efficient KV Cache Layer for Enterprise-Scale LLM Inference🟡Fairly easy