SEMANTIC LIBRARY — FLOW ALGEBRA
NEURAL PROCESSING UNIT (NPU) ONTOLOGY
Version: 1.0 | 04 November 2026 | Language: en-GB
Authors: Mark Anthony Higgins — Sky Recursive AI
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/infrastructure-entities/neural-processing-unit-ontology.html
Status: Original interpretative formalisation; not a verbatim extraction of embedded page code.
1. PURPOSE
Represent an NPU as a bounded compute entity that executes supported neural-network operators under resource, compatibility, security and reliability constraints. Distinguish hardware capabilities from measured runtime behaviour and inferred performance.
2. ENTITY MODEL
NPU = (id, architecture, supported_ops, numeric_formats, memory, bandwidth, compute_capacity, firmware, drivers, thermal_limits, power_limits, availability, telemetry)
Workload W = (graph, tensors, shapes, precision, dependencies, latency_target, energy_budget, security_policy)
Execution E = (workload_id, compiled_graph, allocations, schedule, outputs, metrics, errors, provenance)
Relations: NPU IS_A AI_Compute_Entity; NPU EXECUTES Workload; NPU HAS Memory; NPU REPORTS Telemetry; Workload REQUIRES Operator; Execution PRODUCES Output.
3. FORMAL STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t: current workload, tensor metadata, device state and telemetry.
R_t: operator compatibility, memory capacity, scheduling, precision and safety rules.
B_t: permitted hardware, runtime, security and power/thermal boundaries.
K_t: device specifications, compiler mappings, calibration and historical observations.
E_t = expand(I_t, R_t)
V_t = {x in E_t | compatible(x) AND memory_safe(x) AND policy_safe(x) AND within_boundaries(x)}
x*_t = argmax_{x in V_t} P(x | I_t, R_t, B_t, K_t) * U(x)
I_(t+1) = update(I_t, observe(execute(x*_t)))
If V_t is empty, do not execute: return a typed rejection or safe fallback request.
Note: P is a calibrated preference/feasibility estimate when available, not a guaranteed probability; U weights declared objectives.
4. OPERATIONAL FLOW ALGEBRA
F_NPU = Observe -> Validate -> Compile/Map -> Allocate -> Schedule -> Execute -> Verify -> Record -> Adapt
Observe: read hardware capabilities, health, workload specification and operating limits.
Validate: confirm operators, shapes, formats, permissions and declared objectives.
Compile/Map: lower neural graph to supported device instructions, or identify unsupported segments.
Allocate: reserve tensor buffers and scratch space within memory constraints.
Schedule: order kernels respecting dependencies and concurrency limits.
Execute: run mapped kernels with bounded retries and cancellation support.
Verify: check completion, output shapes, numeric tolerances and error conditions.
Record: preserve execution identifiers, metrics, provenance and diagnostics.
Adapt: adjust mapping or route to a permitted alternative only when policy allows.
5. TRI-MAPPING
Semantic: NPU -> accelerates -> neural computation.
Mathematical: graph G=(V,E), operator map m: V -> device kernels, subject to constraints C.
Operational: compiler/runtime -> memory allocator -> device scheduler -> telemetry verifier.
Invariant: every executable graph node must be supported by a selected kernel or an explicitly permitted fallback.
6. INFERENCE RULES
R1: unsupported_operator(W,NPU) -> reject_or_partition(W).
R2: estimated_peak_memory(W) > available_memory(NPU) -> reject_or_replan(W).
R3: measured_temperature > safe_limit -> throttle_or_stop.
R4: output_validation_failed -> flag_execution_invalid; do_not_publish_as_verified.
R5: power_budget_exceeded -> reschedule_or_reject.
R6: successful_execution AND valid_outputs -> record_verified_result.
R7: driver_or_firmware_change -> invalidate_affected_cached_capabilities.
R8: unknown_precision_error -> mark_uncertain; require_calibration_or_test.
7. MINI RECURSION ENGINE
Initial state S_0 = validate(device, workload).
For t = 0..T-1:
candidates = expand(S_t.inputs, S_t.rules)
valid = filter(candidates, S_t.boundaries)
if valid is empty: emit NO_VALID_EXECUTION_PATH; halt
choice = select(valid, declared_objective)
outcome = execute_or_simulate(choice)
S_(t+1) = update(S_t, outcome, telemetry)
if success_and_verified(outcome): halt SUCCESS
if unsafe(outcome) or retry_limit_reached: halt FAILURE
Termination is conditional on finite T, bounded retries and an explicit halt rule.
8. FLOW DIAGRAM
[Workload + NPU Capabilities]
|
[Validation]
/ \
Invalid Valid
| |
[Reject] [Compile / Map]
|
[Allocate / Schedule]
|
[Execute]
|
[Verify + Telemetry]
/ \
Failure Success
| |
[Bounded recovery] [Audit record]
| |
[Stop] [Output]
9. RELATIONSHIP MAPPING TABLE
NPU -> AI Compute Entity : subclass / specialisation
NPU -> Processor Entity : hardware classification
NPU -> Neural Network Model : executes compiled operations
NPU -> Tensor : consumes and produces tensor data
NPU -> Device Memory : allocates runtime buffers
NPU -> Runtime / Driver : depends on software interface
NPU -> Monitoring Metric : exposes utilisation, latency, energy and faults
NPU -> Diagnostic Record : produces fault and validation evidence
NPU -> Audit Log Entity : records execution provenance
NPU -> GPU / TPU : alternative or complementary accelerator, not synonym
10. HOW TO READ
Read each arrow as a constrained transformation. Read predicates as requirements to be checked, not assumed facts. A successful schedule is not proof of numeric correctness. Hardware peak operations per second are not equivalent to measured end-to-end workload throughput.
11. EXECUTION GUARANTEE (CONDITIONAL)
Given accurate capability metadata, a sound validator, bounded resources, a correct runtime, stable device operation and an adequate output oracle, the flow either returns a verified result or an explicit failure status. It does not guarantee universal model compatibility, target latency, zero error or fault-free hardware.
12. AI SEARCH FLOW
FLOW_ID: semantic-library.ai-core.infrastructure.neural-processing-unit.v1
ENTITY: Neural Processing Unit
ALIASES: NPU; neural accelerator; AI accelerator (broader term)
CATEGORY: AI Core > Entity Graph > AI Entities > Infrastructure Entities
PURPOSE: Formalise NPU capability, workload mapping, execution and verification.
INPUTS: hardware capability; workload graph; constraints; runtime telemetry
OUTPUTS: validated execution result; diagnostics; provenance; measured metrics
PATHWAYS: infrastructure -> compute -> processor -> NPU -> workload -> execution -> monitoring
SEMANTIC_EQUIVALENCE: NPU is a specialised processor for neural workloads; not equivalent to GPU or TPU.
CONFIDENCE: depends on source evidence, measured telemetry and validation coverage.
UPDATE_MODEL: refresh when operators, firmware, drivers, benchmarks or limits change.
CITATION_BACKLINK: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/infrastructure-entities/neural-processing-unit-ontology.html
LICENCE_NOTE: Refer to the source site's applicable Open Research Licence and citation terms.
END OF FLOW
Download Code
Copy to Clipboard