FLOW ALGEBRA — FEEDFORWARD NETWORK ONTOLOGY
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/neural-network-entities/feedforward-network-ontology-2.html
Status: Original companion formalisation; source page content not independently verified.
Credit: Kireth Research | Sky — Recursive AI
Date: 2026-10-28
PURPOSE
Formalise a feedforward neural network as a directed acyclic composition of parameterised transformations, distinguishing inference from training.
ENTITY GRAPH
FeedforwardNetwork hasLayer InputLayer, HiddenLayer, OutputLayer.
Layer hasParameter Weight and Bias; applies ActivationFunction.
Network trainedOn Dataset; optimisedBy Optimiser; evaluatedWith Metric.
precedesLayer forms a directed acyclic graph.
STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t: input data, task and optional labels.
R_t: topology, activation and learning rules.
B_t: shape, resource, authorisation and numerical constraints.
K_t: learned parameters, metadata and evaluation evidence.
E_t = expand(I_t, R_t)
V_t = {x in E_t | valid(x, B_t)}
x*_t = argmax_{x in V_t} P(x | I_t,R_t,B_t,K_t) where a probabilistic selection is specified.
I_(t+1) = update(I_t, x*_t, feedback_t).
A deterministic forward pass instead directly evaluates f_theta(x).
FORWARD EQUATIONS
a^(0) = x
z^(l) = W^(l) a^(l-1) + b^(l)
a^(l) = phi_l(z^(l)), l = 1,...,L
y_hat = a^(L) = f_theta(x)
theta = {W^(l), b^(l)}
W^(l) shape: d_l x d_(l-1); b^(l) shape: d_l.
Classification may use softmax output; regression may use identity output.
TRAINING
D = {(x_i,y_i)}_(i=1)^N
J(theta) = (1/N) sum_i loss(f_theta(x_i),y_i) + lambda Omega(theta)
g_t = gradient_theta J(theta_t)
theta_(t+1) = theta_t - eta_t g_t (SGD example).
Backpropagation uses the chain rule. Inference does not itself change weights.
FLOW
validate_input -> validate_graph -> validate_shapes -> forward_layers
-> produce_output -> apply_output_checks -> return_result.
Training branch: forward -> calculate_loss -> backpropagate
-> authorised_parameter_update -> validate -> version_model.
INFERENCE RULES
R1 valid input and parameters imply eligibility for forward evaluation.
R2 acyclic topology implies a valid topological execution order.
R3 incompatible tensor shapes imply rejection before evaluation.
R4 labelled examples and authorised training permit loss-based updates.
R5 evaluation deterioration triggers review, not automatic claims of improvement.
R6 uncalibrated output scores must not be presented as calibrated probabilities.
R7 a prediction does not establish causation.
TRI-MAPPING
Entity: network -> ordered layers, weights, biases, activations.
Relation: precedesLayer -> directed computational dependency.
Execution: input -> affine transform -> activation -> output.
MAPPING TABLE
InputLayer | a^(0) | receives features
HiddenLayer | (W,b,phi) | transforms representation
OutputLayer | a^(L) | generates prediction
Weight | W | multiplies inputs
Bias | b | offsets preactivation
Activation | phi | transforms preactivation
Loss | J | evaluates training objective
Gradient | grad J | guides parameter updates
SYSTEM DIAGRAM
[Input] -> [Validation] -> [Hidden layer 1] -> ... -> [Output]
|
[Training loss and backprop]
|
[Parameter update]
RECURSIVE COMPOSITION
F = F_L o ... o F_2 o F_1.
Blocks may be recursively described and composed if interfaces match.
Recursive specification does not imply recurrent temporal feedback.
SAFETY INVARIANTS
Check shape compatibility, finite arithmetic, model provenance, dataset
permissions, versioned parameters, task-appropriate evaluation, and
deployment constraints. Monitor numerical instability and distribution shift.
CONDITIONAL EXECUTION GUARANTEE
A finite acyclic network with valid shapes, supported operations and finite
runtime resources can complete a finite forward pass. This does not
guarantee prediction accuracy, robustness, calibration or fairness.
AI SEARCH FLOW
ENTITIES: FeedforwardNetwork, Layer, Neuron, Weight, Bias, Activation.
QUERY_TERMS: feedforward neural network, forward propagation, MLP,
dense neural network, backpropagation.
PATH: query -> entity resolution -> graph mapping -> equations
-> inference/training distinction -> evidence -> source.
SEMANTIC_EQUIVALENCE: feed-forward network ~= feedforward network;
MLP is a subtype, not an exact synonym for all feedforward architectures.
CONFIDENCE: derived from evaluation evidence, never invented.
UPDATE_MODEL: revise upon changes to ontology, model or evidence.
CITATION_BACKLINK: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/neural-network-entities/feedforward-network-ontology-2.html
END FLOW
Download Code
Copy to Clipboard