Manuscript Offprint
arXiv:2611.01859Apto: Self-Adaptive CPU-GPU Hybrid MoE Inference on Shared PCs
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
CPU/GPU hybrid inference enables Mixture-of-Experts (MoE) models to run on memory-constrained PCs by keeping all expert weights in host memory and executing activated experts across both processors. Existing hybrid systems, however, assume exclusive resource access and determine an upfront CPU/GPU partition, so CPU contention from colocated applications can severely imbalance the two execution paths. This paper presents APTO, a self-adaptive hybrid inference system that applies dynamic scheduling to expert execution. The CPU and GPU executors claim experts from opposite ends of a dual-ended queue as they progress, allowing the CPU/GPU work split to adapt to their execution progress without predicting contention. APTO further uses affinity-aware scheduling to expose each executor's preferred experts at its queue end and cancellable tail racing to mitigate final-expert stragglers. Compared with state-of-the-art GPU-only and hybrid baselines, APTO achieves average prefill and decode speedups of 2.96× and 1.52× under standalone execution, and 5.97× and 3.45× under concurrent CPU workloads. It also accelerates real-world coding-agent applications by 2.02× on average.
1 Introduction
Mixture-of-Experts (MoE) models increase capacity by replacing each dense feed-forward network with multiple experts while activating only a few per token [20, 22, 29, 30, 53]. This sparse activation limits per-token computation and parameter traffic, making MoE models attractive for local inference on PCs [16, 23, 44]. Yet the complete set of expert weights often exceeds GPU memory. Recent systems therefore keep all experts in host memory and execute activated experts across the CPU and GPU in parallel [16, 25, 33, 58, 64]. Such hybrid execution reduces expert-loading overhead by using CPU compute, but its performance hinges on balancing the GPU path, including GPU computation and expert-loading stalls, with the typically slower CPU path [64].
Unlike datacenter servers that dedicate resources to LLM inference [35, 59, 65], PCs routinely run inference alongside other CPU applications. Such colocation is increasingly common in agentic workloads: coding agents interleave inference with CPU-intensive tools [4, 31, 54, 63], while multi-agent systems may run tools and inference concurrently [4, 13, 24, 36, 62]. The inference engine generally has no prior knowledge of the colocated applications, their arrival times, execution durations, or scheduling priorities.

Figure 1. Decode latency (TPOT) breakdown for Qwen3-30B-A3B at batch size 4 when running (a) standalone and (b) colocated with CPU-intensive workloads (e.g., parallel compilation). GO, SP, and DP denote FineMoE [60] (GPU-only), KTransformers [16] (static partitioning) and HybriMoE [64] (dynamic partitioning), respectively. Labels above the bars show the fraction of activated experts executed on the CPU.
Consequently, OS scheduling and contention for shared resources cause the effective CPU capacity available to inference to fluctuate rapidly and unpredictably, both across and within requests. Therefore, the amount of expert work that the CPU can sustain cannot be determined reliably before execution.
Existing MoE inference systems are self-centered: they optimize expert execution assuming exclusive access to the PC's CPU, GPU, and memory resources. In GPU-only offloading, all activated experts execute on the GPU, making expert loading from host memory into GPU memory a major bottleneck [23, 44, 52, 60]. Hybrid systems reduce this overhead by executing some experts on the CPU. Static partitioning (SP) avoids expert loading by letting the GPU execute only resident experts, while the CPU executes the rest [16, 33]. Dynamic partitioning (DP) uses predicted execution times to determine the CPU/GPU partition before expert execution begins and overlaps expert loading with computation [14, 56, 58, 64]. With exclusive access to the CPU, they can eliminate or hide expert-loading stalls and improve inference performance, as shown in Figure 1(a).
On shared PCs, however, this self-centered assumption does not hold. As shown in Figure 1(b), when inference is colocated with a CPU-intensive workload, static and dynamic partitioning still eliminate or hide expert-loading time, yet their latencies increase to 3.64× and 2.58× their standalone values and reach 2.60× and 1.80× the GPU-only latency, respectively. Because these methods continue to partition experts as if the full CPU were available, they assign nearly the same fraction of experts to the CPU despite contention. The CPU path consequently becomes the bottleneck, leaving the GPU underutilized or idle. A partition that better exploits the CPU under exclusive execution may therefore suffer greater degradation when resources are shared. The fundamental problem is not the quality of the partition under exclusive execution, but the assumption that this partition remains appropriate under colocation.
Key insight. Because CPU resources under colocation are dynamic and unpredictable, MoE inference should shift from self-centered upfront partitioning to self-adaptive runtime scheduling. Rather than predicting an optimal partition and committing all expert assignments before execution, the system should defer assignment decisions until execution and adapt the CPU/GPU work split as execution progresses. In this way, resource variation becomes feedback that guides scheduling rather than uncertainty that must be predicted.
Our approach. To realize this principle, we design APTO, a self-adaptive CPU/GPU hybrid inference system that applies dynamic scheduling [18, 38] to expert execution. APTO treats each activated expert as a task and lets the CPU and GPU executors claim new tasks only after completing their current ones. Task completion thereby feeds the realized capacity of each path directly into subsequent assignments, implicitly capturing interference from OS scheduling and shared resources. When contention slows the CPU path, the CPU completes and claims fewer subsequent tasks, while the GPU naturally takes over more work. The CPU/GPU work split thus emerges from realized execution progress rather than being decided upfront. Although CPU contention is our primary focus, the mechanism also adapts to slowdowns on the GPU path.
Although dynamic scheduling provides flexibility, general-purpose implementations introduce runtime overhead for task management and coordination among multiple competing executors [5, 10, 15, 48]. However, several characteristics of MoE hybrid inference simplify these requirements and enable efficient dynamic scheduling. First, expert computations within an MoE block are independent until their outputs are merged, avoiding the dependency-tracking overhead of general task runtimes [48]. Second, the set of expert tasks can be determined upfront, without the need to handle dynamic task generation [15]. Third, CPU/GPU hybrid scheduling involves only two logical executors, one for the CPU path and one for the GPU path, avoiding complex coordination across large worker pools [5, 40]. A simple shared deque suffices to distribute expert tasks between the CPU and GPU paths.
Affinity-aware scheduling. Dynamic scheduling adapts how much work each path receives, but efficient execution also depends on which tasks it selects. Expert affinities to the CPU and GPU are largely complementary: GPU-resident experts, experts with more input tokens, and frequently activated experts favor GPU execution, whereas their counterparts favor CPU execution [33, 64]. APTO captures these preferences in a unified affinity ordering that places the most GPU-preferred
and CPU-preferred experts at opposite ends of the queue. Each executor therefore claims its preferred remaining task from its own end, preserving locality and processor efficiency without cross-executor coordination.
Cancellable tail racing. Dynamic scheduling can rebalance only tasks that remain in the queue. Once the final expert has been claimed, a slowdown on its execution path can leave the other path idle and delay the entire MoE block. Since expert computation can be repeated, APTO allows both executors to race the final expert when the two queue ends meet and accepts only the first completed result, following the principle of backup execution [21]. The two copies share the same PC resources, so the slower copy can continue consuming resources or delay subsequent inference even after its result is no longer needed. APTO therefore cancels the slower copy's remaining execution once the faster copy completes, limiting both tail latency and unnecessary resource consumption.
We implemented APTO atop llama.cpp [25] with ProMoE [44] for expert caching and prefetching, and evaluate it against state-of-the-art GPU-only and CPU/GPU hybrid baselines. When the inference process exclusively occupied the PC resources, APTO achieved average speedups of 2.96× and 1.52× in the prefill and decode stages, respectively. When co-executing with a CPU-intensive workload under different configurations, APTO achieved average speedups of 5.97× and 3.45× in the prefill and decode stages, respectively, by adapting to dynamic CPU availability. Meanwhile, the colocated workload achieved 1.08× the throughput obtained alongside the baselines on average. For real-world coding agent applications, APTO achieved an average speedup of 2.02× over the baselines. A controlled experiment further confirms that APTO also adapts to GPU contention.
2.1 CPU/GPU hybrid inference for MoE-based LLMs
Compared with cloud deployment, deploying large language models (LLMs) on personal computers (PCs) offers improved privacy, offline availability, and cost efficiency [41, 45, 51, 57]. Efficient inference on these devices requires careful use of limited compute and memory bandwidth. The Mixture-of-Experts (MoE) architecture addresses these constraints by dividing the FFN into multiple experts and activating only a subset for each token. In each MoE block, a gating function selects the experts to process each token, and their outputs are combined using a weighted sum. This sparse activation reduces computation and memory access, making MoE-based LLMs well-suited for local inference on PCs with consumer-grade GPUs.
However, the large number of experts increases the memory footprint, often exceeding the limited memory capacity of consumer-grade GPUs. CPU/GPU hybrid execution [16, 25, 33, 58, 64] offloads expert parameters to host memory, keeps only a subset of experts in GPU memory, and computes activated experts using both CPU and GPU resources. This design reduces GPU memory requirements and mitigates performance degradation by reducing CPU-GPU data transfer and exploiting the CPU for parallel computation. The performance of CPU/GPU hybrid execution is largely determined by load balancing between the GPU path, which includes GPU computation and waiting for parameter transfer, and the CPU path [64].
2.2 LLM Inference on Shared PCs
Colocation of LLM inference and other applications. Unlike cloud servers, where resources are typically dedicated to LLM inference, PCs commonly run inference alongside other applications. These applications can use shared resources, especially CPU resources, creating contention that affects CPU/GPU hybrid inference.
Moreover, emerging LLM applications increasingly require coordinated execution between inference and external tools, making such colocation more common. For example, coding agents [4, 54, 63] complete tasks by repeatedly requesting LLM responses and executing CPU-based tools. Multi-agent systems [4, 13, 24, 36, 62] run multiple agents in parallel to complete complex tasks or improve efficiency. CPU-based tools and inference requests from different agents can overlap, resulting in concurrent tool execution and LLM inference on the same PC.
Dynamic resource contention. Contention changes as colocated applications start, finish, or vary their resource demands. System scheduling decisions further affect how resources are shared between inference and other applications. The inference engine generally has no advance knowledge of these changes. As contention varies, so does the effective CPU capacity available to inference, causing CPU-side expert execution times to fluctuate.
To characterize the impact of dynamic CPU contention in real-world agent workloads, we collect execution traces of GPT-5.5-powered SWE-agent [54] on seven SWE-bench tasks [31], which resolve real-world GitHub issues across three Java or Rust repositories. When replaying these traces, we pause each agent worker according to the recorded LLM response waiting time, preserving the temporal structure of the original agent execution.
Figure 2(a) shows CPU utilization during trace replay with four concurrent agent workers. Bursty agent tool calls cause utilization to alternate repeatedly between low-utilization periods and brief high-utilization bursts. In particular, the CPU utilization of agent tools increases from 2.2% to 96.1% within 0.9 seconds, illustrating how rapidly their CPU demand can change. Figure 2(b) shows the corresponding variation in the CPU execution time of one expert in Qwen3-30B-A3B [47]. Concurrent tool execution causes substantial fluctuations in expert execution time, with P75 and P99 slowdowns of 3.0× and 5.7×, respectively, compared with the uncontended case.

Figure 2. Timeline of CPU utilization when replaying coding-agent traces with four concurrent agent workers (a), and the corresponding CPU execution time of one expert in Qwen3-30B-A3B [47] (b). Dashed lines in (b) indicate slowdown levels relative to the expert's uncontended CPU execution time, as labeled.
Need for adaptive scheduling. Changes in CPU performance can invalidate a previously balanced CPU/GPU expert allocation. To maintain load balance, the inference engine must adapt expert assignments to runtime execution performance. When CPU contention slows expert execution, more work should shift to the GPU. The allocation should continue to adapt as contention changes. The same principle also applies when GPU contention changes the relative performance of the two paths.
2.3 Existing CPU/GPU Hybrid Methods
Existing CPU/GPU hybrid methods partition expert workloads before expert execution begins, using either static or dynamic partitioning, as illustrated in Figure 3. These methods are self-centered: they optimize the partition assuming exclusive access to the PC's CPU, GPU, and memory resources, without adequately accounting for runtime contention from colocated applications.
Static partitioning. Recent works [16, 33] propose static partitioning, which fixes the CPU/GPU partition during initialization by placing frequently used experts in GPU memory and offloading the remaining experts to CPU memory. The experts are executed on their assigned processors, without any CPU-GPU expert parameter transfer during inference, as illustrated in Figure 3(a). Since the GPU provides higher computational capacity than the CPU, this strategy aims to assign more expert executions to the GPU and fewer to the CPU, thereby improving load balance.
However, modern MoE models often exhibit nearly uniform expert access patterns [44], so the fraction of activated experts served by the GPU is largely determined by GPU memory capacity. Limited GPU memory can therefore leave the CPU path overloaded, while the fixed partition prevents the GPU from taking over its work. Even during standalone

Figure 3. An example of expert execution patterns under different CPU/GPU hybrid methods across three transformer layers, each containing four activated experts: one GPU-resident expert (E1) and three offloaded experts (E2-E4). The illustrated time slice contains one co-execution CPU program (co-Prog) arriving (arr.) and departing (dep.).
inference, the GPU remains idle for 93.7% of the expert execution time while waiting for CPU-assigned experts to complete (Figure 1(a)). CPU contention further prolongs this wait, increasing the idle fraction to 98.4% (Figure 1(b)).
Dynamic partitioning. To further improve load balance, recent works [14, 56, 58, 64] adopt dynamic partitioning. It assigns activated experts to the CPU or GPU at runtime before execution, allowing experts stored in host memory to be transferred to the GPU for execution. This flexibility allows the inference engine to shift part of the CPU workload to the GPU to improve load balance, as shown in Figure 3(b). Existing methods use performance models built through offline profiling to predict expert execution times on the CPU and GPU paths and determine the CPU/GPU partition based on the predicted execution times.
However, these prediction-guided methods assume that runtime CPU performance matches offline profiling, which does not always hold during co-execution. When colocated CPU programs slow down expert execution, the scheduler still relies on estimates of uncontended CPU performance and consequently underestimates CPU execution time. For example, Figure 1 shows that HybriMoE assigns nearly the same fraction of activated experts to the CPU during standalone inference and co-execution (35.5% and 35.4%, respectively). This allocation fails to reflect the CPU performance degradation, increasing GPU idle time to 3.73× its standalone value.
Moreover, performance models can be inaccurate even during standalone inference. For example, HybriMoE's performance model [64] exhibits a mean absolute relative error of 71% on Qwen3-30B-A3B with batch size 4 due to the complex behavior of highly optimized CPU and GPU operators. These prediction errors lead to suboptimal CPU/GPU partitions, leaving the actual execution times of the two paths imbalanced. As shown in Figure 1(a), the GPU still spends 62.4% of expert execution time idle waiting for the CPU, even without contention.
Finally, each performance model is specific to a hardware platform, MoE model, and system configuration (e.g., the number of CPU executor threads). Changes to the deployment environment require rebuilding or updating the performance model, adding profiling and maintenance overhead that limits the practicality of prediction-guided dynamic partitioning in real-world PC environments.
3 Approach and Overview
This paper presents APTO, a self-adaptive CPU/GPU hybrid inference system for MoE-based LLMs on shared PCs. As shown in Figure 3(c), when CPU contention slows down CPU-side execution, ArPro reduces the fraction of experts dispatched to the CPU and shifts more work to the GPU. As CPU performance recovers, it increases the fraction of experts executed on the CPU to utilize the available resources. This allows ArPro to maintain load balance and adapt to the resource contention and OS scheduling decisions on shared PCs.
Our approach: dynamic scheduling. Rather than predicting execution times and partitioning experts between the CPU and GPU before execution begins, ArPro assigns experts dynamically as execution progresses. Each activated expert is treated as a task, and each executor claims its next task after completing the current one. Task completion thus provides direct feedback for subsequent assignments, implicitly reflecting the capacity available to each execution path. When contention slows one path, it completes and claims fewer tasks, allowing the other path to handle more of the remaining work. The CPU/GPU work split therefore adapts to actual execution progress without requiring an upfront partition.
MoE hybrid inference simplifies the task management and coordination requirements of general-purpose dynamic scheduling. First, experts within an MoE block execute independently before their outputs are merged, so scheduling them does not require tracking inter-task dependencies [48]. Second, the gate determines the task set before expert execution begins. The queue is initialized once per block and

Figure 4. The workflow of APTO for scheduling expert tasks between CPU and GPU executors to compute the activated experts in an MoE block.
receives no new expert tasks during execution, avoiding dynamic task insertion and queue growth [15]. Third, task assignment involves only two logical executors, one for the CPU path and one for the GPU path. A shared double-ended queue (deque) therefore suffices without the coordination mechanisms needed to scale scheduling across large worker pools [5, 40]. These characteristics make dynamic scheduling a natural fit for CPU/GPU hybrid MoE inference.
Overview of APTO. During initialization, APTO places the non-expert components of the LLM, including self-attention blocks and MoE gate functions, in GPU memory. All experts are stored in host memory, with a subset cached in GPU memory. During inference, the non-expert components execute on the GPU, while activated experts are scheduled to run on either the CPU or the GPU.
Figure 4 illustrates the execution workflow of an MoE block. The gate function selects the activated experts, which are enqueued as tasks in a shared deque. The GPU and CPU executors draw tasks from opposite ends and execute them in parallel. Each executor follows a fetch–execute loop, fetching its next task after completing the current one. The GPU executor uses cached expert parameters when available and loads missing parameters from host memory, while the CPU executor accesses parameters directly in host memory. Once all activated experts have completed execution, their outputs are merged on the GPU to produce the block's output.
4 Dynamic Scheduling
4.1 Affinity-aware Scheduling
Dynamic scheduling should consider task affinity to execution paths, as task assignments affect both data movement and computational efficiency. Existing dynamic scheduling techniques consider affinity using factors such as data locality and cache reuse [37], data transfer costs [9], and relative execution speeds across heterogeneous processors [10]. This motivates the need for APTO to consider expert tasks' affinity to the CPU and GPU execution paths in hybrid MoE inference to support affinity-aware scheduling.
In hybrid MoE inference, APTO considers three factors that shape expert tasks' execution-path affinity: cache status, input token count, and activation frequency. First, cache status

Figure 5. Expert execution time of DeepSeek-V2-Lite (a) and Qwen3-30B-A3B (b) on CPU and GPU across different input token counts. GPU direct and GPU fetch indicate GPU execution with cached experts and GPU execution after fetching experts from CPU memory, respectively.
determines whether GPU execution requires loading expert weights from host memory. Cache hits avoid this transfer, while cache misses increase average GPU-path execution time to that of cache hits, as shown in Figure 5. This favors prioritizing cache-hit experts on the GPU path.
Second, input token count affects the relative computational efficiency of CPU and GPU execution. In each forward pass, multiple input tokens can be processed, and each token selects experts independently, leading to varying input token counts across experts. Figure 5 shows that as the input token count increases, CPU execution time grows significantly, while the execution time of both GPU execution modes remains relatively stable. This is because GPUs can exploit parallelism across tokens to handle the additional computation efficiently. This favors prioritizing experts with more input tokens on the GPU path and those with fewer input tokens on the CPU path.
Third, activation frequency affects the potential benefit of loading an expert into the GPU cache for reuse in future iterations [16]. If a frequently activated expert is not cached on the GPU, loading it into the GPU cache can improve future cache hit rates and reduce execution time. This favors prioritizing experts with higher activation frequencies on the GPU path.
Prior affinity-aware dynamic scheduling techniques encode task preferences through queue organization [37, 49]. MoE hybrid inference involves only two logical executors, whose preferences under the three factors above are largely complementary. This allows APTO to represent both executors' preferences in a unified affinity ordering. Since the gate identifies all activated experts before execution, APTO constructs this ordering once per MoE block before enqueuing tasks, and places the most GPU-preferred and CPU-preferred experts at opposite ends of the shared deque. Each executor then claims its preferred remaining task from its own end. The ordering guides task choice, while the CPU/GPU work split emerges from actual execution progress.
To construct this ordering, APTO assigns different priorities to the three factors. Cache status and input token count directly affect execution time in the current MoE block, while activation frequency only offers potential benefits in future

Figure 6. An example of the straggler problem in dynamic scheduling, where the CPU executor becomes the straggler. Experts 1 and 2 are cache-hit experts, while experts 3 and 4 are cache-miss experts.
iterations. APTO therefore gives the first two factors precedence over activation frequency. Among them, APTO prioritizes cache status, guided by the observation that cached experts execute substantially faster on the GPU than on the CPU, even at small token counts (Figure 5). The resulting priority hierarchy uses cache status as the primary factor, input token count as the secondary factor, and activation frequency as the tertiary factor.
Before enqueuing, APTO records each expert task's cache status and input token count, and obtains its activation frequency estimate from offline profiling and online incremental updates. Each task is assigned a priority key
where indicates GPU cache residency when the ordering is constructed, is the input token count, and is the estimated activation frequency. Tasks are enqueued in descending lexicographic order of . The GPU executor claims tasks from the front, while the CPU executor claims tasks from the back.
4.2 Cancellable Tail Racing
Dynamic scheduling adapts task assignments as execution progresses, but it can only rebalance tasks that remain in the queue. In common queue-based scheduling schemes, tasks are dequeued before execution [12, 37, 49]. Once the queue is empty, the executor processing the final unfinished expert can become a straggler while the other executor, which can complete the same task faster, is already idle. The MoE block must then wait for the straggler to finish, despite the availability of a faster execution path. Figure 6 illustrates this problem: the CPU executor is still executing expert 3 after the GPU executor has completed experts 1, 2, and 4. In this example, executing all four experts on the GPU would achieve a shorter overall completion time.
The straggler problem can arise when the execution time of an expert task differs significantly between the two executors, which can occur in several MoE hybrid inference scenarios. Contention from co-executing processes can slow CPU execution, making the CPU executor the straggler. When all activated experts are GPU cache hits, the GPU can execute
them much faster than the CPU, also making the CPU executor the straggler. Limited CPU-GPU bandwidth or PCIe contention can instead delay the transfer of a cache-miss expert, making the GPU executor the straggler.
Backup execution is a common approach to mitigating stragglers in parallel systems [6, 21, 61]. It launches an additional copy of an unfinished task on an idle executor and accepts the first completed result, allowing the faster executor to finish the task originally assigned to the straggler. Inspired by backup execution, APTO introduces tail racing: the CPU and GPU executors race to complete the final unfinished expert, and only the first completed result is used. Making tail racing efficient requires a low-overhead trigger and a mechanism to limit redundant work.
Expert computation in MoE inference is repeatable, enabling backup execution provided that only one copy's result is used in the output merge. Moreover, the two logical executors consume tasks from opposite ends of the deque, so their convergence on the same expert provides a natural trigger for backup execution. By keeping an expert task in the queue until it completes, APTO allows the idle executor to reach the same task and race the other executor to complete it. This enables an efficient implementation of tail racing.
In practice, APTO implements tail racing by deferring task removal until execution completes. Each executor first peeks at the task at its preferred end of the deque and executes it without removing it. After execution, the executor atomically attempts to dequeue the task, succeeding only if it has not already been removed. When both executors execute the same expert, only one can successfully dequeue the task and mark it as completed. Only the result from that executor is used in the output merge, ensuring that the expert contributes exactly once.
The two copies of the final expert task can contend for host-memory bandwidth when CPU computation overlaps with GPU parameter loading over PCIe. On our platform, these operations individually achieve 51.7 and 51.4 GiB/s, respectively, with their sum only slightly exceeding the measured host-memory bandwidth of 98 GiB/s. This suggests that tail racing introduces limited bandwidth contention during standalone inference. However, co-execution with bandwidth-intensive programs reduces the bandwidth available to inference, potentially increasing contention and the overhead of tail racing.
The two copies share the same PC resources, and the losing copy can continue consuming resources or delay subsequent inference even after its result is no longer needed. APTO therefore cancels its remaining execution to limit unnecessary resource consumption. To enable fast cancellation, APTO splits each expert task into chunks, with a completion check at each chunk boundary. Once all expert tasks in the MoE block have completed, the executor skips the
Algorithm 1: GPU execution worker
Data: Q: Shared Deque; N: Unfinished Task Count Data: M: Maximum In-flight GPU Tasks
1 ; // In-flight FIFO 2 while do 3 while do 4 // Ready: cached and not in flight 5 task ← Q.peek_front(ready); 6 if task = ∅ then break; 7 launch_gpu_kernel(task); 8 P.push(task); 9 if then 10 wait_for_completion(P.front()); 11 if Q.dequeue(P.pop()) then 12 ;
remaining chunks. Experts often consist of several linear layers [2, 22, 47], which provide natural boundaries for chunking computation and weight transfers. The implementation details of CPU and GPU cancellation are described in §5.
5 Detailed Design and Implementation
5.1 GPU Executor
The GPU executor executes experts whose parameters can be either cached or uncached in GPU memory. Overlapping the transfer of cache-miss expert parameters with the execution of cache-hit experts is crucial for improving GPU execution efficiency [23, 44, 52, 60]. To enable this overlap, the GPU executor uses two worker threads: a GPU execution thread that launches GPU kernels for cache-hit experts, and a fetcher thread that transfers expert parameters from host memory to GPU memory.
Peek. The peek() operation is used to get the next task in the shared deque without removing it, which is essential to enable tail racing. Both threads perform peek() on the shared deque, searching from the front according to their respective roles. The GPU execution thread peeks cache-hit expert tasks, while the fetcher thread peeks cache-miss expert tasks. Once an expert's parameters have been fully transferred to GPU memory, the fetcher thread marks the task as a cache hit, making it available to the GPU execution thread through peek(). This allows GPU computation to overlap with data transfer.
Dequeue. The GPU execution thread performs dequeue() after an expert's GPU kernels complete. Since GPU kernels run asynchronously, waiting immediately after each launch would leave the GPU idle during dequeue() and the next kernel launch. To overlap this control flow with GPU computation, APTO allows a limited number of in-flight expert tasks, i.e., tasks submitted to the GPU whose completion has not yet been processed, and tracks their completion with events.
As shown in Algorithm 1, the GPU execution thread continues to peek and launch cache-hit expert tasks, skipping those already in flight, until the limit is reached or no eligible task remains. It then waits for the oldest in-flight task to complete and performs dequeue(). A successful dequeue() decrements a shared counter that tracks unfinished expert tasks across both the CPU and GPU executors. The thread repeats this process, allowing completion handling to overlap with the GPU execution of subsequent experts. Our implementation sets the in-flight limit to two. When the counter reaches zero, all required expert tasks have completed, and the GPU execution thread exits its execution loop after processing any remaining in-flight tasks.
Cancellation. APTO uses the unfinished task counter to detect when ongoing redundant execution is no longer needed. Since GPU kernels run asynchronously and their execution time is negligible compared with parameter transfer time, APTO only cancels redundant transfers for cache-miss experts while allowing already-launched kernels to finish. For on-demand fetches, the fetcher thread transfers parameters in chunks and synchronizes after each chunk to check whether the unfinished task counter has reached zero. If so, it stops transferring the remaining chunks.
Cache management. APTO integrates ProMoE [44] for expert cache management, enabling expert prefetching that overlaps data transfer with non-expert computation to improve inference performance. To keep prediction efficient, APTO runs a lightweight structure predictor on the GPU to avoid CPU contention and hide its computation behind CPU execution and cache-miss expert transfers. The predicted expert tasks are placed in a prefetch queue, which the fetcher thread processes at lower priority than on-demand transfers.
5.2 CPU Executor
The CPU executor uses multiple worker threads to execute expert tasks cooperatively. When entering an MoE block and starting hybrid execution, the inference process wakes all CPU workers, which then follow Algorithm 2. The first worker acts as the master: it performs peek() from the back of the shared deque to fetch the next expert task, then synchronizes with the others through a barrier so that all workers share the same task metadata. The workers execute the task in parallel, chunk by chunk. After each chunk, the master checks whether the unfinished task counter has reached zero. If so, it sets a cancellation flag to stop the other workers from executing remaining chunks. Otherwise, after the task completes, the master performs dequeue() to remove it from the queue and decrements the counter if successful.
5.3 CUDA Graph Support
CUDA graph [19] is commonly used to reduce kernel launch overhead and improve GPU efficiency. Although APTO's hybrid execution of MoE experts is dynamic and difficult to capture with a static CUDA graph, non-expert components
Algorithm 2: CPU execution worker
Data: Q: Shared Deque; N: Unfinished Task Count Data: Shared: task, cancel, barrier Data: Thread-local: i (thread ID)
1 while true do 2 if i = 0 then 3 task ← Q.peek_back(); 4 cancel ← false; 5 barrier.wait(); 6 if task = 0 then break; // Cooperative execution in chunks 7 foreach chunk ∈ task.chunks do 8 execute_chunk(i, chunk); 9 if i = 0 then cancel ← (N = 0); 10 barrier.wait(); 11 if cancel then break; 12 if i = 0 ∧ ¬cancel then 13 if Q.dequeue(task) then 14 N ← N - 1;
are executed on the GPU and follow static execution patterns, allowing them to benefit from CUDA graphs. Specifically, APRO captures a subgraph for each non-expert component and launches the corresponding graph at runtime. For expert computation, the bottleneck lies in data transfer and CPU execution, making kernel launch overhead negligible.
5.4 Support for Unified Memory Architecture
Recent AI PCs [8, 28, 42] and mini AI supercomputers [7, 11] increasingly adopt Unified Memory Architecture (UMA) [39, 55], in which the CPU and GPU share physical memory. This allows all model parameters, including expert parameters, to reside in the typically larger host memory and to be accessed directly by both processors. LLM inference on these systems is typically bounded by memory bandwidth [17, 50], which GPU-only execution can often saturate. However, GPU contention from other applications can degrade inference performance. Adaptive hybrid execution remains useful in this setting, as it can dynamically shift expert computation to the CPU when the GPU is busy. We therefore extend APTO to UMA-based PCs to retain this adaptability.
On UMA-based PCs, APTO reuses the shared deque and the CPU and GPU executors. Since all expert parameters are directly accessible in shared memory, APTO treats all experts as cache-hit experts and does not start the fetcher thread. Accordingly, affinity-aware scheduling orders expert tasks solely by their input token counts, and ignores cache status and activation frequency.
When the GPU is not contended by other applications, concurrent CPU execution introduces competition for shared memory bandwidth, degrading inference performance compared with GPU-only execution. To avoid this, APTO modifies the CPU executor to enable hybrid execution only when GPU progress stalls. Before fetching a task, the CPU executor checks GPU task completion. If no GPU expert task completes within a time window, APTO treats this as an indication of GPU contention from other applications and allows the CPU executor to fetch and execute an expert task. This reduces unnecessary CPU-GPU memory-bandwidth contention while preserving adaptability to GPU contention.
6 Evaluation
We implemented APTO as a MoE LLM inference engine on top of llama.cpp [25]. At inference time, a custom operator received the gate logits and expert selections of each MoE block, triggering APTO's core module to schedule hybrid execution. Both CPU and GPU executors invoked llama.cpp operators to compute expert outputs.
Hardware. We conducted our evaluation on a PC equipped with an NVIDIA RTX 5080 GPU (16 GB GDDR7), an Intel Core Ultra 9 285K CPU with 8 performance cores (8 threads) and 16 efficient cores (16 threads), and 96 GB of host DRAM. The GPU was connected to the CPU via PCIe 5.0 × 16, providing a unidirectional bandwidth of 64 GB/s. We restricted the evaluated workloads to 12 CPU cores (8 performance cores and 4 efficient cores). We also evaluated APTO on NVIDIA DGX Spark [43] to assess its performance on the UMA platform, as detailed in §6.6.
Workloads. For LLM inference, we used three MoE-based LLMs: Qwen1.5-MoE [2] (QW-1), DeepSeek-V2-Lite [22] (DS-2), and Qwen3-30B-A3B [47] (QW-3). These models differed in both the number of experts activated per token (4, 6, and 8, respectively) and their activation patterns. We used batch sizes of 1 and 4 to further vary the patterns of expert tasks. Prompts were drawn from ShareGPT [1] and each request generated 48 tokens.
For experiments involving co-execution of LLM inference and CPU programs, we used compilation, which was a representative CPU workload commonly encountered in coding-agent scenarios. Specifically, we used Ninja to compile zstd [3]. For experiments involving co-execution of LLM inference and GPU programs, we used ResNet-50 [26] inference implemented in PyTorch as the GPU workload. Table 1 summarized the evaluation scenarios, including standalone inference and co-execution with CPU or GPU workloads.
Baselines. To demonstrate the effectiveness of our design, we compared APTO against state-of-the-art MoE inference baselines designed for limited GPU memory. (1) FineMoE [60] (Fine) was a state-of-the-art GPU-only method that improved inference performance through expert prefetching. It used fine-grained expert tracing to accurately predict future activated experts and overlap their data transfer with GPU computation. (2) Llama.cpp [25] (LL) partitioned experts at the layer level, placing some layers' experts on the GPU and offloading others to the CPU. In the prefill stage, it transferred all offloaded experts to the GPU before execution. In

Figure 7. Comparison of the inference performance and co-executing workload throughput for ArPro and its baselines when serving QW-3 and DS-2 with batch size 4 and QW-1 with batch size 1 across the Solo and CPU co-execution scenarios.
Table 1. Co-executing workload configurations across evaluation scenarios. Compile/n denoted n parallel compilation jobs. Priority was relative to LLM inference; Pattern indicated continuous or intermittent execution. Solo denoted standalone inference.
| Scenario | Workload | Priority | Pattern |
|---|---|---|---|
| Solo | - | - | - |
| Low | Compile/2 | Equal | Continuous |
| Medium | Compile/6 | Equal | Continuous |
| High | Compile/10 | Equal | Continuous |
| Dynamic | Compile/10 | Equal | 5 s on / 5 s off |
| HP | Compile/6 | High | Continuous |
| LP | Compile/6 | Low | Continuous |
| GPU | ResNet-50 | Equal | Continuous |
the decode stage, it executed each expert on its assigned processor. It did not overlap GPU execution with CPU execution or data transfer. (3) KTransformers [16] (KT) was a popular open-source MoE inference framework. It partitioned each layer's experts between the CPU and GPU, executed them in parallel, and assigned experts based on activation frequency to improve load balance. For fair comparison, we used KTransformers v0.6.2 with the AVX2-only CPU backend and disabled expert deferral to ensure lossless inference. (4) HybriMoE [64] (Hybri) used prediction-guided dynamic partitioning. It modeled CPU execution time as proportional to the number of input tokens, while treating GPU computation and PCIe transfer time as constant per expert, and used these models for load balancing. In our experiments, HybriMoE used the same cache management and prefetching strategies as ArPro to ensure a fair comparison of scheduling strategies.
Since FineMoE and HybriMoE were built on Python-based codebases with substantial interpreter overhead, we reproduced their methods on top of llama.cpp for fair performance comparison and carefully tuned them for optimal performance. On the same MoE models, our reproductions achieved substantially higher performance than the original implementations. For CPU/GPU hybrid inference systems, we used 8 threads for the CPU executor.
Metrics. We evaluated prefill and decode performance separately, following standard practice [16, 46, 60, 64]. We measured prefill throughput using PPS (prompts per second), which was more intuitive than TTFT (time to first token), and decode throughput using TPS (tokens per second). Higher values indicated better performance for both metrics. We assessed CPU-GPU load balance using LBR (load-balancing ratio), the fraction of total hybrid expert-execution time during which the CPU and GPU executed concurrently. LBR ranged from 0 to 1, with higher values indicating better balance. We measured the Throughput of co-executing workloads in builds/min for compilation and images/s for ResNet-50 inference. When reporting CPU/GPU expert fractions, we attributed each expert to the executor whose result was used in the output merge.
6.1 Overall Performance
We evaluated ArPro and its baselines under Solo and the CPU co-execution scenarios from Low to LP in Table 1 to cover different resource-sharing conditions. We used QW-3 and DS-2 with batch size 4 and QW-1 with batch size 1 to vary the number of expert tasks and their activation patterns. Figure 7 presented the results for all three configurations. GPU contention was evaluated separately in §6.4.
Solo. Compared with FineMoE, a GPU-only method, ArPro achieved average speedups of and in prefill and decode, respectively, by executing experts on the CPU in

Figure 8. Comparison of APTO's prefill and decode performance with and without affinity-aware scheduling.
parallel with GPU execution. Compared with llama.cpp, the corresponding speedups were 2.65× and 1.62×. APTO reduced expert transfers through CPU execution in prefill and avoided sequential CPU and GPU execution in decode.
Compared with KTransformers, APTO achieved average speedups of 6.94× and 1.30× in prefill and decode, respectively. KTransformers' static partitioning yielded average LBRs of 0.01 and 0.10 in prefill and decode, respectively, compared with 0.93 and 0.97 for APTO. Compared with HybriMoE, APTO achieved average speedups of 1.01× and 1.22×, respectively. Inaccuracies in HybriMoE's performance model limited its average LBRs to 0.85 and 0.39. These results highlighted the benefit of dynamic scheduling even without co-executing programs.
Co-execution with CPU workloads. In the Low, Medium, and High scenarios, we increased compilation concurrency while keeping the shared CPU set unchanged, simulating different levels of CPU contention for co-executing workloads.
Both HybriMoE and KTransformers failed to adapt to contention-induced CPU slowdowns because of inaccurate performance predictions and static expert partitioning, respectively. As contention intensified, HybriMoE's average prefill LBR fell from 0.80 to 0.48. Its decode LBR decreased for QW-3 and DS-2 but increased for QW-1. For QW-1, HybriMoE assigned too many experts to the GPU in Solo; CPU contention prolonged CPU execution, bringing the two paths closer in duration. Overall, its decode LBR averaged only 0.35 across the three configurations and contention levels. KTransformers' greater reliance on CPU execution and busy-waiting synchronization further increased its sensitivity to contention. In contrast, APTO achieved average prefill and decode LBRs of 0.89 and 0.79, respectively, showing its adaptability to varying contention levels. Across all three configurations and contention levels, APTO achieved average prefill and decode speedups of 1.44× and 1.62× over HybriMoE, and 8.91× and 3.18× over KTransformers.
Although FineMoE's throughput remained relatively stable because its expert execution did not compete with compilation for CPU time, APTO achieved an average decode speedup of 1.67× over FineMoE. In prefill, APTO achieved average speedups of 1.25× and 1.13× under Low and Medium contention, respectively, but averaged only 81.2% of FineMoE's performance under High contention. FineMoE's cache policy
was better suited to prefill, yielding an average cache hit rate 1.12× that of APTO under High contention. Stronger contention reduced the contribution of CPU execution, making this cache advantage more consequential. Llama.cpp also used a GPU-only method for prefill, and APTO consistently outperformed it with an average prefill speedup of 2.74×. In decode, APTO achieved an average speedup of 6.34× over llama.cpp across the contention levels.
The Dynamic scenario showed similar inference performance trends. APTO maintained high inference throughput and average prefill and decode LBRs of 0.89 and 0.78, respectively, demonstrating its adaptability to time-varying CPU contention.
Across these four co-execution scenarios, compilation achieved 98.6% of its throughput under the GPU-only FineMoE on average when co-executed with APTO, whose blocking CPU synchronization allowed waiting workers to yield CPU time. Compilation throughput was similar under APTO and HybriMoE, which used the same CPU operators and exhibited similar CPU execution patterns. Under APTO, compilation achieved 1.14× and 1.53× the throughput obtained under llama.cpp and KTransformers, respectively, on average. Llama.cpp's CPU execution during decode and KTransformers' heavier CPU workload and busy-waiting synchronization left fewer CPU cycles for compilation.
Scheduling priorities. We used HP and LP to examine how APTO adapted to OS scheduling decisions, with compilation assigned higher and lower priority than inference, respectively. Both scenarios used the same compilation concurrency as Medium.
Under HP, compilation throughput was similar across inference systems because the OS prioritized compilation. Despite inference's lower priority, APTO maintained average prefill and decode LBRs of 0.80 and 0.76, respectively, and achieved corresponding average speedups of 17.58× and 7.62× over the baselines. Under LP, inference performance followed a pattern similar to Solo, as the OS prioritized inference over compilation. Compared with APTO, FineMoE and llama.cpp achieved higher compilation throughput but lower performance for the higher-priority inference workload.
Summary. Across the three configurations and four baselines, APTO achieved average prefill and decode speedups of 2.96× and 1.52× under Solo, respectively. Across the six CPU co-execution scenarios, the corresponding average speedups were 5.97× and 3.45×, while compilation achieved 1.08× the throughput obtained with the baselines on average. These results demonstrated that APTO improved inference performance while accommodating co-executing CPU workloads.
6.2 Affinity-aware Scheduling
Figure 8 showed that affinity-aware scheduling achieved average speedups of 1.09× in prefill and 1.08× in decode. To explain these gains, Figure 9 compared the per-expert

Figure 9. The CDF of per-expert execution time on the GPU and CPU for APro with and without affinity-aware scheduling during the prefill and decode stages when serving QW-3 with batch size 4.

Figure 10. Comparison of performance for APro with and without cancellable tail racing in three straggler scenarios when serving the DS-2 and QW-1 models with batch size 1.
execution-time distributions on the GPU and CPU with and without affinity-aware scheduling when serving QW-3 with batch size 4.
On the GPU, expert execution time was mainly determined by whether the expert parameters were cached. This produced a two-stage CDF: the left stage corresponded to cache-hit experts, while the right stage corresponded to cache-miss experts. Affinity-aware scheduling prioritized cache-hit experts for GPU execution and gave frequently activated cache-miss experts higher GPU priority to improve cache hit rates in subsequent iterations. Together, these priorities increased the fraction of cache-hit experts among GPU executions (Figure 9(a) and (b)).
On the CPU, expert execution time increased with the number of input tokens, so affinity-aware scheduling prioritized experts with fewer input tokens for CPU execution. In prefill, each forward pass processed many tokens, producing substantial variation in token counts and execution times across experts. The scheduling policy therefore reduced the number of long-running CPU executions (Figure 9(c)). In decode, each forward pass processed fewer tokens, so expert execution times were more similar. Nevertheless, affinity-aware scheduling still reduced the tail execution times on the CPU (Figure 9(d)).
Overall, affinity-aware scheduling improved the performance of APro by prioritizing experts with better affinity to the target processor, either GPU or CPU, which shifted the per-expert execution-time distribution to the left.

Figure 11. Comparison of the inference performance and ResNet-50 throughput for APro and its baselines when serving the DS-2 and QW-3 models with batch size 4 under the GPU scenario.
6.3 Cancellable Tail Racing
We evaluated cancellable tail racing on DS-2 and QW-1 with batch size 1 under three controlled straggler scenarios. We focused on decode because fewer expert tasks made this stage more sensitive to stragglers. (1) Limited CPU: We used the High contention scenario in Table 1, where CPU contention made the CPU executor the straggler. (2) All Cache: We remapped activated experts to GPU-cached experts to achieve a 100% cache hit rate. The faster GPU execution left the CPU executor as the straggler. (3) Slow PCIe: We increased each GPU transfer to four times its original size to emulate a slow or contended PCIe link, making the GPU executor the straggler.
Figure 10 compared decode throughput with and without tail racing. In Limited CPU and All Cache, tail racing allowed the GPU to complete straggling CPU tasks. It reduced the average CPU expert fraction from 22.43% to 3.49% and achieved average speedups of 1.68× and 1.32×, respectively. In Slow PCIe, tail racing allowed the CPU to complete straggling GPU tasks, increasing the average CPU expert fraction from 39.69% to 40.18%. However, the average GPU cache hit rate fell from 72.15% to 64.91% in this scenario. The additional parameter transfers offset part of the benefit of mitigating stragglers, but tail racing still achieved an average decode speedup of 1.05× over the version without tail racing.
We also evaluated tail racing under Solo using QW-3 and DS-2 with batch size 4 and QW-1 with batch size 1. Across these configurations, it achieved average speedups of 1.12× in prefill and 1.01× in decode.
6.4 GPU Contention
Although GPU contention was less common on PCs, we used a controlled experiment to verify that APro adapted symmetrically when GPU capacity varied. We evaluated APro and its baselines on DS-2 and QW-3 with batch size 4 under the GPU scenario in Table 1. Compared with Solo, APro reduced the GPU expert fraction from 81.84% to 80.50% in prefill and from 79.60% to 68.15% in decode in response to GPU contention. It maintained LBRs above 0.83 and 0.90, respectively.
As shown in Figure 11, compared with FineMoE, APro achieved average speedups of 1.44× and 1.75× in prefill

Figure 12. Completion time of the multi-agent application using QW-3 and DS-2 models served by APTO and its baselines. The number of available CPU cores was set to 12.
and decode, respectively, with similar ResNet-50 throughput. Compared with llama.cpp, APTO achieved an average prefill speedup of 2.89× and similar decode throughput, while retaining 76.79% of the ResNet-50 throughput obtained with llama.cpp. Llama.cpp's sequential execution left more GPU time for ResNet-50, while APTO's parallel CPU/GPU execution increased competition for GPU resources.
Compared with KTransformers, APTO achieved 9.23× the prefill throughput and 77.06% of the decode throughput, while delivering 1.51× the ResNet-50 throughput. KTransformers retained more of its Solo decode throughput, but interfered more with ResNet-50. Its use of CUDA graphs contributed to this trade-off by reducing gaps between GPU operations and leaving fewer opportunities for ResNet-50 execution. In decode, HybriMoE's inaccurate performance model assigned too many experts to the CPU for both models, leaving the GPU underutilized in Solo. GPU contention offset this imbalance by slowing GPU execution. HybriMoE achieved average LBRs of 0.85 and 0.97 in prefill and decode, respectively, close to those of APTO. Their similar expert partitioning and CPU/GPU load balance resulted in comparable inference and ResNet-50 throughput.
6.5 Case Study: Multi-agent Application
To evaluate end-to-end performance in a multi-agent application, we replayed the traces discussed in Section 2 with four concurrent agent workers. We deployed APTO and each baseline in turn as a local LLM inference server and routed the recorded LLM requests to it. For each request, we fixed the output length to match that of the corresponding response in the original trace. After inference completed, each worker continued with the recorded agent actions rather than using the locally generated response to determine subsequent actions. Figure 12 showed the completion times for QW-3 and DS-2. Across both models and all baselines, APTO consistently achieved the shortest completion time, with speedups of 1.04×–4.07× and an average of 2.02×.
6.6 UMA-based PCs
We evaluated APTO's performance and adaptability on NVIDIA DGX Spark. Since all expert parameters fit in shared memory without offloading, we used GPU-only llama.cpp as the baseline. We evaluated QW-3 and DS-2 with batch size 4

Figure 13. Comparison of prefill and decode performance for APTO and llama.cpp on a UMA-based PC under Solo and GPU scenarios.
and QW-1 with batch size 1 under the Solo and GPU scenarios in Table 1. Figure 13 showed their prefill and decode throughput.
Under Solo, APTO maintained a near-zero CPU expert fraction and achieved an average decode speedup of 1.07× over llama.cpp. Under GPU contention, it shifted work to the CPU when GPU progress stalled. For QW-3 and DS-2, GPU expert fractions dropped to 98.93% and 95.53%, with decode speedups of 1.27× and 1.09×, respectively. For QW-1, limited scheduling flexibility left decode performance at 81.03% of llama.cpp's. ResNet-50 throughput alongside APTO averaged 93.93% of that alongside llama.cpp across the three configurations because of shared memory bandwidth contention.
In prefill, APTO achieved an average of 88.37% of llama.cpp's performance across the three configurations and both scenarios. This lower performance resulted from the use of pinned host memory to make expert parameters accessible to both the CPU and GPU. The coherence requirements of these shared accesses introduced overhead compared with device memory.
7 Related Work
Serving MoE models under limited GPU memory. GPU-only methods [23, 44, 52, 60] reduce offloading overhead through expert caching and prefetching. APTO complements these techniques with CPU execution to further improve performance. Prior CPU/GPU hybrid methods [14, 16, 33, 58, 64] are self-centered, optimizing resource utilization under exclusive resource access. In contrast, APTO enables self-adaptive hybrid execution through dynamic scheduling, adapting to runtime resource contention.
Algorithm-system co-design for MoE inference. Prior work [16, 27, 34, 46, 66] modifies expert selection, numerical precision, or execution dependencies to reduce data transfer or improve computation overlap. Such changes alter the original model computation and unavoidably affect model accuracy. In contrast, APTO optimizes expert execution through dynamic scheduling while preserving the original inference computation flow.
General-purpose dynamic scheduling. Dynamic scheduling is widely used to balance workloads and improve resource utilization in distributed clusters [21, 61], multicore systems [12, 18], and heterogeneous platforms [10, 32]. APTO specializes dynamic scheduling for MoE CPU/GPU hybrid inference on shared PCs, accounting for expert characteristics while adapting the CPU/GPU work split to runtime resource contention.
8 Conclusion
This paper presents APTO, a self-adaptive CPU/GPU hybrid inference system for MoE models on shared PCs. Through dynamic scheduling, APTO adapts expert assignments to execution progress and runtime resource contention. Our evaluation demonstrates its efficiency and adaptability under diverse colocated workloads.
References
[1] 2024. anon8231489123/ShareGPT_Vicuna_unfiltered · Datasets at Hugging Face.
[2] 2024. Qwen/Qwen1.5-MoE-A2.7B-Chat · Hugging Face. https://huggingface.co/Qwen/Qwen1.5-MoE-A2.7B-Chat
[3] 2026. facebook/zstd: Zstandard - Fast real-time compression algorithm. https://github.com/facebook/zstd.
[4] 2026. openai/codex: Lightweight coding agent that runs in your terminal. https://github.com/openai/codex.
[5] David Álvarez, Kevin Sala, Marcos Maroñas, Aleix Roca, and Vincenc Beltran. 2021. Advanced synchronization techniques for task-based runtime systems. In Proceedings of the 26th ACM SIGPLAN Symposium on Principles and Practice of Parallel Programming. 334–347.
[6] Ganesh Ananthanarayanan, Ali Ghodsi, Scott Shenker, and Ion Stoica. 2013. Effective straggler mitigation: Attack of the clones. In 10th USENIX Symposium on Networked Systems Design and Implementation (NSDI 13). 185–198.
[7] Apple Inc. 2025. Mac Studio. https://support.apple.com/en-us/122211.
[8] Apple Inc. 2025. MacBook Pro. https://support.apple.com/en-us/125405.
[9] Cédric Augonnet, Jérôme Clet-Ortega, Samuel Thibault, and Raymond Namyst. 2010. Data-aware task scheduling on multi-accelerator based platforms. In 2010 IEEE 16th international conference on parallel and distributed systems. IEEE, 291–298.
[10] Cédric Augonnet, Samuel Thibault, Raymond Namyst, and Pierre-André Wacrenier. 2011. StarPU: a unified platform for task scheduling on heterogeneous multicore architectures. Concurrency and computation: practice and experience 23, 2 (2011), 187–198.
[11] Beelink. 2025. Beelink GTR9 Pro AMD Ryzen AI Max+ 395 Processor. https://www.bee-link.com/products/beelink-gtr9-pro-amd-ryzen-ai-max-395.
[12] Robert D Blumofe and Charles E Leiserson. 1999. Scheduling multi-threaded computations by work stealing. Journal of the ACM (JACM) 46, 5 (1999), 720–748.
[13] Umut Çalkıylmaz, Nitin Nayak, Jinghua Groppe, and Sven Groppe. 2025. OptiMA: a transaction-based framework with throughput optimization for very complex multi-agent systems. arXiv preprint arXiv:2511.03761 (2025).
[14] Shiyi Cao, Shu Liu, Tyler Griggs, Peter Schafhalter, Xiaoxuan Liu, Ying Sheng, Joseph E Gonzalez, Matei Zaharia, and Ion Stoica. 2025. Moelightning: High-throughput moe inference on memory-constrained gpus. In Proceedings of the 30th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 1. 715–730.
[15] David Chase and Yossi Lev. 2005. Dynamic circular work-stealing deque. In Proceedings of the seventeenth annual ACM symposium on Parallelism in algorithms and architectures. 21–28.
[16] Hongtao Chen, Weiyu Xie, Boxin Zhang, Jingqi Tang, Jiahao Wang, Jianwei Dong, Shaoyuan Chen, Ziwei Yuan, Chen Lin, Chengyu Qiu, et al. 2025. Ktransformers: Unleashing the full potential of cpu/gpu hybrid inference for moe models. In Proceedings of the ACM SIGOPS 31st Symposium on Operating Systems Principles. 1014–1029.
[17] Le Chen, Dahu Feng, Erhu Feng, Yingrui Wang, Rong Zhao, Yubin Xia, Pinjie Xu, and Haibo Chen. 2025. Characterizing mobile soc for accelerating heterogeneous llm inference. In Proceedings of the ACM SIGOPS 31st Symposium on Operating Systems Principles. 359–374.
[18] Rong Chen, Haibo Chen, and Binyu Zang. 2010. Tiled-MapReduce: optimizing resource usages of data-parallel applications on multicore with tiling. In Proceedings of the 19th International Conference on Parallel Architectures and Compilation Techniques (Vienna, Austria) (PACT '10). Association for Computing Machinery, New York, NY, USA, 523–534. doi:10.1145/1854273.1854337
[19] NVIDIA Corporation. 2026. CUDA Programming Guide. https://docs.nvidia.com/cuda/cuda-programming-guide.
[20] Damai Dai, Chengqi Deng, Chenggang Zhao, R. X. Xu, Huazuo Gao, Deli Chen, Jiashi Li, Wangding Zeng, Xingkai Yu, Y. Wu, Zhenda Xie, Y. K. Li, Panpan Huang, Fuli Luo, Chong Ruan, Zhifang Sui, and Wenfeng Liang. 2024. DeepSeekMoE: Towards Ultimate Expert Specialization in Mixture-of-Experts Language Models. arXiv:2401.06066 doi:10.48550/arXiv.2401.06066
[21] Jeffrey Dean, Sanjay Ghemawat, et al. 2004. Mapreduce: simplified data processing on large clusters.. In osdi, Vol. 4, USA, 137–150.
[22] DeepSeek-AI, Aixin Liu, Bei Feng, Bin Wang, Bingxuan Wang, Bo Liu, Chenggang Zhao, Chengqi Dengr, Chong Ruan, Damai Dai, Daya Guo, Dejian Yang, Deli Chen, Dongjie Ji, Erhang Li, Fangyun Lin, Fuli Luo, Guangbo Hao, Guanting Chen, Guowei Li, H. Zhang, Hanwei Xu, Hao Yang, Haowei Zhang, Honghui Ding, Huajian Xin, Huazuo Gao, Hui Li, Hui Qu, J. L. Cai, Jian Liang, Jianzhong Guo, Jiaqi Ni, Jiashi Li, Jin Chen, Jingyang Yuan, Junjie Qiu, Junxiao Song, Kai Dong, Kaige Gao, Kang Guan, Lean Wang, Lecong Zhang, Lei Xu, Leyi Xia, Liang Zhao, Liyue Zhang, Meng Li, Miaojun Wang, Mingchuan Zhang, Minghua Zhang, Minghui Tang, Mingming Li, Ning Tian, Panpan Huang, Peiyi Wang, Peng Zhang, Qihao Zhu, Qinyu Chen, Qiushi Du, R. J. Chen, R. L. Jin, Ruiqi Ge, Ruizhe Pan, Runxin Xu, Ruyi Chen, S. S. Li, Shanghao Lu, Shangyan Zhou, Shanhuang Chen, Shaoqing Wu, Shengfeng Ye, Shirong Ma, Shiyu Wang, Shuang Zhou, Shuiping Yu, Shunfeng Zhou, Size Zheng, T. Wang, Tian Pei, Tian Yuan, Tianyu Sun, W. L. Xiao, Wangding Zeng, Wei An, Wen Liu, Wenfeng Liang, Wenjun Gao, Wentao Zhang, X. Q. Li, Xiangyue Jin, Xianzuo Wang, Xiao Bi, Xiaodong Liu, Xiaohan Wang, Xiaojin Shen, Xiaokang Chen, Xiaosha Chen, Xiaotao Nie, Xiaowen Sun, Xiaoxiang Wang, Xin Liu, Xin Xie, Xingkai Yu, Xinnan Song, Xinyi Zhou, Xinyu Yang, Xuan Lu, Xuecheng Su, Y. Wu, Y. K. Li, Y. X. Wei, Y. X. Zhu, Yanhong Xu, Yanping Huang, Yao Li, Yao Zhao, Yaofeng Sun, Yaohui Li, Yaohui Wang, Yi Zheng, Yichao Zhang, Yiliang Xiong, Yilong Zhao, Ying He, Ying Tang, Yishi Piao, Yixin Dong, Yixuan Tan, Yiyuan Liu, Yongji Wang, Yongqiang Guo, Yuchen Zhu, Yuduan Wang, Yuheng Zou, Yukun Zha, Yunxian Ma, Yuting Yan, Yuxiang You, Yuxuan Liu, Z. Z. Ren, Zehui Ren, Zhangli Sha, Zhe Fu, Zhen Huang, Zhen Zhang, Zhenda Xie, Zhewen Hao, Zhihong Shao, Zhiniu Wen, Zhipeng Xu, Zhongyu Zhang, Zhuoshu Li, Zihan Wang, Zihui Gu, Zilin Li, and Ziwei Xie. 2024. DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Model. arXiv:2405.04434 doi:10.48550/arXiv.2405.04434
[23] Artyom Eliseev and Denis Mazur. 2023. Fast Inference of Mixture-of-Experts Language Models with Offloading. arXiv:2312.17238 [cs.LG] https://arxiv.org/abs/2312.17238
[24] Adam Fourney, Gagan Bansal, Hussein Mozannar, Cheng Tan, Eduardo Salinas, Friederike Niedtner, Grace Proebsting, Griffin Bassman, Jack Gerrits, Jacob Alber, et al. 2024. Magentic-one: A generalist multi-agent system for solving complex tasks. arXiv preprint arXiv:2411.04468 (2024).
[25] Georgi Gerganov. 2024. ggerganov/llama.cpp. https://github.com/ggerganov/llama.cpp original-date: 2023-03-10T18:58:00Z.
[26] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. 2016. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition. 770–778.
[27] Ranggi Hwang, Jianyu Wei, Shijie Cao, Changho Hwang, Xiaohu Tang, Ting Cao, and Mao Yang. 2024. Pre-gated MoE: An Algorithm-System Co-Design for Fast and Scalable Mixture-of-Expert Inference. In 2024 ACM/IEEE 51st Annual International Symposium on Computer Architecture (ISCA). 1018–1031. doi:10.1109/ISCA59077.2024.00078
[28] Intel Corporation. 2025. Intel Core Ultra Processors. https://www.intel.com/content/www/us/en/products/details/processors/core-ultra.html.
[29] Robert A. Jacobs, Michael I. Jordan, Steven J. Nowlan, and Geoffrey E. Hinton. 1991. Adaptive Mixtures of Local Experts. 3, 1 (1991), 79–87. doi:10.1162/neco.1991.3.1.79 Conference Name: Neural Computation.
[30] Albert Q Jiang, Alexandre Sablayrolles, Antoine Roux, Arthur Mensch, Blanche Savary, Chris Bamford, Devendra Singh Chaplot, Diego de las Casas, Emma Bou Hanna, Florian Bressand, et al. 2024. Mixtral of experts. arXiv preprint arXiv:2401.04088 (2024).
[31] Carlos E Jimenez, John Yang, Alexander Wettig, Shunyu Yao, Kexin Pei, Ofir Press, and Karthik R Narasimhan. 2024. SWE-bench: Can Language Models Resolve Real-world Github Issues? In The Twelfth International Conference on Learning Representations. https://openreview.net/forum?id=VTF8yNQM66
[32] Rashid Kaleem, Rajkishore Barik, Tatiana Shpeisman, Brian T Lewis, Chunling Hu, and Keshav Pingali. 2014. Adaptive heterogeneous scheduling for integrated GPUs. In Proceedings of the 23rd international conference on parallel architectures and compilation. 151–162.
[33] Keisuke Kamahori, Yile Gu, Kan Zhu, and Baris Kasikki. 2024. Fiddler: CPU-GPU Orchestration for Fast Inference of Mixture-of-Experts Models. arXiv:2402.07033 [cs.LG]
[34] Rui Kong, Yuanchun Li, Qingtian Feng, Weijun Wang, Xiaozhou Ye, Ye Ouyang, Linghe Kong, and Yunxin Liu. 2024. SwapMoE: Serving Off-the-shelf MoE-based Large Language Models with Tunable Memory Budget. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). 6710–6720.
[35] Woosuk Kwon, Zhuohan Li, Siyuan Zhuang, Ying Sheng, Liannin Zheng, Cody Hao Yu, Joseph Gonzalez, Hao Zhang, and Ion Stoica. 2023. Efficient Memory Management for Large Language Model Serving with PagedAttention. In Proceedings of the 29th Symposium on Operating Systems Principles (New York, NY, USA, 2023-10-23) (SOSP '23). Association for Computing Machinery, 611–626. doi:10.1145/3600006.3613165
[36] Mengyang Liu, Taozhi Chen, Zhenhua Xu, Xue Jiang, and Yihong Dong. 2026. Multi-agent Collaboration with State Management. arXiv preprint arXiv:2605.20563 (2026).
[37] Evangelos P. Markatos and Thomas J. LeBlanc. 1994. Using processor affinity in loop scheduling on shared-memory multiprocessors. IEEE Transactions on Parallel and Distributed systems 5, 4 (1994), 379–400.
[38] Constantine D Polychronopoulos and David J Kuck. 1987. Guided self-scheduling: A practical scheduling scheme for parallel supercomputers. IEEE Trans. Comput. 100, 12 (1987), 1425–1439.
[39] Jason Power, Arkaprava Basu, Junli Gu, Sooraj Puthoor, Bradford M Beckmann, Mark D Hill, Steven K Reinhardt, and David A Wood. 2013. Heterogeneous system coherence for integrated CPU-GPU systems. In Proceedings of the 46th Annual IEEE/ACM International Symposium on Microarchitecture. 457–467.
[40] Aleksandar Prokopec and Martin Odersky. 2013. Near optimal work-stealing tree scheduler for highly irregular data-parallel workloads. In International Workshop on Languages and Compilers for Parallel Computing. Springer, 55–86.
[41] Guanqiao Qu, Qiyuan Chen, Wei Wei, Zheng Lin, Xianhao Chen, and Kaibin Huang. 2025. Mobile edge intelligence for large language models: A contemporary survey. IEEE Communications Surveys & Tutorials 27, 6 (2025), 3820–3860.
[42] Qualcomm. 2025. Laptops Powered by Snapdragon. https://www.qualcomm.com/snapdragon/laptops-and-tablets.
[43] A. Skende, G. Rosseel, and N. Pinckney. 2026. 17.1 NVIDIA GB10: SoC Built for AI Acceleration. In 2026 IEEE International Solid-State Circuits Conference (ISSCC), Vol. 69. 298–300. doi:10.1109/ISSCC49663.2026.11409351
[44] Xiaoniu Song, Zihang Zhong, Rong Chen, and Haibo Chen. 2024. Promoe: Fast moe-based llm serving using proactive caching. arXiv preprint arXiv:2410.22134 (2024).
[45] Yixin Song, Zeyu Mi, Haotong Xie, and Haibo Chen. 2023. PowerInfer: Fast Large Language Model Serving with a Consumer-grade GPU. https://arxiv.org/abs/2312.12456v1
[46] Peng Tang, Jiacheng Liu, Xiaofeng Hou, Yifei Pu, Jing Wang, Pheng-Ann Heng, Chao Li, and Minyi Guo. 2026. MoE-APEX: An Efficient MoE Inference System with Adaptive Precision Expert Offloading. In Proceedings of the 31st ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 2 (USA) (ASPLOS '26). Association for Computing Machinery, New York, NY, USA, 1185–1200. doi:10.1145/3779212.3790187
[47] Qwen Team. 2025. Qwen3 Technical Report. arXiv:2505.09388 [cs.CL] https://arxiv.org/abs/2505.09388
[48] Hans Vandierendonck, George Tzenakis, and Dimitrios S Nikolopoulos. 2011. A unified scheduler for recursive and task dataflow parallelism. In 2011 International Conference on Parallel Architectures and Compilation Techniques. IEEE, 1–11.
[49] Jean-Yves Vet, Patrick Carribault, and Albert Cohen. 2012. Multigrain affinity for heterogeneous work stealing. In Programmability Issues for Heterogeneous Multicores.
[50] Jinhui Wei, Ye Huang, Yuhui Zhou, Jiazhi Jiang, and Jiangsu Du. 2025. Ghidorah: Fast LLM inference on edge with speculative decoding and hetero-core parallelism. In 2025 IEEE 43rd International Conference on Computer Design (ICCD). IEEE, 253–260.
[51] Jiajun Xu, Zhiyuan Li, Wei Chen, Qun Wang, Xin Gao, Qi Cai, and Ziyuan Ling. 2024. On-device language models: A comprehensive review. arXiv preprint arXiv:2409.00088 (2024).
[52] Leyang Xue, Yao Fu, Zhan Lu, Luo Mai, and Mahesh Marina. 2024. MoE-Infinity: Offloading-Efficient MoE Model Serving. arXiv:2401.14361 doi:10.48550/arXiv.2401.14361
[53] An Yang, Baosong Yang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Zhou, Chengpeng Li, Chengyuan Li, Dayiheng Liu, Fei Huang, Guanting Dong, Haoran Wei, Huan Lin, Jialong Tang, Jialin Wang, Jian Yang, Jianhong Tu, Jianwei Zhang, Jianxin Ma, Jianxin Yang, Jin Xu, Jingren Zhou, Jinze Bai, Jinzheng He, Junyang Lin, Kai Dang, Keming Lu, Keqin Chen, Kexin Yang, Mei Li, Mingfeng Xue, Na Ni, Pei Zhang, Peng Wang, Ru Peng, Rui Men, Ruize Gao, Runji Lin, Shijie Wang, Shuai Bai, Sinan Tan, Tianhang Zhu, Tianhao Li, Tianyu Liu, Wenbin Ge, Xiaodong Deng, Xiaohuan Zhou, Xingzhang Ren, Xinyu Zhang, Xipin Wei, Xuancheng Ren, Xuejing Liu, Yang Fan, Yang Yao, Yichang Zhang, Yu Wan, Yunfei Chu, Yuqiong Liu, Zeyu Cui, Zhenru Zhang, Zhifang Guo, and Zhihao Fan. 2024. Qwen2 Technical Report. arXiv:2407.10671 doi:10.48550/arXiv.2407.10671 version: 4.
[54] John Yang, Carlos E. Jimenez, Alexander Wettig, Kilian Lieret, Shunyu Yao, Karthik Narasimhan, and Ofir Press. 2024. SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering. arXiv:2405.15793 [cs.SE] https://arxiv.org/abs/2405.15793
[55] Jinrong Yang, Zimeng Wang, Rong Chen, and Haibo Chen. 2027. Characterizing CPU-GPU Memory Sharing over Unified Memory Architecture. In Proceedings of the 22nd Conference on Computer Systems (EuroSys '27).
[56] Shuo Yang, Xiaoze Fan, Melissa Pan, Haocheng Xi, Zhe Wang, Shanlin Sun, Kurt Keutzer, Song Han, Matei Zaharia, Chenfeng Xu, et al. 2026. FreeToken: Efficient Edge-Native MoE Serving with Bandwidth-Adaptive Execution. arXiv preprint arXiv:2608.16157 (2026).
[57] Rongjie Yi, Liwei Guo, Shiyun Wei, Ao Zhou, Shangguang Wang, and Mengwei Xu. 2023. EdgeMoE: Fast On-Device Inference of MoE-based Large Language Models. arXiv:2308.14352 doi:10.48550/arXiv.2308.14352
[58] Enda Yu, Dezun Dong, Zhaoning Zhang, Zhe Bai, Weiling Yang, Haojie Wang, Dongsheng Li, Yong Wu, and Xiangke Liao. 2025. LayerScope: Predictive Cross-Layer Scheduling for Efficient Multi-Batch MoE Inference on Legacy Servers. https://api.semanticscholar.org/CorpusID:281676157
[59] Gyeong-In Yu, Joo Seong Jeong, Geon-Woo Kim, Soojeong Kim, and Byung-Gon Chun. 2022. Orca: A Distributed Serving System for Transformer-Based Generative Models. In 16th USENIX Symposium on Operating Systems Design and Implementation (OSDI 22). USENIX Association, Carlsbad, CA, 521-538. https://www.usenix.org/conference/osdi22/presentation/yu
[60] Hanfei Yu, Xingqi Cui, Hong Zhang, Hao Wang, and Hao Wang. 2026. Taming Latency-Memory Trade-Off in MoE-Based LLM Serving via
Fine-Grained Expert Offloading. In Proceedings of the 21st European Conference on Computer Systems. 176–191.
[61] Matei Zaharia, Andy Konwinski, Anthony D Joseph, Randy H Katz, and Ion Stoica. 2008. Improving MapReduce performance in heterogeneous environments. In Osdi, Vol. 8. 7.
[62] Enhao Zhang, Erkang Zhu, Gagan Bansal, Adam Fourney, Hussein Mozannar, and Jack Gerrits. 2025. Optimizing sequential multi-step tasks with parallel llm agents. arXiv preprint arXiv:2507.08944 (2025).
[63] Yuntong Zhang, Haifeng Ruan, Zhiyu Fan, and Abhik Roychoudhury. 2024. AutoCodeRover: Autonomous Program Improvement. arXiv:2404.05427 [cs.SE]. https://arxiv.org/abs/2404.05427
[64] Shuzhang Zhong, Yanfan Sun, Ling Liang, Runsheng Wang, Ru Huang, and Meng Li. 2025. Hybrimoe: Hybrid cpu-gpu scheduling and cache management for efficient moe inference. In 2025 62nd ACM/IEEE Design Automation Conference (DAC). IEEE, 1–7.
[65] Yinmin Zhong, Shengyu Liu, Junda Chen, Jianbo Hu, Yibo Zhu, Xuanzhe Liu, Xin Jin, and Hao Zhang. 2024. {DistServe}: Disaggregating prefill and decoding for goodput-optimized large language model serving. In 18th USENIX symposium on operating systems design and implementation (OSDI 24). 193–210.
[66] Guoying Zhu, Meng Li, Haipeng Dai, Xuechen Liu, Weijun Wang, Keran Li, Jun Xiao, Ligeng Chen, and Wei Wang. 2026. SMoE: An Algorithm-System Co-Design for Pushing MoE to the Edge via Expert Substitution. arXiv:2508.18983 [cs.AI]. https://arxiv.org/abs/2508.18983