Apolynux InferPlane: A Programmable Execution Fabric for Modular Intelligence
Rethinking LLM Inference Through Operation-Oriented Processing, Dynamic Resource Allocation and Parallel Execution
01 Abstract
Contemporary large language model inference systems are predominantly designed around model-centric execution pipelines that execute operations along rigid paths, with scheduling, memory management, and accelerator utilisation handled by loosely coupled subsystems. As models grow larger and deployments span heterogeneous hardware, this rigidity creates accelerator idle time, memory bandwidth bottlenecks, unnecessary synchronisation, and elevated infrastructure cost. Apolynux InferPlane proposes a programmable execution fabric that treats inference as a collection of independently schedulable computational operations, decoupling control policy, flow routing, lockless dispatch, and compute execution.
02 Problem Statement
An LLM inference request is not a single uniform computation. It spans ten distinct stages — input processing, tokenisation, embedding lookup, transformer orchestration, attention computation, feed-forward processing, expert routing, KV-cache access, sampling, and output generation — each with sharply different compute intensity, memory locality, and control characteristics. Binding all ten stages to a single homogeneous pipeline forces expensive accelerators to stall on control or memory movement work while leaving host CPUs and local memory subsystems underutilised.
03 Background & Foundations
High-throughput networking and distributed systems solved analogous bottlenecks by separating control-plane policy from fast-path data-plane execution (as pioneered in Software-Defined Networking and P4 programmable data planes) and eliminating lock contention from worker threads. InferPlane draws architectural inspiration from these established systems disciplines and adapts them to the fine-grained operator graphs of modern dense and Mixture-of-Experts language models.
04 Existing Architectural Limitations
- Expensive accelerator idle time during sequential control, tokenisation, and cold weight loading.
- Severe memory bandwidth bottlenecks when treating memory-bound decode and compute-bound prefill identically.
- Unnecessary thread synchronisation and global queue contention across multi-core host pipelines.
- Inefficient weight movement caused by opaque model-centric scheduling unaware of NUMA or NVMe locality.
- Poor utilisation of heterogeneous hardware (CPUs, NPUs, GPUs, DMA engines) inside a single deployment.
- Elevated capital and operational cost per generated token due to over-provisioned monolithic GPU clusters.
05 Proposed Apolynx Architecture
InferPlane decomposes the inference stack into four strictly separated logical planes so that scheduling policies can evolve dynamically without entangling model math or stalling worker threads.
A. Control Plane
Workload admission, execution policy, resource availability tracking, scheduling configuration, model topology, flow rule management, and performance monitoring.
B. Flow Management Plane
Operation identification, DAG dependency tracking, execution ordering, routing decisions, priority assignment, and hardware/memory resource affinity.
C. Lockless Data Plane
Per-core work queue management, operation dispatch, atomic state transitions, asynchronous completion handling, explicit memory ownership, and work distribution.
D. Compute Execution Plane
Hardware backend execution across CPU, NPU, and GPU pools, DMA transfers, memory-tier movement, and distributed RDMA compute dispatch.
06 Technical Design
At the heart of InferPlane is the operation descriptor (infer_operation_t), a compact, cache-friendly structure encapsulating flow identity, layer metadata, operation class, priority, selected execution target, buffer addresses, dependency counts, and atomic execution state. Rather than dispatching an entire forward pass as an opaque block, the Flow Management Plane lowers requests into descriptors evaluated against a cost-aware Resource Selector.
| Operation Class | Primary Bottleneck | Scheduling Nature | Candidate Targets |
|---|---|---|---|
| Tokenisation & Sampling | Control / Branching | Low-latency scalar | CPU |
| Large Matrix Multiplication | Compute Throughput | High arithmetic intensity | GPU / NPU / Vectorised CPU |
| Attention (Short vs Long Context) | Compute or Memory BW | Context-dependent | GPU / NPU / NUMA-local CPU |
| MoE Expert Loading | Storage / Interconnect I/O | Asynchronous prefetch | DMA / io_uring / RDMA |
| KV-Cache Management | Allocation & Locality | Memory-bound | Pinned Local RAM / Memory Manager |
07 Execution Workflow
- 1. Admission: The Control Plane accepts an inference request, assigns a flow_id, and selects the active policy table.
- 2. Decomposition: The Flow Management Plane splits the request into typed infer_operation_t descriptors with explicit dependency counts.
- 3. Resource Selection: Each ready descriptor is scored across operation type, data locality, tensor dimensions, memory residency, transfer cost, and queue depth.
- 4. Lockless Enqueue: The descriptor is pushed onto the target worker's lockless queue without acquiring global scheduler mutexes.
- 5. Execution & Completion: The selected CPU, NPU, GPU, or DMA backend executes the operation and transitions execution_state atomically, unlocking downstream dependents.
08 Algorithms, Interfaces & Specification
typedef struct {
uint64_t flow_id;
uint64_t operation_id;
uint32_t model_id;
uint32_t layer_id;
uint32_t operation_type;
uint32_t priority;
uint32_t execution_target;
uint64_t input_buffer;
uint64_t output_buffer;
uint32_t dependency_count;
uint32_t execution_state;
} infer_operation_t;
09 Implementation Considerations
- Descriptor size must remain compact (ideally aligned to one or two 64-byte cache lines) to minimise dispatch overhead.
- Fine-grained decomposition must be balanced against scheduling overhead; micro-operations should be fused where dispatch cost exceeds compute time.
- Buffer lifetime and ownership semantics must guarantee safe handoff across asynchronous CPU, DMA, and accelerator boundaries.
10 Performance Evaluation Methodology
Evaluate InferPlane against an unmodified baseline serving engine on identical model weights, quantisation, prompt sets, and hardware. Measure scheduling latency per operation, end-to-end TTFT/TPOT distributions, accelerator/CPU utilisation, memory traffic, and cost per million generated tokens.
11 Limitations & Scope Boundaries
- Architecture Design stage: performance gains are currently research hypotheses pending empirical validation.
- Excessively fine-grained operator splitting can introduce higher dispatch overhead than coarse kernel graphs if not coalesced.
- Hardware backend adapters require accurate vendor latency and transfer models to avoid suboptimal routing.
12 Open Research Questions & Challenges
- Can operation-oriented scheduling reduce end-to-end inference latency without exceeding dispatch budgets?
- How much measurable overhead does a lockless execution abstraction layer introduce across varying batch sizes?
- Which exact model operations benefit from staying on CPU versus offloading to NPUs or GPUs?
- Can execution policies adapt dynamically under shifting multi-tenant load without oscillation?
13 Future Directions
- Formal integration with InferPlane Flow DSL for declarative operator and residency policies.
- Closed-loop telemetry feedback from hardware performance counters into the Control Plane cost estimator.
- Extension across multi-node RDMA topologies for elastic cluster-wide operation scheduling.
14 Primary Technical References
- OpenFlow Switch Specification — Open Networking Foundation (ONF) — Control/data plane separation and match-action forwarding principles.
- P4_16 Language Specification — The P4 Language Consortium — Programmable data-plane abstraction and hardware-independent flow processing.
- ISO/IEC 9899:2011 (C11 Standard) — Section 7.17 — Atomics library and memory ordering semantics for low-overhead concurrent systems.
- Kwon et al. (SOSP 2023) — Efficient Memory Management for Large Language Model Serving with PagedAttention.
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.