CPU, GPU AND RAM

HeteroInfer: mobile GPU–NPU partitioning, shapes and shared memory

In this article
THE QUICK TAKE

GPU–NPU cooperation depends on operator shapes, phase-specific scheduling and synchronization cost; shared physical memory alone does not establish a fast correct handoff.

HeteroInfer studies cooperative GPU and NPU execution inside a mobile system-on-chip. Its central observation is that advertised accelerator capability does not determine the fastest placement of every language-model operation. Tensor shape, sequence length, synchronization and shared-memory behavior can make the preferred execution strategy different between prefill and decode.

Profile the shape rather than adding peak specifications

The author-hosted published paper characterizes GPU and NPU behavior on mobile hardware. An NPU can perform well on a suitable matrix shape and poorly on another because its execution and compilation paths impose constraints. A GPU can also incur meaningful synchronization overhead even when individual kernels are short.

Adding the peak arithmetic ratings of both processors therefore does not establish useful combined throughput. The relevant measurement is the latency of the actual operators and the extra work required to divide and reunite their outputs. A faster isolated operation can still produce a slower complete path after coordination costs.

Distinguish weight partitioning from activation partitioning

The method includes a weight-centric strategy that splits work across GPU and NPU, with a partition ratio selected using profiling information. This is different from placing every complete layer on only one processor. It can expose parallel work within an operation while retaining explicit synchronization and result assembly.

For dynamic input lengths, an activation-centric strategy uses standard-sized pieces suited to prebuilt NPU graphs and gives an irregular remainder to the GPU. The paper also considers combining strategies. These are responses to specific shape and graph-construction constraints, not a universal rule that every tensor should always be divided in the same proportion.

Keep prefill and decode decisions separate

Prefill and decode use different tensor shapes and resource balances. The paper explains different dominant processors and partition choices for those phases. A partition calibrated on a long prompt should not be assumed optimal for token-by-token generation.

The solver includes execution, synchronization and copying costs. Choosing no split can also be a valid outcome when cooperation does not help. That option matters: a system that forces heterogeneous execution for every operator can lose the very performance the scheduler is intended to recover.

Treat shared memory as an integration requirement

The design maps reusable buffers for access through the relevant runtimes and coordinates GPU and NPU completion. Unified physical memory does not automatically provide one coherent software interface across every processor. The discussion explicitly identifies memory management and synchronization as continuing platform concerns.

Buffer lifetime, address mapping and operation ordering are therefore part of correctness. Replacing a transfer with shared access requires checking that the consumer sees completed data and that the producer’s buffer remains valid. Merely observing that the chips share a memory subsystem is insufficient.

Preserve the evaluated platform and numerical path

The publication identity ties the work to its reported mobile implementation. Its evaluation uses specified Snapdragon platforms and model configurations. Weight storage precision and arithmetic execution are separate choices; a compact representation does not establish that every accelerator executes the same low-bit operation natively.

The paper reports interference and energy experiments under defined conditions. They do not establish identical behavior during every background application or sustained thermal regime. Power and energy also answer different questions because a faster operation can consume less energy without having the lowest instantaneous draw.

We read the characterization, partitioning, synchronization, setup and discussion without running the engine. The reproducible-stack guide covers implementation records, and the document-split guide covers a separate data-control concern. HeteroInfer is a concrete example of matching mobile operators to measured hardware behavior while retaining the cost of cooperation.

Sources

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles