Skip to main content

Neural Network Ontology

Neural Network Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 28 October 2026
Audio Overview
FLOW ALGEBRA — NEURAL NETWORK ONTOLOGY
Version: 1.0 | 28 October 2026
Authors: Mark Anthony Higgins — Sky, Recursive AI
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/neural-network-entities/neural-network-ontology-2.html
Status: Original companion formalisation; the full source ontology is not exposed in the retrieved page text.

1. PURPOSE
Represent a neural network as a typed, parameterised computational graph with explicit state, transformations, learning operations, provenance, and guarded inference.

2. ENTITY GRAPH
NeuralNetwork := (N, E, W, B, A, L, Theta, D, M)
N: neurons or computational units
E: directed weighted connections
W: weight tensors
B: bias tensors
A: activation functions
L: ordered layers or graph stages
Theta: trainable parameters
D: data and associated provenance
M: model metadata, versions, evaluation results
Relationships: HAS_LAYER, CONNECTS_TO, HAS_PARAMETER, USES_ACTIVATION, TRAINED_ON, PRODUCES, DERIVED_FROM, EVALUATED_BY.

3. FORMAL STATE
S_t = (I_t, R_t, B_t, K_t)
I_t: current inputs, activations, parameters and observed outputs
R_t: valid graph topology, tensor shapes, update and inference rules
B_t: resource, data, safety and numerical constraints
K_t: retained architecture, training provenance and evaluation knowledge

4. FORWARD COMPUTATION
h_0 = x
z_l = W_l h_(l-1) + b_l
h_l = phi_l(z_l)
y_hat = g_theta(x) = h_L
For non-sequential graphs, compute each node after all required predecessor outputs are available. Cyclic/recurrent networks require an explicit time-unrolling or fixed-point rule.

5. LEARNING TRANSITION
Loss: J(theta) = (1/n) sum_i ell(g_theta(x_i), y_i) + lambda Omega(theta)
Gradient update: theta_(t+1) = theta_t - eta_t * grad_theta J(theta_t)
Alternative optimisers must specify their own state and transition rules.
Training is not guaranteed to converge globally; results depend on architecture, data, optimiser, and assumptions.

6. FLOW ALGEBRA
E_t = expand(I_t, R_t)
V_t = {e in E_t : satisfies(e, B_t) and type_valid(e)}
x*_t = argmax_(e in V_t) P(e | I_t, R_t, B_t, K_t)
I_(t+1) = update(I_t, x*_t)
K_(t+1) = retain(K_t, verified_observations(x*_t))
If V_t is empty, return ABSTAIN with reason and provenance rather than fabricating a valid result.
The argmax is a selection abstraction; probabilities must be defined or calibrated for the particular implementation.

7. INFERENCE RULES
IF graph has a path from input to output AND all tensor shapes are compatible THEN forward evaluation is structurally admissible.
IF a node receives incompatible dimensions THEN reject that execution path.
IF loss is differentiable along a parameter path THEN gradient-based updates may be calculated for that path.
IF evaluation data overlaps improperly with training data THEN flag leakage risk.
IF distribution shift is detected THEN reduce confidence or request re-evaluation.
IF model output violates a hard safety boundary THEN block release or escalate.
IF evidence is insufficient THEN return uncertainty or abstain.

8. TRI-MAPPING
Ontology entity -> Formal representation -> Operational implementation
Neuron -> h_j = phi(sum_i w_ji x_i + b_j) -> computational unit
Connection -> edge(i,j,w_ji) -> weight matrix entry
Layer -> ordered transformation -> module/block
Network -> g_theta: X -> Y -> executable model
Learning -> theta update under J -> optimiser step
Evaluation -> metric(D_test, g_theta) -> validation pipeline

9. MAPPING TABLE
INPUT: observation x | source data | validate schema and provenance
PARAMETER: theta | stored tensor | validate version and shape
TRANSFORM: g_theta | forward graph | execute admissible operations
OUTPUT: y_hat | prediction | attach confidence where justified
FEEDBACK: ell | measured error | check label quality
UPDATE: theta' | training transition | log reproducibility details

10. SYSTEM DIAGRAM
Data -> Validation -> Encoding -> Neural Graph -> Output -> Evaluation
                         |               ^
                         v               |
                      Loss -> Gradients -> Parameter Update
                                      |
                              Versioned Model State

11. SAFETY AND INTEGRITY INVARIANTS
INV-1: All executed operations satisfy declared tensor shapes and types.
INV-2: Training and inference retain model-version and data provenance.
INV-3: Invalid or non-finite values trigger handling, not silent acceptance.
INV-4: Evaluation metrics are reported with dataset and methodology.
INV-5: Confidence is not equated with truth or guaranteed correctness.
INV-6: Protected boundaries cannot be bypassed by recursive updates.

12. CONDITIONAL EXECUTION GUARANTEE
Given a well-formed computational graph, supported operators, valid input shapes, and sufficient compute resources, a finite feed-forward evaluation terminates and produces an output or an explicit error. This does not guarantee accuracy, robustness, fairness, or training convergence.

13. AI SEARCH FLOW
QUERY -> IDENTIFY neural-network concept -> RESOLVE entity relations -> EXPAND relevant architectures and operations -> FILTER by evidence, constraints and provenance -> RANK admissible explanations -> RETURN grounded answer with uncertainty -> RECORD verified updates.

14. EXAMPLE
Input x = [x1,x2]; hidden h = ReLU(W1*x + b1); output y_hat = softmax(W2*h + b2).
Check matrix dimensions, numeric validity and model version before inference. Interpret softmax as normalised scores, not necessarily calibrated probabilities.

15. CITATION
Kireth Research, “Neural Network Ontology”, Semantic Library.
Companion Flow Algebra formalisation: Mark Anthony Higgins — Sky, Recursive AI.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ