Skip to content
AI-generated research idea🟡Fairly easy💡Moderate InnovationRelated work found

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

several weeks

Compute level

Single GPU or less

Resources

Single NVIDIA RTX 5070 Ti (16 GB VRAM) or comparable 16 GB consumer GPU, 64 GB host RAM, AVX-512 CPU, SGLang/KTransformers, and public MATH-500, BFCL-v4, Terminal-Bench 2.1, and SWE-bench Verified harnesses.

What the paper used

Training hardware and dataset token counts are not stated in the paper (trained with Megatron-Core/Megatron Bridge up to 128K semantic / 256K packed tokens). Inference benchmarks use a single NVIDIA H200 GPU or single NVIDIA GB300 GPU (BF16, batch size 1), and on-device quantized evaluation uses one NVIDIA RTX 5070 Ti (16 GB VRAM) with an AMD Ryzen 7 9700X CPU and 64 GB RAM.

Prerequisites

efficiency and systems, mixture-of-experts, GPU-CPU offloading, quantization

Scope

modify existing code

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.”
From the paper, Section 4.2, page 14. Matched against the PDF text.

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.

  1. 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.
  2. 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.
  3. Evaluate INT4 g32 accuracy on BFCL-v4 and Terminal-Bench 2.1 under static placement to establish the quantized agentic baseline.
  4. 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?

Related work found

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.

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 Report

DiffuSpace 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

Is this a good idea?

Share onXLinkedIn