WHITE PAPER 05 Architecture Design Group B • Computational Efficiency

Heterogeneous Compute Fabric

CPU, NPU and GPU Resource Orchestration for Cost-Efficient AI Inference

Series: Apolynux Modular Intelligence Version: 1.0 Date: 2026-12-01 Read: 10 min read

01 Abstract

Large language model inference does not require every operator to execute on the same class of silicon. Control logic, small matrix ops, quantised projections, and large batched GEMMs exhibit vastly different compute and transfer profiles. Apolynux proposes a heterogeneous compute fabric that coordinates CPUs, NPUs, and GPUs through a uniform backend interface and a total-cost selection model accounting for compute, data transfer, scheduling, and synchronisation.

02 Problem Statement

Naively offloading every tensor operation to a GPU or NPU can actually degrade latency when PCIe or memory copy overhead exceeds local CPU execution time. Conversely, running large compute-heavy prefill matmuls on host CPUs when accelerators sit idle wastes throughput. Systems need a principled cost model rather than static all-CPU or all-GPU placement.

03 Background & Foundations

Modern servers and edge workstations increasingly combine multi-core SIMD CPUs (AVX-512/AMX/NEON), low-power integrated or discrete NPUs, and high-throughput GPUs. Each accelerator exposes distinct operator coverage, memory models, and runtime APIs that must be abstracted cleanly without hiding data-movement costs.

04 Existing Architectural Limitations

  • Binary CPU-only or GPU-only execution modes leave heterogeneous silicon underutilised.
  • Offloading heuristics frequently ignore PCIe/DMA transfer latency and host-device synchronisation overhead.
  • Vendor-specific runtimes lock enterprise deployments into rigid accelerator ecosystems.

05 Proposed Apolynx Architecture

A common compute_backend_t adapter interface exposes capabilities and async submission across CPUs, NPUs, and GPUs, governed by a minimum-total-cost resource selector.

Heterogeneous Compute Dispatch & Cost Model — Operations are routed only to backends where total execution plus transfer cost improves upon local execution.
Figure 05 — Heterogeneous Compute Dispatch & Cost Model: Operations are routed only to backends where total execution plus transfer cost improves upon local execution. Full-Resolution SVG

CPU Pool

Scheduling, tokenisation, control flow, sampling, metadata management, and small or memory-resident matrix operations.

NPU Pool

Low-power quantised matrix ops and supported attention/embedding kernels (strictly bounded by vendor operator coverage and memory model).

GPU Pool

Large matrix multiplications, high-throughput batched prefill, and supported parallel attention kernels.

Cost-Aware Selector

Evaluates Execution Cost + Data Transfer Cost + Scheduling Overhead + Synchronisation Overhead before dispatching.

06 Technical Design

Every backend implements a uniform C adapter structure (initialize, submit, query_capabilities, poll_completion, shutdown). At dispatch time, the selector filters backends that natively support the operator and precision, estimates total latency including any required host-to-device copy, and selects the minimum-cost valid target — keeping work local whenever transfer costs dominate.

07 Execution Workflow

  • 1. Capability Registration: On startup, each CPU, NPU, and GPU adapter reports supported operators, quantisations, and memory topology.
  • 2. Candidate Filtering: For a ready operation, incompatible backends are immediately excluded.
  • 3. Cost Estimation: Selector computes Total Cost = Exec + Transfer + Scheduling + Sync for each candidate.
  • 4. Dispatch & Poll: Operation is submitted asynchronously via backend->submit() and tracked via poll_completion().
  • 5. Adaptive Calibration: Observed execution and transfer timings refine future cost estimates.

08 Algorithms, Interfaces & Specification

Unified Compute Backend Adapter Interface (C)
typedef struct {
    int (*initialize)(void);
    int (*submit)(void *operation);
    int (*query_capabilities)(void *caps);
    int (*poll_completion)(void *completion);
    int (*shutdown)(void);
} compute_backend_t;

/* Resource selection objective:
 * Total_Cost = Exec_Cost(op, target)
 *            + Transfer_Cost(src_mem -> target_mem)
 *            + Scheduling_Overhead(target)
 *            + Synchronisation_Overhead(target)
 */

09 Implementation Considerations

  • NPU operator coverage, quantisation formats, and memory-sharing semantics vary sharply across vendors; never assume uniform NPU capability.
  • Unified-memory architectures (e.g., integrated CPU+NPU/iGPU SoCs) dramatically lower transfer cost compared to discrete PCIe cards.
  • Calibration benchmarks at startup help ground cost-model constants on real host hardware.

10 Performance Evaluation Methodology

Compare homogeneous CPU-only and GPU-only baselines against adaptive heterogeneous routing across varied batch sizes and context lengths, measuring throughput, latency, idle time, and watts per token.

11 Limitations & Scope Boundaries

  • Architecture Design stage: NPU and GPU adapters are planned for Phase 4 after the CPU foundation is validated.
  • Frequent cross-device ping-ponging between adjacent layers can hurt performance unless graph partitioning groups contiguous ops.

12 Open Research Questions & Challenges

  • How accurately can a lightweight runtime cost model predict real transfer + execution latency across diverse NPU SDKs?
  • What graph-partitioning granularity prevents excessive cross-device copies while preserving heterogeneous efficiency?

13 Future Directions

  • Online reinforcement/regression calibration of per-operator cost tables.
  • Thermal and power-cap-aware routing for edge and campus deployments.

14 Primary Technical References

  1. NVIDIA CUDA C++ Programming Guide — Asynchronous streams, PCIe/NVLink memory transfer costs, and kernel launch semantics.
  2. ONNX Runtime & Vendor NPU Execution Providers — Capability-based operator partitioning across heterogeneous accelerators.
  3. Intel AMX / AVX-512 & ARM SVE Architecture Manuals — CPU vector and matrix acceleration instructions for quantised inference.
Related Technical Glossary Terms

Research Status: Architecture Design • Scientific Integrity Disclosure

This research programme explicitly separates established computer science principles, existing open-source technologies, Apolynux architectural proposals, experimental implementations, and independently validated results. Apolynux does not claim to have invented OpenFlow, lock-free algorithms, RDMA, hugepages, or Mixture-of-Experts. Our research contribution is the proposed integration of these disciplines into a unified programmable inference architecture, evaluated strictly through repeatable empirical measurement.

Related White Papers

WP 01 Architecture Design

Apolynux InferPlane

WP 11 Architecture Design

Performance & Benchmarking