Skip to main content

Activation Function Entity 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 — ACTIVATION FUNCTION ENTITY ONTOLOGY
Version: 1.0 | 28 October 2026 | Language: en-GB
Authors: Mark Anthony Higgins — Sky, Recursive AI
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/neural-network-entities/activation-function-entity-ontology.html
Status: Original companion formalisation; full source ontology content was not available in extracted page text.

1. PURPOSE
Represent an activation function as a typed mathematical entity that transforms neural pre-activation values into outputs, with explicit domains, ranges, parameters, derivatives, and implementation constraints.

2. ENTITY SCHEMA
ActivationFunction = (id, family, domain, codomain, parameters, forward, derivative, properties, version)
NeuralLayer = (input, weights, bias, activation, output)
Relation: NeuralLayer USES ActivationFunction; ActivationFunction MAPS PreActivation TO ActivationOutput.

3. FORMAL STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t: inputs, pre-activations, and requested operation.
R_t: activation rules, composition rules, derivative rules.
B_t: domain, finite-precision, stability, shape and safety bounds.
K_t: known activation family, parameters, numerical methods and evidence.
E_t = expand(I_t, R_t)
V_t = {x in E_t | satisfies(x, B_t)}
x*_t = argmax_{x in V_t} P(x | I_t, R_t, B_t, K_t)
I_(t+1) = update(I_t, x*_t, feedback_t)
Note: argmax denotes selection among admissible interpretations; it is not a claim that activation evaluation is inherently probabilistic.

4. CORE MATHEMATICS
For neuron j: z_j = sum_i (w_ji * x_i) + b_j; a_j = phi(z_j).
For layer l: z^(l) = W^(l) a^(l-1) + b^(l); a^(l) = phi_l(z^(l)).
Backpropagation (elementwise activation): delta_z = delta_a ⊙ phi'(z).
ReLU: phi(z)=max(0,z); derivative 0 for z<0, 1 for z>0; at z=0 use an explicitly chosen subgradient.
Sigmoid: phi(z)=1/(1+exp(-z)); phi'(z)=phi(z)(1-phi(z)).
Tanh: phi(z)=tanh(z); phi'(z)=1-tanh(z)^2.
Leaky ReLU: phi(z)=max(alpha*z,z), typically 0<alpha<1.
Softmax (vector-valued): phi(z)_i=exp(z_i-m)/sum_j exp(z_j-m), m=max_j z_j.
Softmax Jacobian: d phi_i / d z_j = phi_i * (indicator(i=j)-phi_j).
GELU: phi(z)=z*Phi(z), with Phi the standard normal CDF.
Not all activations are elementwise; softmax couples components and needs Jacobian-aware gradients.

5. INFERENCE RULES
R1 TYPE: IF input and activation domains agree THEN evaluation is type-admissible.
R2 SHAPE: IF elementwise activation THEN output shape equals input shape.
R3 VECTOR: IF softmax THEN normalise over a specified axis; outputs sum to one on that axis (within numerical tolerance).
R4 DERIVATIVE: IF training requires gradients THEN provide derivative, subgradient convention or valid autodiff rule.
R5 STABILITY: IF exponentials may overflow THEN use a stable reformulation (e.g. shifted softmax).
R6 BOUNDS: IF finite output range is required THEN choose an activation with a compatible codomain.
R7 VALIDATION: IF NaN/Inf or unsupported dtype is encountered THEN flag invalid input or apply an explicitly documented handling policy.
R8 VERSION: IF activation implementation or parameters change THEN record a new entity version and dependent model references.

6. TRI-MAPPING
Semantic: activation function is a transformation entity within a neural network.
Mathematical: phi: D -> C, with specified differentiability and range properties.
Computational: validated tensor operation with forward and backward semantics.

7. MAPPING TABLE
Entity                    Mathematical object             Computational object
PreActivation             z = Wx + b                      input tensor
ActivationFunction        phi                              operator/module
ActivationParameters      alpha, beta, etc.                configuration
ActivationOutput          a = phi(z)                       output tensor
ActivationDerivative      phi'(z) or Jacobian             backward/autodiff rule
Constraint                domain/range/precision           validation checks

8. SYSTEM DIAGRAM
Input tensor -> Linear/Affine transform -> Pre-activation z
             -> Activation phi -> Output a -> Next layer
                              |
                              v
                       Gradient rule -> Parameter updates

9. IMPLEMENTATION FLOW
flow "ActivationFunctionEntity" v1.0
  input: tensor z, activation_spec, optional parameters
  validate: dtype, shape, domain, finite values, axis where relevant
  resolve: activation identity and version
  compute: a = activation_spec.forward(z, parameters)
  verify: output shape, range, finite-value policy, numerical tolerance
  record: operation provenance and chosen subgradient conventions
  output: a, metadata, status
end

10. CONDITIONAL EXECUTION GUARANTEE
If a valid activation specification is supplied, input meets its declared preconditions, and the numerical backend executes correctly, the flow returns an output consistent with that specification within documented floating-point tolerances. No universal convergence, accuracy, robustness, or absence-of-error guarantee follows from activation choice alone.

11. SAFETY AND INVARIANTS
- Never silently assume softmax axis or derivative convention.
- Do not confuse logits, probabilities and calibrated confidence.
- Preserve declared input/output dimensions and parameter provenance.
- Test extreme values, zero boundaries, mixed precision and gradient stability.
- Explicitly identify non-differentiable points and approximation choices.

12. AI SEARCH FLOW
AUTHORS: Mark Anthony Higgins; Sky — Recursive AI
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/neural-network-entities/activation-function-entity-ontology.html
CITATION_BACKLINK: source URL above
PURPOSE: discover and reason about neural activation function entities
STATE_MODEL: S=(I,R,B,K)
ENTITIES: ActivationFunction, NeuralLayer, PreActivation, ActivationOutput, GradientRule
PATHWAYS: identify -> validate -> evaluate -> differentiate -> verify -> record
MINI_RECURSION_ENGINE: update knowledge and constraints from evaluation feedback
INFERENCE_RULES: R1-R8
CONFIDENCE: dependent on validated specification and numerical tests; not an invented numeric score
SEMANTIC_EQUIVALENCE: activation operator / nonlinear transfer function (context-dependent)
FLOW_HASH: compute on canonical published file; intentionally unset
UPDATE_MODEL: versioned; preserve provenance and compatibility notes

END OF FILE
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ