Skip to content
AI-generated research idea🟠Medium💡Moderate InnovationRelated work found

Marginal-Latency Controller and Contention Benchmark for Elastic KV-Expert Rebalancing

Add a marginal-latency controller and contention benchmark to automatically rebalance KV cache and expert slots when concurrent applications compete for GPU memory.

Time

several weeks

Compute level

Single GPU or less

Resources

Single consumer GPU (e.g., RTX 4060 Laptop 8 GB or RTX 5090 32 GB) with NVML/CUDA runtime, Qwen3.6-35B-A3B, and OpenCode/Claude Code/OpenClaw agent harnesses.

What the paper used

Six single-GPU systems: RTX 5090 (32 GB, 180 GiB DDR5, 6 threads capped), RTX 4090 (24 GB, 240 GiB DDR4, 6 threads), RTX 3090 (24 GB, 180 GiB DDR4, 6 threads), RTX 5090 desktop (32 GB, Ryzen 9 9950X3D, 192 GiB DDR5), RTX 4060 laptop (8 GB, Core i9-13900H, 32 GiB LPDDR5), and RTX PRO 6000 (96 GB, Xeon Platinum 8559C, 512 GiB DDR5); evaluated on Qwen3.6-35B-A3B, DeepSeek-V4-Flash (284B), and GLM-5.2 (753B).

Prerequisites

LLM KV-cache management, GPU memory profiling (NVML), and systems benchmarking.

Scope

modify existing code

The Gap

FreeToken supports rebuilding the GPU expert cache at scheduler safe points for a revised VRAM budget (Section 3.3), yet the evaluation (Section 5) tests only dedicated, isolated single-engine runs and omits any policy or experiment for mid-session VRAM shrinking, KV-cache-vs-expert trade-offs, or concurrent subagent TTFT spikes (where KTransformers led Qwen3.6 W3 TTFT).

“At any scheduler safe point, FreeToken can rebuild the GPU expert cache for a revised runtime VRAM budget. This is done without restarting the engine or reloading the CPU-resident expert pool”
From the paper, Section 3.3, page 8. Matched against the PDF text.

Limitation

Without an automated allocation controller or contention evaluation, the system provides no principled rule for splitting scarce VRAM between KV cache, recurrent-state checkpoints, and expert slots as agent sessions grow or when competing desktop apps claim VRAM, leaving tail pauses and thrashing risks during live reconfiguration unquantified.

Proposed Solution

Build a runtime marginal-latency controller that tracks per-step expert-miss stalls, KV-cache eviction/recomputation cost, and NVML free-VRAM headroom to dynamically rebalance slot counts at safe points via incremental partial cache shrinking/expansion rather than full cache rebuilds. Pair this with an open edge-contention benchmark suite that injects timed VRAM allocations (simulating browser/game launches) and concurrent subagent bursts.

Why This Matters

Expected to make elastic VRAM sharing safe and predictable on real multi-application consumer desktops while providing standardized evaluation for edge contention resilience.

How to Get Started

How to test it: Test on an 8 GB RTX 4060 laptop and 32 GB desktop under a synthetic 2-4 GB competing VRAM workload trace whether incremental KV-expert rebalancing prevents OOM crashes and reduces P99 inter-token latency during reconfiguration by >50% compared to full-cache rebuilds; stop if controller hysteresis causes oscillatory resizing (>1 resize per 100 tokens).

  1. Create a deterministic GPU contention harness using a co-running CUDA process and NVML monitoring that allocates and frees 2-4 GB of VRAM during multi-turn OpenClaw and Claude Code sessions.
  2. Measure baseline reconfiguration pause times, P99 TTFT, and decode throughput degradation when FreeToken triggers its current cache rebuild under VRAM pressure.
  3. Implement a marginal-latency estimator comparing KV recomputation penalty vs. expert miss penalty to guide incremental slot resizing without full CUDA Graph teardown.
  4. Evaluate P99 latency, OOM avoidance, and average tok/s on Qwen3.6-35B-A3B (NVFP4 and BF16) across static split vs. elastic controller configurations.

Suggested by AI. Adapt it to your setup.

Has This Been Done?

Related work found

Systems like CRAFT and vExpert discuss cost-aware expert replication and load balancing. However, they do not present a marginal-latency controller combining expert-miss stalls and NVML headroom for incremental cache shrinking alongside an edge-contention benchmark suite.

We searched OpenAlex and arXiv for “elastic KV cache expert memory rebalancing GPU contention benchmark” and “Marginal-Latency Controller and Contention Benchmark for Elastic KV-Expert Rebalancing” and an AI compared the idea with the top 10 results. A small search can miss relevant work.

Source Paper

FreeToken: Efficient Edge-Native MoE Serving with Bandwidth-Adaptive Execution

Shuo Yang, Xiaoze Fan, Melissa Pan +8 more · 2026

FreeToken is an edge-native Mixture-of-Experts (MoE) serving system that enables personal consumer hardware, from an 8 GB laptop GPU to a single workstation GPU, to interactively run 35B to 753B open-weight models on agentic workloads. It achieves 1.3-2.3x higher decode throughput and avoids multi-minute tail prefill stalls compared to llama.cpp, Ollama, KTransformers, and MoE-Infinity by orchestrating GPU VRAM, CPU compute, host memory, and PCIe bandwidth as a unified elastic platform.

Related Ideas

Is this a good idea?

Share onXLinkedIn